public class CommandCenter
extends java.lang.Object
Constructor and Description |
---|
CommandCenter()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
commandCall(java.lang.String str)
Converts the action name entered by AI into Key and stores it in the list of keys waiting to be executed.
If there are unexecuted keys in the list, this method does nothing. |
boolean |
getSkillFlag()
Returns whether there are unexecuted keys in the list of keys waiting to be executed.
|
Key |
getSkillKey()
Returns the first element from the list of keys waiting to be executed.
|
java.util.Deque<Key> |
getSkillKeys()
Returns the list of keys waiting to be executed.
|
boolean |
isPlayerNumber()
Returns the character's side flag.
|
void |
setFrameData(FrameData frameData,
boolean playerNumber)
Sets the current frame data and the boolean variable representing P1 and P2.
|
void |
skillCancel()
Deletes all the keys from the list of keys waiting to be executed.
|
public void commandCall(java.lang.String str)
str
- an action namepublic void setFrameData(FrameData frameData, boolean playerNumber)
frameData
- the current frame dataplayerNumber
- The character's side flag.true
if the character is P1, or false
if P2.public boolean getSkillFlag()
true
if there are keys not yet executed in the list,false
otherwise.public Key getSkillKey()
public java.util.Deque<Key> getSkillKeys()
public void skillCancel()
public boolean isPlayerNumber()
true
if the character is P1, or false
if P2.