Add CrashingPunch and making it work

This commit is contained in:
henriquenakashima 2020-09-18 23:33:57 -04:00
parent 1c3056778e
commit d7c19e2572
15 changed files with 204 additions and 27 deletions

View file

@ -8,23 +8,23 @@ public class BattleParticipant
protected int hp;
protected int maxHP;
public void init() {
public void Init() {
this.hp = this.maxHP;
}
public string getDisplayName() {
public string GetDisplayName() {
return this.displayName;
}
public int getHP() {
public int GetHP() {
return this.hp;
}
public int getMaxHP() {
public int GetMaxHP() {
return this.maxHP;
}
public void dealDamage(int damage) {
public void DealDamage(int damage) {
this.hp -= damage;
if (this.hp < 0) this.hp = 0;
}