Initial import
This commit is contained in:
parent
71fb5e578f
commit
3cb9eb5031
69 changed files with 4197 additions and 0 deletions
26
Assets/Battle/BattleParticipant.cs
Normal file
26
Assets/Battle/BattleParticipant.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class BattleParticipant
|
||||
{
|
||||
protected string displayName;
|
||||
protected int hp;
|
||||
protected int maxHP;
|
||||
|
||||
public string getDisplayName() {
|
||||
return this.displayName;
|
||||
}
|
||||
|
||||
public int getHP() {
|
||||
return this.hp;
|
||||
}
|
||||
|
||||
public int geMaxHP() {
|
||||
return this.maxHP;
|
||||
}
|
||||
|
||||
public void init() {
|
||||
this.hp = this.maxHP;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue