public class GameData
extends java.lang.Object
Constructor and Description |
---|
GameData()
The class constructor.
|
GameData(fighting.Character[] players)
The class constructor that creates an instance of the GameData class by
using character information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAiName(boolean playerNumber)
Returns the AI name of the specified player.
|
java.lang.String |
getCharacterName(boolean playerNumber)
Returns the character name of the specified player.
|
int |
getMaxEnergy(boolean playerNumber)
Returns the maximum energy of the specified player.
|
int |
getMaxHP(boolean playerNumber)
Returns the maximum HP of the specified player.
|
java.util.ArrayList<fighting.Motion> |
getMotion(boolean playerNumber)
Deprecated.
This method is called in the simulator.
AI developers can not use this method. |
java.util.ArrayList<MotionData> |
getMotionData(boolean playerNumber)
Returns the motion data of the player specified by the argument.
|
Simulator |
getSimulator()
Returns the simulator.
|
int |
getStageHeight()
Returns the height of the game stage.
|
int |
getStageWidth()
Returns the width of the game stage.
|
public GameData()
public GameData(fighting.Character[] players)
players
- character information of P1 and P2Character
public java.util.ArrayList<MotionData> getMotionData(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.MotionData
public java.util.ArrayList<fighting.Motion> getMotion(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.Motion
public int getStageWidth()
public int getStageHeight()
public int getMaxHP(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.public int getMaxEnergy(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.public java.lang.String getCharacterName(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.public java.lang.String getAiName(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.