public class CharacterData
extends java.lang.Object
Constructor and Description |
---|
CharacterData(Character character) |
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
Returns the character's action.
|
Attack |
getAttack()
Returns the attack data that the character is using.
|
int |
getBottom()
Returns the character's hit box's most-bottom y-coordinate.
|
int |
getEnergy()
Returns the character's energy.
|
int |
getHp()
Returns the character's hit point.
|
int |
getLeft()
Returns the character's hit box's most-left x-coordinate.
|
int |
getRemainingFrame()
Returns the number of frames that the character takes to resume to its normal status.
|
int |
getRight()
Returns the character's hit box's most-right x-coordinate.
|
int |
getSpeedX()
Returns the character's horizontal speed.
|
int |
getSpeedY()
Returns the character's vertical speed.
|
State |
getState()
Returns the character's state: stand / crouch / in air / down.
|
int |
getTop()
Returns the character's hit box's most-top y-coordinate.
|
int |
getX()
Returns the character's most-left x-coordinate.
|
int |
getY()
Returns the character box's most-top y-coordinate.
|
boolean |
isControl()
Returns the flag whether this character can run a motion with the motionfs command.
|
boolean |
isFront()
Returns the character's facing direction.
|
void |
setAction(Action action)
Sets the character's action.
|
void |
setAttack(Attack attack)
Sets the attack data that the character is using.
|
void |
setBottom(int bottom)
Sets the character's hit box's most-bottom y-coordinate.
|
void |
setControl(boolean control)
Sets the flag whether this character can run a motion with the motion's command
|
void |
setEnergy(int energy)
Sets the characterfs energy.
|
void |
setFront(boolean front)
Sets the character's facing direction.
|
void |
setHp(int hp)
Sets the character's hit point.
|
void |
setLeft(int left)
Sets the character's hit box's most-left x-coordinate.
|
void |
setRemainingFrame(int remainingFrame)
Sets the number of frames that the character takes to resume to its normal status.
|
void |
setRight(int right)
Sets the character's hit box's most-right x-coordinate.
|
void |
setSpeedX(int speedX)
Sets the character's horizontal speed.
|
void |
setSpeedY(int speedY)
Sets the character's vertical speed.
|
void |
setState(State state)
Sets the character's state: stand / crouch / in air / down.
|
void |
setTop(int top)
Sets the character's hit box's most-top y-coordinate.
|
void |
setX(int x)
Sets the character box's most-left x-coordinate.
|
void |
setY(int y)
Sets the character box's most-top y-coordinate.
|
public CharacterData(Character character)
public int getHp()
public void setHp(int hp)
hp
- the characterfs hit pointpublic int getEnergy()
public void setEnergy(int energy)
energy
- the characterfs energypublic int getX()
public void setX(int x)
x
- the character box's x-coordinatepublic int getY()
public void setY(int y)
y
- the character box's y-coordinatepublic int getLeft()
public void setLeft(int left)
left
- the character's hit box's most-left x-coordinatepublic int getRight()
public void setRight(int right)
right
- the character's hit box's most-right x-coordinatepublic int getTop()
public void setTop(int top)
top
- the character's hit box's most-top y-coordinatepublic int getBottom()
public void setBottom(int bottom)
bottom
- the character's hit box's most-bottom y-coordinatepublic int getSpeedX()
public void setSpeedX(int speedX)
speedX
- the character's horizontal speedpublic int getSpeedY()
public void setSpeedY(int speedY)
speedY
- the character's vertical speedpublic State getState()
public void setState(State state)
State
- the character's state: stand / crouch / in air / downpublic Action getAction()
public void setAction(Action action)
action
- the character's actionpublic boolean isFront()
public void setFront(boolean front)
front
- the character's facing directionpublic boolean isControl()
public void setControl(boolean control)
control
- the flag whether this character can run a motion with the motion's commandpublic int getRemainingFrame()
public void setRemainingFrame(int remainingFrame)
remainingFrame
- the number of frames that the character takes to resume to its normal statuspublic Attack getAttack()
public void setAttack(Attack attack)
attack
- the attack data that the character is using