protected override void OnVictory(Combatant enemy) { Move(enemy.tile); moves = 0; }
protected override void OnDefeat(Combatant enemy) { Destroy(); }
protected override int CalculateStrength(Combatant enemy) { return(efficiency / 50); }
protected override int CalculateStrength(Combatant enemy) { return(1); }
protected virtual void OnDefeat(Combatant enemy) { }
protected virtual void OnVictory(Combatant enemy) { }
protected virtual int CalculateStrength(Combatant enemy) { return(1); }
/// <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); }
/// <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); }