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 points 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 points of self.
|
int |
getMyX()
Gets self's x-coordinate.
|
int |
getMyY()
Gets self's y-coordinate.
|
boolean |
getskillFlag()
Returns true if a command is being input, otherwise returns 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 void commandCall(java.lang.String command)
String
- The direction number or motion namepublic int getDistanceX()
public int getDistanceY()
public CharacterData getEnemyCharacter()
public int getEnemyEnergy()
public int getEnemyHP()
public int getEnemyX()
public int getEnemyY()
public CharacterData getMyCharacter()
public int getMyEnergy()
public int getMyHP()
public int getMyX()
public int getMyY()
public boolean getskillFlag()
public Key getSkillKey()
public void setFrameData(FrameData frameData, boolean playerNumber)
frameData
- Frame data in this frameplayerNumber
- PlayerNumber of selfpublic void skillCancel()