public class GameData
extends java.lang.Object
Constructor and Description |
---|
GameData(Character playerOne,
Character playerTwo,
int stageX,
int stageY) |
Modifier and Type | Method and Description |
---|---|
int |
getMyMaxEnergy(boolean playerNumber)
Returns the maximum energy of your player character with the parameter player, returned from the method initialize in AIInterface.
|
java.util.Vector<MotionData> |
getMyMotion(boolean playerNumber)
Returns MotionData of your player character with the parameter player, returned from the method initialize in AIInterface
|
java.lang.String |
getMyName(boolean playerNumber)
Returns the name of your player character with the parameter player, returned from the method initialize in AIInterface.
|
int |
getOpponentMaxEnergy(boolean playerNumber)
Returns the maximum energy of the opponent' player character with the parameter player, returned from the method initialize in AIInterface.
|
java.util.Vector<MotionData> |
getOpponentMotion(boolean playerNumber)
Returns MotionData of opponent' player character with the parameter player, returned from the method initialize in AIInterface
|
java.lang.String |
getOpponentName(boolean playerNumber)
Returns the name of opponent' player character with the parameter player, returned from the method initialize in AIInterface.
|
java.lang.String |
getPlayerOneCharacterName()
Returns the name of the first player's character.
|
int |
getPlayerOneMaxEnergy()
Returns the energy limit of the first player's character.
|
java.util.Vector<MotionData> |
getPlayerOneMotion()
Returns MotionData of the first player's character.
A motion's information can be accessed by the method getPlayerOneMotion().elementAt(index). E.g., playerOneMotion.elementAt(Action.STAND_A.ordinal()).getSpeedX(). |
java.lang.String |
getPlayerTwoCharacterName()
Returns the name of the second player's character.
|
int |
getPlayerTwoMaxEnergy()
Returns the energy limit of the second player's character.
|
java.util.Vector<MotionData> |
getPlayerTwoMotion()
Returns MotionData of the second player's character.
A motion's information can be accessed by the method getPlayerTwoMotion().elementAt(index). E.g., playerTwoMotion.elementAt(Action.STAND_A.ordinal()).getSpeedX(). |
int |
getStageXMax()
Returns the horizontal length of the battle stage.
|
int |
getStageYMax()
Returns the vertical length of the battle stage.
|
public int getMyMaxEnergy(boolean playerNumber)
playerNumber
- public java.util.Vector<MotionData> getMyMotion(boolean playerNumber)
playerNumber
- public java.lang.String getMyName(boolean playerNumber)
playerNumber
- public int getOpponentMaxEnergy(boolean playerNumber)
playerNumber
- public java.util.Vector<MotionData> getOpponentMotion(boolean playerNumber)
playerNumber
- public java.lang.String getOpponentName(boolean playerNumber)
playerNumber
- public java.lang.String getPlayerOneCharacterName()
public int getPlayerOneMaxEnergy()
public java.util.Vector<MotionData> getPlayerOneMotion()
public java.lang.String getPlayerTwoCharacterName()
public int getPlayerTwoMaxEnergy()
public java.util.Vector<MotionData> getPlayerTwoMotion()
public int getStageXMax()
public int getStageYMax()