public class CommandCenter
extends java.lang.Object
Constructor and Description |
---|
CommandCenter() |
Modifier and Type | Method and Description |
---|---|
void |
commandCall(java.lang.String command)
Uses "command" to create SkillData, an array containing the input sequence.
|
int |
getDistanceX()
Gets the horizontal distance between the two characters.
|
int |
getDistanceY()
Gets the vertical distance between the two characters.
|
CharacterData |
getEnemyCharacter()
Gets the character data of the opponent.
|
int |
getEnemyEnergy()
Gets the energy value of the opponent.
|
int |
getEnemyHP()
Gets the hit point of the opponent.
|
int |
getEnemyX()
Gets the opponent's x-coordinate.
|
int |
getEnemyY()
Gets the opponent's y-coordinate.
|
CharacterData |
getMyCharacter()
Gets the character data of self.
|
int |
getMyEnergy()
Gets the energy value of self.
|
int |
getMyHP()
Gets the hit point of self.
|
int |
getMyX()
Gets self's x-coordinate.
|
int |
getMyY()
Gets self's y-coordinate.
|
boolean |
getskillFlag()
If a command is being input, then returns true, otherwise false.
|
Key |
getSkillKey()
Gets the current Key data.
|
void |
setFrameData(FrameData frameData,
boolean playerNumber)
Sets the frame data.
|
void |
skillCancel()
Empties skillData and sets skillFlag to false.
|
public boolean getskillFlag()
public void setFrameData(FrameData frameData, boolean playerNumber)
frameData
- frame data in this frameplayerNumber
- playerNumber of selfpublic void commandCall(java.lang.String command)
String
- the direction number or motion namepublic void skillCancel()
public Key getSkillKey()
public int getMyHP()
public int getMyEnergy()
public int getEnemyHP()
public int getEnemyEnergy()
public int getMyX()
public int getMyY()
public int getEnemyX()
public int getEnemyY()
public int getDistanceX()
public int getDistanceY()
public CharacterData getMyCharacter()
public CharacterData getEnemyCharacter()