Exemple #1
0
 /// <summary>
 /// Effectively move a Unit to destination (ordered by IGame)
 /// </summary>
 /// <param name="destination"></param>
 public virtual void RealMove(ITile destination)
 {
     this.Position.UnitLeave(this);
     this.Position = destination;
     destination.UnitEnter(this);
 }
Exemple #2
0
 public Unit(string name, ITile position)
 {
     this.Atk = 2;
     this.Def = 1;
     this.HpMax = 2;
     this.Hp = this.HpMax;
     this.Mvt = 1;
     this.Name = name;
     this.State = UnitState.Idle;
     this.Position = position;
     position.UnitEnter(this);
 }