public class FrameData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Deque<Attack> |
attack
the projectile data of both characters
|
boolean |
emptyFlag
If this value is true, no data are available or they are dummy data.
|
KeyData |
keyData
the value of input information
|
CharacterData |
P1
the first character's data
|
CharacterData |
P2
the second character's data
|
long |
remainingTime
the remaining time in seconds of the current round
|
int |
round
the current round number
|
Constructor and Description |
---|
FrameData() |
FrameData(CharacterData P1,
CharacterData P2,
long remainingTime,
int round,
java.util.Deque<Attack> attack,
KeyData keyData)
This method receives the data from an instance of the Fighting class.
|
Modifier and Type | Method and Description |
---|---|
void |
empty()
If data are not available, this method will be called for generating dummy data.
|
java.util.Deque<Attack> |
getAttack()
Returns the projectile data of both characters.
|
KeyData |
getKeyData()
Returns the value of input information.
|
CharacterData |
getP1()
Returns the first character's data.
|
CharacterData |
getP2()
Returns the second character's data.
|
long |
getRemainingTime()
Returns the remaining time in seconds of the current round.
|
int |
getRound()
Returns the current round number.
|
void |
loading(int timeCount)
If data are not available but the stage is ready, this method will be called.
|
public CharacterData P1
public CharacterData P2
public long remainingTime
public int round
public java.util.Deque<Attack> attack
public KeyData keyData
public boolean emptyFlag
public FrameData()
public FrameData(CharacterData P1, CharacterData P2, long remainingTime, int round, java.util.Deque<Attack> attack, KeyData keyData)
P1
- P2
- remainingTime
- round
- attack
- keyData
- public void empty()
public void loading(int timeCount)
timeCount
- the number of frames before a round startspublic CharacterData getP1()
public CharacterData getP2()
public long getRemainingTime()
public int getRound()
public java.util.Deque<Attack> getAttack()
public KeyData getKeyData()