Class SingleInstanceMoveResult
java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.log.SingleInstanceMoveResult
The result of a single hit of damage or single instance of a move against one target.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleThe effective accuracy of the move.protected AttackResultThe result of the move.protected intThe damage dealt by the move.protected intIf the attack is a multi-strike attack, this tracks which hit of the move this is.protected booleanWhether the attack made contact.protected intThe damage calculated for the move, regardless of how much hp the target had.protected intThe power of each hit of a move.protected PixelmonWrapperThe target of the move. -
Constructor Summary
ConstructorsConstructorDescriptionSingleInstanceMoveResult(PixelmonWrapper target, int power, int accuracy) SingleInstanceMoveResult(PixelmonWrapper target, int power, int accuracy, int hitNumber) -
Method Summary
Modifier and TypeMethodDescriptiondoubleintintbooleanintintgetPower()voidsetAccuracy(double accuracy) voidsetAttackResult(AttackResult attackResult) voidsetDamage(int damage) voidsetHitNumber(int hitNumber) voidsetMadeContact(boolean contact) voidsetPotentialDamage(int potentialDamage) voidsetPower(int power) voidsetTarget(PixelmonWrapper target) toString()
-
Field Details
-
target
The target of the move. -
power
protected int powerThe power of each hit of a move. Defaults to -1. -
accuracy
protected double accuracyThe effective accuracy of the move. Defaults to -3, due to -2 and -1 representing values that will hit. -
hitNumber
protected int hitNumberIf the attack is a multi-strike attack, this tracks which hit of the move this is. Defaults to 1. -
damage
protected int damageThe damage dealt by the move. Defaults to 0. -
potentialDamage
protected int potentialDamageThe damage calculated for the move, regardless of how much hp the target had. Defaults to 0. -
madeContact
protected boolean madeContactWhether the attack made contact. -
attackResult
The result of the move. Defaults to AttackResult.proceed.
-
-
Constructor Details
-
SingleInstanceMoveResult
-
SingleInstanceMoveResult
-
SingleInstanceMoveResult
-
-
Method Details
-
toString
-
getTarget
-
setTarget
-
getAccuracy
public double getAccuracy() -
setAccuracy
public void setAccuracy(double accuracy) -
getPower
public int getPower() -
setPower
public void setPower(int power) -
getHitNumber
public int getHitNumber() -
setHitNumber
public void setHitNumber(int hitNumber) -
getDamage
public int getDamage() -
setDamage
public void setDamage(int damage) -
getPotentialDamage
public int getPotentialDamage() -
setPotentialDamage
public void setPotentialDamage(int potentialDamage) -
getMadeContact
public boolean getMadeContact() -
setMadeContact
public void setMadeContact(boolean contact) -
getAttackResult
-
setAttackResult
-