public class AttackData
extends java.lang.Object
Constructor and Description |
---|
AttackData()
The class constructor.
|
AttackData(fighting.Attack attack)
The class constructor that creates an instance of the AttackData class by
copying the values of the variables from an instance of the Attack class
passed as the argument.
|
AttackData(AttackData attackData)
The copy constructor that creates a copy of an instance of the AttackData
class.
|
Modifier and Type | Method and Description |
---|---|
int |
getActive()
Returns the number of frames in Active.
|
int |
getAttackType()
Returns the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 =
throw.
|
int |
getCurrentFrame()
Returns the number of frames since this attack was used.
|
HitArea |
getCurrentHitArea()
Returns HitArea's information of this attack hit box in the current
frame.
|
int |
getGiveEnergy()
Returns the value of the energy added to the opponent when it is hit by
this skill.
|
int |
getGiveGuardRecov()
Returns the number of frames that the guarded opponent needs to resume to
its normal status after being hit by this skill.
|
int |
getGuardAddEnergy()
Returns the value of the energy added to the character when this skill is
blocked by the opponent.
|
int |
getGuardDamage()
Returns the damage value to the guarded opponent hit by this skill.
|
int |
getHitAddEnergy()
Returns the value of the energy added to the character when this skill
hits the opponent.
|
int |
getHitDamage()
Returns the damage value to the unguarded opponent hit by this skill.
|
int |
getImpactX()
Returns the change in the horizontal speed of the opponent when it is hit
by this skill.
|
int |
getImpactY()
Returns the change in the vertical speed of the opponent when it is hit
by this skill.
|
int |
getPlayerNumber()
Returns the integer number indicating the player of the attack.
|
HitArea |
getSettingHitArea()
Returns HitArea's setting information.
|
int |
getSettingSpeedX()
Returns the absolute value of the horizontal speed of the attack hit box
(zero means the attack hit box will track the character).
|
int |
getSettingSpeedY()
Returns the absolute value of the vertical speed of the attack hit box
(zero means the attack hit box will track the character).
|
int |
getSpeedX()
Returns the horizontal speed of the attack hit box (minus when moving
left and plus when moving right).
|
int |
getSpeedY()
Returns the vertical speed of the attack hit box (minus when moving up
and plus when moving down).
|
int |
getStartAddEnergy()
Returns the value of the energy added to the character when it uses this
skill.
|
int |
getStartUp()
Returns the number of frames in Startup.
|
boolean |
isDownProp()
Returns the flag whether this skill can push down the opponent when hit.
|
boolean |
isPlayerNumber()
Returns the player side's flag.
|
boolean |
isProjectile()
Returns the flag whether this skill is projectile or not.
|
void |
setActive(int active)
Sets the number of frames in Active.
|
void |
setAttackType(int attackType)
Sets the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 =
throw.
|
void |
setCurrentFrame(int nowFrame)
Sets the number of frames since this attack was used.
|
void |
setDownProp(boolean downProp)
Sets the flag whether this skill can push down the opponent when hit.
|
void |
setGiveEnergy(int giveEnergy)
Sets the value of the energy added to the opponent when it is hit by this
skill.
|
void |
setGiveGuardRecov(int giveGuardRecov)
Sets the number of frames that the guarded opponent needs to resume to
his normal status after being hit by this skill.
|
void |
setGuardAddEnergy(int guardAddEnergy)
Sets the value of the energy added to the character when this skill is
blocked by the opponent.
|
void |
setGuardDamage(int guardDamage)
Sets the damage value to the guarded opponent hit by this skill.
|
void |
setHitAddEnergy(int hitAddEnergy)
Sets the value of the energy added to the character when this skill hits
the opponent.
|
void |
setHitDamage(int hitDamage)
Sets the damage value to the unguarded opponent hit by this skill.
|
void |
setImpactX(int impactX)
Sets the change in the horizontal speed of the opponent when it is hit by
this skill.
|
void |
setImpactY(int impactY)
Sets the change in the vertical speed of the opponent when it is hit by
this skill.
|
void |
setIsProjectile(boolean isProjectile)
Sets the boolean value whether this skill is projectile or not.
|
void |
setPlayerNumber(boolean playerNumber)
Sets the player side's flag.
|
void |
setSettingHitArea(HitArea settingHitArea)
Sets HitArea's setting information.
|
void |
setSettingSpeedX(int settingSpeedX)
Sets the absolute value of the horizontal speed of the attack hit box
(zero means the attack hit box will track the character).
|
void |
setSettingSpeedY(int settingSpeedY)
Sets the absolute value of the vertical speed of the attack hit box (zero
means the attack hit box will track the character).
|
void |
setSpeedX(int speedX)
Sets the horizontal speed of the attack hit box (minus when moving left
and plus when moving right).
|
void |
setSpeedY(int speedY)
Sets the vertical speed of the attack hit box (minus when moving up and
plus when moving down).
|
void |
setStartAddEnergy(int startAddEnergy)
Sets the value of energy added to the character when it uses this skill.
|
void |
setStartUp(int startUp)
Sets the number of frames in Startup.
|
public AttackData()
public AttackData(fighting.Attack attack)
attack
- an instance of the Attack classpublic AttackData(AttackData attackData)
attackData
- an instance of the AttackData classpublic boolean isPlayerNumber()
true
if the player is P1, or false
if P2public boolean isDownProp()
true
if this skill can push down, false
otherwise.public boolean isProjectile()
true
if this skill is projectile, false
otherwisepublic int getCurrentFrame()
public int getPlayerNumber()
0
if the player is P1, or 1
if P2public int getSpeedX()
public int getSpeedY()
public int getStartUp()
MotionData.attackStartUp
public int getActive()
MotionData.attackActive
public int getHitDamage()
public int getGuardDamage()
public int getStartAddEnergy()
public int getHitAddEnergy()
public int getGuardAddEnergy()
public int getGiveEnergy()
public int getImpactX()
public int getImpactY()
public int getGiveGuardRecov()
public int getAttackType()
public HitArea getCurrentHitArea()
HitArea
public int getSettingSpeedX()
public int getSettingSpeedY()
public HitArea getSettingHitArea()
public void setSettingHitArea(HitArea settingHitArea)
settingHitArea
- HitArea's setting informationpublic void setSettingSpeedX(int settingSpeedX)
settingSpeedX
- the absolute value of the horizontal speed of the attack hit
box (zero means the attack hit box will track the character)public void setSettingSpeedY(int settingSpeedY)
settingSpeedY
- the absolute value of the vertical speed of the attack hit box
(zero means the attack hit box will track the character)public void setCurrentFrame(int nowFrame)
nowFrame
- the number of frames since this attack was usedpublic void setPlayerNumber(boolean playerNumber)
playerNumber
- the player side's flag. true
if the player is P1, or
false
if P2.public void setSpeedX(int speedX)
speedX
- the horizontal speed of the attack hit box (minus when moving
left and plus when moving right)public void setSpeedY(int speedY)
speedY
- the vertical speed of the attack hit box (minus when moving up
and plus when moving down)public void setStartUp(int startUp)
startUp
- the number of frames in StartupMotionData.attackStartUp
public void setActive(int active)
active
- the number of frames in ActiveMotionData.attackActive
public void setHitDamage(int hitDamage)
hitDamage
- the damage value to the unguarded opponent hit by this skillpublic void setGuardDamage(int guardDamage)
guardDamage
- the damage value to the guarded opponent hit by this skillpublic void setStartAddEnergy(int startAddEnergy)
startAddEnergy
- the value of the energy added to the character when it uses
this skillpublic void setHitAddEnergy(int hitAddEnergy)
hitAddEnergy
- the value of the energy added to the character when this skill
hits the opponentpublic void setGuardAddEnergy(int guardAddEnergy)
guardAddEnergy
- the value of the energy added to the character when this skill
is blocked by the opponentpublic void setGiveEnergy(int giveEnergy)
giveEnergy
- the value of the energy added to the opponent when it is hit
by this skillpublic void setImpactX(int impactX)
impactX
- the change in the horizontal speed of the opponent when it is
hit by this skillpublic void setImpactY(int impactY)
impactY
- the change in the vertical speed of the opponent when it is
hit by this skillpublic void setGiveGuardRecov(int giveGuardRecov)
giveGuardRecov
- the number of frames that the guarded opponent needs to resume
to his normal status after being hit by this skillpublic void setAttackType(int attackType)
attackType
- the value of the attack typepublic void setDownProp(boolean downProp)
downProp
- the flag whether this skill can push down the opponent when
hit. true
if this skill can push down, false
otherwise.public void setIsProjectile(boolean isProjectile)
isProjectile
- the flag whether this skill is projectile or not. true
if this skill is projectile, false
otherwise.