public interface AIInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHARACTER_GARNET |
static java.lang.String |
CHARACTER_KFM |
static java.lang.String |
CHARACTER_LUD |
static java.lang.String |
CHARACTER_ZEN |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method finalizes AI.
|
java.lang.String |
getCharacter()
This method is for deciding which character to use among ZEN, GARNET, LUD, and KFM, and it returns one of the following values, which must be specified after "return" for the competition: CHARACTER_ZEN, CHARACTER_GARNET, CHARACTER_LUD, and CHARACTER_KFM
|
void |
getInformation(FrameData frameData)
This method gets information from the game status in each frame.
|
int |
initialize(GameData gameData,
boolean playerNumber)
This method initializes AI, and it will be executed only once in the beginning of each game.
|
Key |
input()
This method receives key inputted from AI.
|
void |
processing()
This method processes the data from AI.
|
static final java.lang.String CHARACTER_GARNET
static final java.lang.String CHARACTER_KFM
static final java.lang.String CHARACTER_LUD
static final java.lang.String CHARACTER_ZEN
void close()
java.lang.String getCharacter()
void getInformation(FrameData frameData)
frameData
- Data that will be changed each frameFrameData
int initialize(GameData gameData, boolean playerNumber)
gameData
- Data that will not be changed during a gameplayerNumber
- PlayerNumber of selfGameData
Key input()
Key
void processing()