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 the character.
|
java.lang.String |
getName() |
render.Image |
getNowImage() |
int |
getRemainingFrame() |
int |
getSizeX() |
int |
getSizeY() |
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,
game.SoundManager sm,
java.util.Map<java.lang.String,java.lang.Integer> soundEffect,
image.ImageContainer ic) |
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 createAttackInstance()
public void destroyAttackInstance()
public boolean durationDecision()
public void frictionEffect()
public void frontDecision(int selfX, int otherX)
public Action getAction()
public Attack getAttack()
public int getEnergy()
public int getHitAreaB()
public int getHitAreaL()
public int getHitAreaR()
public int getHitAreaT()
public int getHitNumber()
public int getHp()
public int getMaxEnergy()
public java.util.Vector<Motion> getMotionVector()
public java.lang.String getName()
public render.Image getNowImage()
public int getRemainingFrame()
public int getSizeX()
public int getSizeY()
public int getSpeedX()
public int getSpeedY()
public State getState()
public int getX()
public int getY()
public void gravityEffect()
public void hitAttack()
public void init(java.lang.String characterName, boolean playerNumber, game.SoundManager sm, java.util.Map<java.lang.String,java.lang.Integer> soundEffect, image.ImageContainer ic)
public boolean invokeDecision()
public boolean isControl()
public boolean isFront()
public boolean isHitConfirm()
public boolean isPlayerNumber()
public void moveX(int relativePosition)
public void moveY(int relativePosition)
public void reversalSpeedX()
public void roundInit()
public void setAttack(Attack attack)
Attack
- The attack data that the character is using.public void setFront(boolean front)
boolean
- The character's facing direction.public void setHitConfirm(boolean hitConfirm)
public void setHitNumber(int hitNumber)
int
- Number of attack hit for the current action.public void update()