public class Character
extends java.lang.Object
Constructor and Description |
---|
Character() |
Modifier and Type | Method and Description |
---|---|
void |
createAttackInstance() |
void |
destroyAttackInstance() |
boolean |
durationDecision() |
void |
frictionEffect() |
void |
frontDecision(int selfX,
int otherX) |
Action |
getAction() |
Attack |
getAttack() |
int |
getEnergy() |
int |
getHitAreaB() |
int |
getHitAreaL() |
int |
getHitAreaR() |
int |
getHitAreaT() |
int |
getHitNumber() |
int |
getHp() |
int |
getMaxEnergy() |
java.util.Vector<Motion> |
getMotionVector()
MotionData of this character.
|
org.newdawn.slick.Image |
getNowImage() |
int |
getRemainingFrame() |
int |
getSpeedX() |
int |
getSpeedY() |
State |
getState() |
int |
getX() |
int |
getY() |
void |
gravityEffect() |
void |
hitAttack() |
void |
hitAttackObject(Character other,
Attack attackObject) |
void |
init(java.lang.String characterName,
boolean playerNumber) |
boolean |
invokeDecision() |
boolean |
isControl() |
boolean |
isFront() |
boolean |
isHitConfirm() |
boolean |
isPlayerNumber() |
void |
moveX(int relativePosition) |
void |
moveY(int relativePosition) |
void |
reversalSpeedX() |
void |
roundInit() |
Attack |
runMotion(Action motionNumber) |
void |
setAttack(Attack attack)
Set the attack data that the character is using.
|
void |
setFront(boolean front)
Set the character's facing direction.
|
void |
setHitConfirm(boolean hitConfirm) |
void |
setHitNumber(int hitNumber) |
void |
update() |
public void init(java.lang.String characterName, boolean playerNumber)
public void roundInit()
public void createAttackInstance()
public void destroyAttackInstance()
public void hitAttack()
public void frontDecision(int selfX, int otherX)
public boolean invokeDecision()
public boolean durationDecision()
public void update()
public void moveX(int relativePosition)
public void moveY(int relativePosition)
public void frictionEffect()
public void gravityEffect()
public void reversalSpeedX()
public void setHitConfirm(boolean hitConfirm)
public void setFront(boolean front)
boolean
- The character's facing direction.public int getHp()
public int getEnergy()
public int getX()
public int getY()
public int getSpeedX()
public int getSpeedY()
public State getState()
public Action getAction()
public boolean isHitConfirm()
public int getHitNumber()
public void setHitNumber(int hitNumber)
int
- Number of attack hit for now action.public boolean isFront()
public boolean isControl()
public int getRemainingFrame()
public boolean isPlayerNumber()
public int getMaxEnergy()
public org.newdawn.slick.Image getNowImage()
public int getHitAreaR()
public int getHitAreaL()
public int getHitAreaT()
public int getHitAreaB()
public java.util.Vector<Motion> getMotionVector()
public Attack getAttack()
public void setAttack(Attack attack)
Attack
- The attack data that the character is using.