Add CrashingPunch and making it work
This commit is contained in:
parent
1c3056778e
commit
d7c19e2572
15 changed files with 204 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue