Beispiel #1
0
 protected override void OnVictory(Combatant enemy)
 {
     Move(enemy.tile);
     moves = 0;
 }
Beispiel #2
0
 protected override void OnDefeat(Combatant enemy)
 {
     Destroy();
 }
Beispiel #3
0
 protected override int CalculateStrength(Combatant enemy)
 {
     return(efficiency / 50);
 }
Beispiel #4
0
 protected override int CalculateStrength(Combatant enemy)
 {
     return(1);
 }
Beispiel #5
0
 protected virtual void OnDefeat(Combatant enemy)
 {
 }
Beispiel #6
0
 protected virtual void OnVictory(Combatant enemy)
 {
 }
Beispiel #7
0
 protected virtual int CalculateStrength(Combatant enemy)
 {
     return(1);
 }
Beispiel #8
0
 /// <summary>
 /// The given unit no longer sees this tile.
 /// </summary>
 /// <param name="unit"></param>
 public void RemoveObserver(Combatant observer)
 {
     seenBy.Remove(observer);
     UpdateState(observer.owner);
 }
Beispiel #9
0
 /// <summary>
 /// Add a unit who can see this tile.
 /// </summary>
 /// <param name="unit"></param>
 public void AddObserver(Combatant observer)
 {
     seenBy.Add(observer);
     UpdateState(observer.owner);
 }