<commit_before>package pl.joegreen.sergeants.framework;

import pl.joegreen.sergeants.api.GeneralsApi;
import pl.joegreen.sergeants.framework.model.GameState;

public interface Actions {
    void move(int indexFrom, int indexTo);

    void move(GameState.Field fieldFrom, GameState.Field fieldTo);

    void move(int indexFrom, int indexTo, boolean moveHalf);

    void move(GameState.Field fieldFrom, GameState.Field fieldTo, boolean moveHalf);

    void sendChat(String message);

    void sendTeamChat(String message);

    void leaveGame();

    void ping(int index);

    void ping(GameState.Field field);

    void clearMoves();

    GeneralsApi getBareApi();
}<commit_msg>Additional doc in Actions<commit_after>package pl.joegreen.sergeants.framework;

import pl.joegreen.sergeants.api.GeneralsApi;
import pl.joegreen.sergeants.framework.model.GameState;

public interface Actions {

    void move(int indexFrom, int indexTo);

    /**
     * Direct move between fields. Works only if both fields are neighbours (either horizontally or vertically, not diagonally) - otherwise does nothing and logs error.
     */
    void move(GameState.Field fieldFrom, GameState.Field fieldTo);

    void move(int indexFrom, int indexTo, boolean moveHalf);

    /**
     * Direct move between fields. Works only if both fields are neighbours (either horizontally or vertically, not diagonally) - otherwise does nothing and logs error.
     * @param moveHalf if true, only half of the army will be moved (equal to double click in browser)
     */
    void move(GameState.Field fieldFrom, GameState.Field fieldTo, boolean moveHalf);

    void sendChat(String message);

    void sendTeamChat(String message);

    void leaveGame();

    void ping(int index);

    void ping(GameState.Field field);

    /**
     * Remove all moves from the move queue.
     */
    void clearMoves();

    /**
     * Get lower level API that potentially can make it possible to do something that is not possible by this interface.
     * Use with caution, as using it can potentially make the framework work unexpectedly.
     */
    GeneralsApi getBareApi();
}
{'fraction_non_alphanumeric': 0.08157524613220815, 'fraction_numerical': 0.0, 'mean_word_length': 3.6593886462882095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5710138', 'n_tokens_mistral': 620, 'n_tokens_neox': 573, 'n_words': 209}