Package struct
Class AttackData
java.lang.Object
struct.AttackData
The class dealing with data on the attack such as damage amount and required
energy amount.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe number of frames in Active.private intThe value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.private intThe number of frames since this attack was used.private HitAreaThe HitArea's information of this attack hit box in the current frame.private booleanThe flag whether this skill can push down the opponent when hit.
trueif this skill can push down,falseotherwise.private intThe value of the energy added to the opponent when it is hit by this skill.private intThe number of frames that the guarded opponent needs to resume to his normal status after being hit by this skill.private intThe value of the energy added to the character when this skill is blocked by the opponent.private intThe damage value to the guarded opponent hit by this skill.private intThe value of the energy added to the character when this skill hits the opponent.private intThe damage value to the unguarded opponent hit by this skill.private intThe change in the horizontal speed of the opponent when it is hit by this skill.private intThe change in the vertical speed of the opponent when it is hit by this skill.private booleanThe flag whether this skill is projectile or not.
trueif this skill is projectile,falseotherwise.private booleanThe player side's flag.
Trueif the character is P1, orfalseif P2.private HitAreaTheHitArea's information of this attack hit box set in Motion.csv.private intThe absolute value of the horizontal speed of the attack hit box (zero means the attack hit box will track the character).private intThe absolute value of the vertical speed of the attack hit box (zero means the attack hit box will track the character).private intThe horizontal speed of the attack hit box (minus when moving left and plus when moving right).private intThe vertical speed of the attack hit box (minus when moving up and plus when moving down).private intThe value of the energy added to the character when it uses this skill.private intThe number of frames in Startup. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of frames in Active.intReturns the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.intReturns the number of frames since this attack was used.Returns HitArea's information of this attack hit box in the current frame.intReturns the value of the energy added to the opponent when it is hit by this skill.intReturns the number of frames that the guarded opponent needs to resume to its normal status after being hit by this skill.intReturns the value of the energy added to the character when this skill is blocked by the opponent.intReturns the damage value to the guarded opponent hit by this skill.intReturns the value of the energy added to the character when this skill hits the opponent.intReturns the damage value to the unguarded opponent hit by this skill.intReturns the change in the horizontal speed of the opponent when it is hit by this skill.intReturns the change in the vertical speed of the opponent when it is hit by this skill.intReturns the integer number indicating the player of the attack.Returns HitArea's setting information.intReturns the absolute value of the horizontal speed of the attack hit box (zero means the attack hit box will track the character).intReturns the absolute value of the vertical speed of the attack hit box (zero means the attack hit box will track the character).intReturns the horizontal speed of the attack hit box (minus when moving left and plus when moving right).intReturns the vertical speed of the attack hit box (minus when moving up and plus when moving down).intReturns the value of the energy added to the character when it uses this skill.intReturns the number of frames in Startup.booleanReturns the flag whether this skill can push down the opponent when hit.booleanReturns the player side's flag.booleanReturns the flag whether this skill is projectile or not.voidsetActive(int active) Sets the number of frames in Active.voidsetAttackType(int attackType) Sets the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.voidsetCurrentFrame(int nowFrame) Sets the number of frames since this attack was used.voidsetDownProp(boolean downProp) Sets the flag whether this skill can push down the opponent when hit.voidsetGiveEnergy(int giveEnergy) Sets the value of the energy added to the opponent when it is hit by this skill.voidsetGiveGuardRecov(int giveGuardRecov) Sets the number of frames that the guarded opponent needs to resume to his normal status after being hit by this skill.voidsetGuardAddEnergy(int guardAddEnergy) Sets the value of the energy added to the character when this skill is blocked by the opponent.voidsetGuardDamage(int guardDamage) Sets the damage value to the guarded opponent hit by this skill.voidsetHitAddEnergy(int hitAddEnergy) Sets the value of the energy added to the character when this skill hits the opponent.voidsetHitDamage(int hitDamage) Sets the damage value to the unguarded opponent hit by this skill.voidsetImpactX(int impactX) Sets the change in the horizontal speed of the opponent when it is hit by this skill.voidsetImpactY(int impactY) Sets the change in the vertical speed of the opponent when it is hit by this skill.voidsetIsProjectile(boolean isProjectile) Sets the boolean value whether this skill is projectile or not.voidsetPlayerNumber(boolean playerNumber) Sets the player side's flag.voidsetSettingHitArea(HitArea settingHitArea) Sets HitArea's setting information.voidsetSettingSpeedX(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).voidsetSettingSpeedY(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).voidsetSpeedX(int speedX) Sets the horizontal speed of the attack hit box (minus when moving left and plus when moving right).voidsetSpeedY(int speedY) Sets the vertical speed of the attack hit box (minus when moving up and plus when moving down).voidsetStartAddEnergy(int startAddEnergy) Sets the value of energy added to the character when it uses this skill.voidsetStartUp(int startUp) Sets the number of frames in Startup.
-
Field Details
-
settingHitArea
TheHitArea's information of this attack hit box set in Motion.csv.- See Also:
-
settingSpeedX
private int settingSpeedXThe absolute value of the horizontal speed of the attack hit box (zero means the attack hit box will track the character). -
settingSpeedY
private int settingSpeedYThe absolute value of the vertical speed of the attack hit box (zero means the attack hit box will track the character). -
currentHitArea
The HitArea's information of this attack hit box in the current frame.- See Also:
-
currentFrame
private int currentFrameThe number of frames since this attack was used. -
playerNumber
private boolean playerNumberThe player side's flag.
Trueif the character is P1, orfalseif P2. -
speedX
private int speedXThe horizontal speed of the attack hit box (minus when moving left and plus when moving right). -
speedY
private int speedYThe vertical speed of the attack hit box (minus when moving up and plus when moving down). -
startUp
private int startUpThe number of frames in Startup. -
active
private int activeThe number of frames in Active. -
hitDamage
private int hitDamageThe damage value to the unguarded opponent hit by this skill. -
guardDamage
private int guardDamageThe damage value to the guarded opponent hit by this skill. -
startAddEnergy
private int startAddEnergyThe value of the energy added to the character when it uses this skill. -
hitAddEnergy
private int hitAddEnergyThe value of the energy added to the character when this skill hits the opponent. -
guardAddEnergy
private int guardAddEnergyThe value of the energy added to the character when this skill is blocked by the opponent. -
giveEnergy
private int giveEnergyThe value of the energy added to the opponent when it is hit by this skill. -
impactX
private int impactXThe change in the horizontal speed of the opponent when it is hit by this skill. -
impactY
private int impactYThe change in the vertical speed of the opponent when it is hit by this skill. -
giveGuardRecov
private int giveGuardRecovThe number of frames that the guarded opponent needs to resume to his normal status after being hit by this skill. -
attackType
private int attackTypeThe value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw. -
downProp
private boolean downPropThe flag whether this skill can push down the opponent when hit.
trueif this skill can push down,falseotherwise. -
isProjectile
private boolean isProjectileThe flag whether this skill is projectile or not.
trueif this skill is projectile,falseotherwise.
-
-
Method Details
-
isPlayerNumber
public boolean isPlayerNumber()Returns the player side's flag.- Returns:
trueif the player is P1, orfalseif P2
-
isDownProp
public boolean isDownProp()Returns the flag whether this skill can push down the opponent when hit.- Returns:
trueif this skill can push down,falseotherwise.
-
isProjectile
public boolean isProjectile()Returns the flag whether this skill is projectile or not.- Returns:
trueif this skill is projectile,falseotherwise
-
getCurrentFrame
public int getCurrentFrame()Returns the number of frames since this attack was used.- Returns:
- the number of frames since this attack was used
-
getPlayerNumber
public int getPlayerNumber()Returns the integer number indicating the player of the attack.- Returns:
0if the player is P1, or1if P2
-
getSpeedX
public int getSpeedX()Returns the horizontal speed of the attack hit box (minus when moving left and plus when moving right).- Returns:
- the horizontal speed of the attack hit box (minus when moving left and plus when moving right)
-
getSpeedY
public int getSpeedY()Returns the vertical speed of the attack hit box (minus when moving up and plus when moving down).- Returns:
- the vertical speed of the attack hit box (minus when moving up and plus when moving down)
-
getStartUp
public int getStartUp()Returns the number of frames in Startup.- Returns:
- the number of frames in Startup
-
getActive
public int getActive()Returns the number of frames in Active.- Returns:
- the number of frames in Active
-
getHitDamage
public int getHitDamage()Returns the damage value to the unguarded opponent hit by this skill.- Returns:
- the damage value to the unguarded opponent hit by this skill
-
getGuardDamage
public int getGuardDamage()Returns the damage value to the guarded opponent hit by this skill.- Returns:
- the damage value to the guarded opponent hit by this skill
-
getStartAddEnergy
public int getStartAddEnergy()Returns the value of the energy added to the character when it uses this skill.- Returns:
- the value of the energy added to the character when it uses this skill
-
getHitAddEnergy
public int getHitAddEnergy()Returns the value of the energy added to the character when this skill hits the opponent.- Returns:
- the value of the energy added to the character when this skill hits the opponent
-
getGuardAddEnergy
public int getGuardAddEnergy()Returns the value of the energy added to the character when this skill is blocked by the opponent.- Returns:
- the value of the energy added to the character when this skill is blocked by the opponent
-
getGiveEnergy
public int getGiveEnergy()Returns the value of the energy added to the opponent when it is hit by this skill.- Returns:
- the value of the energy added to the opponent when it is hit by this skill
-
getImpactX
public int getImpactX()Returns the change in the horizontal speed of the opponent when it is hit by this skill.- Returns:
- the change in the horizontal speed of the opponent when it is hit by this skill
-
getImpactY
public int getImpactY()Returns the change in the vertical speed of the opponent when it is hit by this skill.- Returns:
- the change in the vertical speed of the opponent when it is hit by this skill
-
getGiveGuardRecov
public int getGiveGuardRecov()Returns the number of frames that the guarded opponent needs to resume to its normal status after being hit by this skill.- Returns:
- the number of frames that the guarded opponent needs to resume to its normal status after being hit by this skill
-
getAttackType
public int getAttackType()Returns the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.- Returns:
- the value of the attack type
-
getCurrentHitArea
Returns HitArea's information of this attack hit box in the current frame.- Returns:
- HitArea's information of this attack hit box in the current frame
- See Also:
-
getSettingSpeedX
public 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).- Returns:
- the absolute value of the horizontal speed of the attack hit box (zero means the attack hit box will track the character)
-
getSettingSpeedY
public 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).- Returns:
- the absolute value of the vertical speed of the attack hit box (zero means the attack hit box will track the character)
-
getSettingHitArea
Returns HitArea's setting information.- Returns:
- HitArea's setting information
-
setSettingHitArea
Sets HitArea's setting information.- Parameters:
settingHitArea- HitArea's setting information
-
setSettingSpeedX
public 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).- Parameters:
settingSpeedX- the absolute value of the horizontal speed of the attack hit box (zero means the attack hit box will track the character)
-
setSettingSpeedY
public 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).- Parameters:
settingSpeedY- the absolute value of the vertical speed of the attack hit box (zero means the attack hit box will track the character)
-
setCurrentFrame
public void setCurrentFrame(int nowFrame) Sets the number of frames since this attack was used.- Parameters:
nowFrame- the number of frames since this attack was used
-
setPlayerNumber
public void setPlayerNumber(boolean playerNumber) Sets the player side's flag.- Parameters:
playerNumber- the player side's flag.trueif the player is P1, orfalseif P2.
-
setSpeedX
public void setSpeedX(int speedX) Sets the horizontal speed of the attack hit box (minus when moving left and plus when moving right).- Parameters:
speedX- the horizontal speed of the attack hit box (minus when moving left and plus when moving right)
-
setSpeedY
public void setSpeedY(int speedY) Sets the vertical speed of the attack hit box (minus when moving up and plus when moving down).- Parameters:
speedY- the vertical speed of the attack hit box (minus when moving up and plus when moving down)
-
setStartUp
public void setStartUp(int startUp) Sets the number of frames in Startup.- Parameters:
startUp- the number of frames in Startup
-
setActive
public void setActive(int active) Sets the number of frames in Active.- Parameters:
active- the number of frames in Active
-
setHitDamage
public void setHitDamage(int hitDamage) Sets the damage value to the unguarded opponent hit by this skill.- Parameters:
hitDamage- the damage value to the unguarded opponent hit by this skill
-
setGuardDamage
public void setGuardDamage(int guardDamage) Sets the damage value to the guarded opponent hit by this skill.- Parameters:
guardDamage- the damage value to the guarded opponent hit by this skill
-
setStartAddEnergy
public void setStartAddEnergy(int startAddEnergy) Sets the value of energy added to the character when it uses this skill.- Parameters:
startAddEnergy- the value of the energy added to the character when it uses this skill
-
setHitAddEnergy
public void setHitAddEnergy(int hitAddEnergy) Sets the value of the energy added to the character when this skill hits the opponent.- Parameters:
hitAddEnergy- the value of the energy added to the character when this skill hits the opponent
-
setGuardAddEnergy
public void setGuardAddEnergy(int guardAddEnergy) Sets the value of the energy added to the character when this skill is blocked by the opponent.- Parameters:
guardAddEnergy- the value of the energy added to the character when this skill is blocked by the opponent
-
setGiveEnergy
public void setGiveEnergy(int giveEnergy) Sets the value of the energy added to the opponent when it is hit by this skill.- Parameters:
giveEnergy- the value of the energy added to the opponent when it is hit by this skill
-
setImpactX
public void setImpactX(int impactX) Sets the change in the horizontal speed of the opponent when it is hit by this skill.- Parameters:
impactX- the change in the horizontal speed of the opponent when it is hit by this skill
-
setImpactY
public void setImpactY(int impactY) Sets the change in the vertical speed of the opponent when it is hit by this skill.- Parameters:
impactY- the change in the vertical speed of the opponent when it is hit by this skill
-
setGiveGuardRecov
public 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.- Parameters:
giveGuardRecov- the number of frames that the guarded opponent needs to resume to his normal status after being hit by this skill
-
setAttackType
public void setAttackType(int attackType) Sets the value of the attack type: 1 = high, 2 = middle, 3 = low, 4 = throw.- Parameters:
attackType- the value of the attack type
-
setDownProp
public void setDownProp(boolean downProp) Sets the flag whether this skill can push down the opponent when hit.- Parameters:
downProp- the flag whether this skill can push down the opponent when hit.trueif this skill can push down,falseotherwise.
-
setIsProjectile
public void setIsProjectile(boolean isProjectile) Sets the boolean value whether this skill is projectile or not.- Parameters:
isProjectile- the flag whether this skill is projectile or not.trueif this skill is projectile,falseotherwise.
-