public class MotionData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
actionName
This motion's name.
|
int |
attackActive
The number of active frames.
|
boolean |
attackDownProp
The flag whether this skill can push down the opponent when it is hit by
this skill.
|
int |
attackGiveEnergy
The value of the energy given to the opponent when it is hit by this
skill.
|
int |
attackGiveGuardRecov
The number of frames that the guarding opponent needs to resume to its
normal status when it is hit by this skill.
|
int |
attackGuardAddEnergy
The value of the energy added to the character when this skill is guarded
by the guarding opponent.
|
int |
attackGuardDamage
The value of the damage to the guarding opponent when it is hit by this
skill.
|
int |
attackHitAddEnergy
The value of the energy added to the character when this skill hits the
opponent.
|
HitArea |
attackHitArea
The information on the attack hit box.
|
int |
attackHitDamage
The value of the damage to the unguarding opponent when it is hit by this
skill.
|
int |
attackImpactX
The change in the horizontal speed of the opponent when it is hit by this
skill.
|
int |
attackImpactY
The change in the vertical speed of the opponent when it is hit by this
skill.
|
int |
attackSpeedX
The horizontal speed of the attack hit box.
|
int |
attackSpeedY
The vertical speed of the attack hit box.
|
int |
attackStartAddEnergy
The value of the energy added to the character when it uses this skill.
|
int |
attackStartUp
The number of startup frames.
|
int |
attackType
The value of attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.
|
int |
cancelAbleFrame
The frame number of the first frame that the character can cancel this
motion.
If this motion has reached this timing, it can be canceled with a motion having a motionLevel less than or equal to the
cancelAbleMotionLevel of this motion. |
int |
cancelAbleMotionLevel
The value of the level that can cancel this motion.
During cancelable frames, any motion whose level is less than or equal to this value can cancel this motion. |
HitArea |
characterHitArea
The information on the hit box (boundary box in other games).
|
boolean |
control
The flag whether this character can run a motion with the motion's
command.
|
int |
frameNumber
The number of frames in this motion.
|
boolean |
landingFlag
The flag whether a landing motion can cancel this motion.
|
int |
motionLevel
The value of this motion's level.
|
int |
speedX
The speed value in the horizontal direction that will be applied to the
character when it does this motion.
|
int |
speedY
The speed value in the vertical direction that will be applied to the
character when it does this motion.
|
State |
state
The resulting state after running this motion.
|
Constructor and Description |
---|
MotionData()
The class constructor.
|
MotionData(fighting.Motion motion)
The class constructor that generates an instance of the MotionData class
by using an instance of the class passed as the argument.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionName()
Returns the name of this motion.
|
int |
getAttackActive()
Returns the number of active frames.
|
int |
getAttackGiveEnergy()
Returns the value of the energy given to the opponent when it is hit by
this skill.
|
int |
getAttackGiveGuardRecov()
Returns the number of frames that the guarding opponent needs to resume
to its normal status when it is hit by this skill.
|
int |
getAttackGuardAddEnergy()
Returns the value of the energy added to the character when this skill is
guarded by the guarding opponent.
|
int |
getAttackGuardDamage()
Returns the value of the damage to the guarding opponent when it is hit
by this skill.
|
int |
getAttackHitAddEnergy()
Returns the value of the energy added to the character when this skill
hits the opponent.
|
HitArea |
getAttackHitArea()
Returns the attack's hit area associated to this motion.
|
int |
getAttackHitDamage()
Returns the value of the damage to the unguarding opponent when it is hit
by this skill.
|
int |
getAttackImpactX()
Returns the change in the horizontal speed of the opponent when it is hit
by this skill.
|
int |
getAttackImpactY()
Returns the change in the vertical speed of the opponent when it is hit
by this skill.
|
int |
getAttackSpeedX()
Returns the horizontal speed of the attack hit box.
|
int |
getAttackSpeedY()
Returns the vertical speed of the attack hit box.
|
int |
getAttackStartAddEnergy()
Returns the value of the energy added to the character when it uses this
skill.
|
int |
getAttackStartUp()
Returns the number of startup frames.
|
int |
getAttackType()
Returns the value of the attack type:
1 = high 2 = middle 3 = low 4 = throw |
int |
getCancelAbleFrame()
Returns the frame number of the first frame that this motion can be
canceled.
Notice that only a motion whose motionLevel is less than or
equal to the cancelAbleMotionLevel of this one can cancel this
motion. |
int |
getCancelAbleMotionLevel()
Returns the maximum
motionLevel a motion can have in order to be
able to cancel this motion. |
HitArea |
getCharacterHitArea()
Returns the character's hit area associated to this motion.
|
int |
getFrameNumber()
Returns the number of frames in this motion.
|
int |
getMotionLevel()
Returns the level of this motion.
|
int |
getSpeedX()
Returns the horizontal speed applied to a character using this motion.
|
int |
getSpeedY()
Returns the vertical speed applied to a character using this motion.
|
State |
getState()
Returns the state that is assigned to a character after this motion is
completed.
|
boolean |
isAttackDownProp()
Returns the flag whether this skill can push down the opponent when hit.
|
boolean |
isControl()
Returns the controllable state associated to this motion.
If the flag is false, a character using this motion cannot be controlled until this motion finishes. |
boolean |
isLandingFlag()
Returns
true if the landing motion can cancel this motion,
false otherwise. |
void |
setAttackActive(int attackActive)
Sets the number of active frames.
|
void |
setAttackDownProp(boolean attackDownProp)
Sets the flag whether this skill can push down the opponent when it is
hit by this skill.
|
void |
setAttackGiveEnergy(int attackGiveEnergy)
Sets the value of the energy given to the opponent when it is hit by this
skill.
|
void |
setAttackGiveGuardRecov(int attackGiveGuardRecov)
Sets the number of frames that the guarding opponent needs to resume to
its normal status after being hit by this skill.
|
void |
setAttackGuardAddEnergy(int attackGuardAddEnergy)
Sets the value of the energy added to the character when this skill is
guarded by the guarding opponent.
|
void |
setAttackGuardDamage(int attackGuardDamage)
Sets the value of the damage to the guarding opponent when it is hit by
this skill.
|
void |
setAttackHitAddEnergy(int attackHitAddEnergy)
Sets the value of the energy added to the character when this skill hits
the opponent.
|
void |
setAttackHitArea(HitArea attackHitArea)
Sets the attack's hit area of this action.
|
void |
setAttackHitDamage(int attackHitDamage)
Sets the value of the damage to the unguarding opponent when it is hit by
this skill.
|
void |
setAttackImpactX(int attackImpactX)
Sets the change in the horizontal speed of the opponent when it is hit by
this skill.
|
void |
setAttackImpactY(int attackImpactY)
Sets the change in the vertical speed of the opponent when it is hit by
this skill.
|
void |
setAttackSpeedX(int attackSpeedX)
Sets the horizontal speed of the attack hit box.
|
void |
setAttackSpeedY(int attackSpeedY)
Sets the vertical speed of the attack hit box.
|
void |
setAttackStartAddEnergy(int attackStartAddEnergy)
Sets the value of the energy added to the character when it uses this
skill.
|
void |
setAttackStartUp(int attackStartUp)
Sets the number of startup frames.
|
void |
setAttackType(int attackType)
Sets the value of the attack type:
1 = high, 2 = middle, 3 = low, 4 = throw, |
void |
setCancelAbleFrame(int cancelAbleFrame)
Sets the
cancelAbleFrame setting.This indicates the frame number of the first frame that this motion can be canceled. |
void |
setCancelAbleMotionLevel(int cancelAbleMotionLevel)
Sets the
cancelAbleMotionLevel setting.This indicates the maximum level that a motion can have to be able to cancel this motion. |
void |
setCharacterHitArea(HitArea characterHitArea)
Sets the character's hit area of this motion.
|
void |
setControl(boolean control)
Sets the
control flag.If the flag is false, a character using this motion cannot be controlled until this motion finishes. |
void |
setFrameNumber(int frameNumber)
Set the number of frames in this motion.
|
void |
setLandingFlag(boolean landingFlag)
Sets the
landingFlag setting, a flag encoding whether the
Landing motion can cancel this motion. |
void |
setMotionLevel(int motionLevel)
Sets the
motionLevel of this motion. |
void |
setMotionName(java.lang.String motionName)
Sets the name of this motion.
|
void |
setSpeedX(int speedX)
Sets the
speedX setting, which stores the horizontal speed
applied to a character using this motion. |
void |
setSpeedY(int speedY)
Sets the
speedY setting, which stores the vertical speed applied
to a character using this motion. |
void |
setState(State state)
Sets the
state setting, which represents the state assigned to
the character at the end of this motion. |
public java.lang.String actionName
public int frameNumber
public int speedX
public int speedY
public HitArea characterHitArea
public State state
public HitArea attackHitArea
public int attackSpeedX
public int attackSpeedY
public int attackStartUp
public int attackActive
public int attackHitDamage
public int attackGuardDamage
public int attackStartAddEnergy
public int attackHitAddEnergy
public int attackGuardAddEnergy
public int attackGiveEnergy
public int attackImpactX
public int attackImpactY
public int attackGiveGuardRecov
public int attackType
public boolean attackDownProp
public int cancelAbleFrame
motionLevel
less than or equal to the
cancelAbleMotionLevel
of this motion. If this motion has no
cancelable period, the returned value will be -1.public int cancelAbleMotionLevel
public int motionLevel
cancelAbleMotionLevel
,
cancelAbleFrame
public boolean control
public boolean landingFlag
public MotionData()
public MotionData(fighting.Motion motion)
motion
- an instance of the Motion classMotion
public java.lang.String getActionName()
public int getFrameNumber()
public int getSpeedX()
public int getSpeedY()
public HitArea getAttackHitArea()
public HitArea getCharacterHitArea()
public State getState()
public int getAttackSpeedX()
public int getAttackSpeedY()
public int getAttackStartUp()
public int getAttackActive()
public int getAttackHitDamage()
public int getAttackGuardDamage()
public boolean isControl()
true
if a character using this motion is controllable,
false
otherwisepublic int getAttackStartAddEnergy()
public int getCancelAbleFrame()
motionLevel
is less than or
equal to the cancelAbleMotionLevel
of this one can cancel this
motion.public int getAttackHitAddEnergy()
public int getAttackGuardAddEnergy()
public int getAttackGiveEnergy()
public int getAttackImpactX()
public int getAttackImpactY()
public int getAttackGiveGuardRecov()
public int getAttackType()
public boolean isAttackDownProp()
public int getCancelAbleMotionLevel()
motionLevel
a motion can have in order to be
able to cancel this motion.motionLevel
a motion can have in order to be
able to cancel this motionpublic int getMotionLevel()
cancelAbleFrame
) if such motions have
a cancelAbleMotionLevel
higher than or equal to the level of
this motion.public boolean isLandingFlag()
true
if the landing motion can cancel this motion,
false
otherwise.public void setMotionName(java.lang.String motionName)
motionName
- the motion name to be set.public void setFrameNumber(int frameNumber)
frameNumber
- the number of frames to be setpublic void setSpeedX(int speedX)
speedX
setting, which stores the horizontal speed
applied to a character using this motion.speedX
- the value to assign to the speedX
settingpublic void setSpeedY(int speedY)
speedY
setting, which stores the vertical speed applied
to a character using this motion.speedY
- the value to assign to the speedY
settingpublic void setAttackHitArea(HitArea attackHitArea)
attackHitArea
- the attack's hit areaHitArea
public void setCharacterHitArea(HitArea characterHitArea)
characterHitArea
- the character's hit areaHitArea
public void setAttackSpeedX(int attackSpeedX)
attackSpeedX
- the horizontal speed of the attack hit boxpublic void setAttackSpeedY(int attackSpeedY)
attackSpeedY
- the vertical speed of the attack hit boxpublic void setAttackStartUp(int attackStartUp)
attackStartUp
- the number of startup framespublic void setAttackActive(int attackActive)
attackActive
- the number of active framespublic void setAttackHitDamage(int attackHitDamage)
attackHitDamage
- the value of the damage to the unguarding opponent when it is
hit by this skillpublic void setAttackGuardDamage(int attackGuardDamage)
attackGuardDamage
- the value of the damage to the guarding opponent when it is
hit by this skillpublic void setAttackStartAddEnergy(int attackStartAddEnergy)
attackStartAddEnergy
- the value of the energy added to the character when it uses
this skillpublic void setAttackHitAddEnergy(int attackHitAddEnergy)
attackHitAddEnergy
- the value of the energy added to the character when this skill
hits the opponentpublic void setAttackGuardAddEnergy(int attackGuardAddEnergy)
attackGuardAddEnergy
- the value of the energy added to the character when this skill
is guarded by the guarding opponentpublic void setAttackGiveEnergy(int attackGiveEnergy)
attackGiveEnergy
- the value of the energy given to the opponent when it is hit
by this skillpublic void setAttackImpactX(int attackImpactX)
attackImpactX
- the change in the horizontal speed of the opponent when it is
hit by this skillpublic void setAttackImpactY(int attackImpactY)
attackImpactY
- the change in the vertical speed of the opponent when it is
hit by this skillpublic void setAttackGiveGuardRecov(int attackGiveGuardRecov)
attackGiveGuardRecov
- the number of frames that the guarding opponent needs to
resume to its normal status after being hit by this skillpublic void setAttackType(int attackType)
attackType
- the value of the attack typepublic void setControl(boolean control)
control
flag.control
- the value to give to the flagpublic void setAttackDownProp(boolean attackDownProp)
attackDownProp
- the flag whether this skill can push down the opponent when it
is hit by this skillpublic void setCancelAbleFrame(int cancelAbleFrame)
cancelAbleFrame
setting.cancelAbleFrame
- the value to assign to the cancelAbleFrame
settingpublic void setCancelAbleMotionLevel(int cancelAbleMotionLevel)
cancelAbleMotionLevel
setting.cancelAbleMotionLevel
- the value to assign to the cancelAbleMotionLevel
settingpublic void setMotionLevel(int motionLevel)
motionLevel
of this motion.motionLevel
- the value to assign to the motionLevel
settingpublic void setState(State state)
state
setting, which represents the state assigned to
the character at the end of this motion.state
- the value to assign to the state
settingpublic void setLandingFlag(boolean landingFlag)
landingFlag
setting, a flag encoding whether the
Landing motion can cancel this motion.landingFlag
- the value to assign to the landingFlag
setting