예제 #1
0
 public Minion(MinionType type, Point p, bool isEnemy)
     : base(type, p, isEnemy)
 {
     this.minionId = new MinionId();
     this.mtype = type;
     this.permanentStats = type.stats;
     this.stats = this.permanentStats;
     this.slow_movedHalfWay = false;
 }
예제 #2
0
 public Minion(Minion basis)
     : base(basis)
 {
     this.minionId = basis.minionId;
     this.mtype = basis.mtype;
     this.permanentStats = basis.permanentStats;
     this.stats = basis.stats;
     this.slow_movedHalfWay = basis.slow_movedHalfWay;
 }
예제 #3
0
 public void Transform(MinionType newtype, bool isEnemy)
 {
     mtype = newtype;
     type = newtype;
     int damage = stats.maxHealth - stats.health;
     this.permanentStats = mtype.stats;
     this.permanentStats.health = this.permanentStats.maxHealth - damage;
     this.isEnemy = isEnemy;
 }
예제 #4
0
 public override void ResetTemporaryEffects()
 {
     stats = permanentStats;
 }