Exemplo n.º 1
0
 /// <summary>
 /// Change the tactics setting for the player defined by the
 /// player ID, if the player has not changed tactics before.
 /// </summary>
 public void SetPlayerTactics(PlayerID id, ITacticsInfo tactics)
 {
     if (id == PlayerID.A && !_tacticsLockedA)
     {
         _playerA.CurrentTactics = tactics;
         _tacticsLockedA         = true;
     }
     if (id == PlayerID.B && !_tacticsLockedB)
     {
         _playerB.CurrentTactics = tactics;
         _tacticsLockedB         = true;
     }
     OnBattleModelChanged();
 }
Exemplo n.º 2
0
 public Player(string name, string type, int initialHitPoints, double baseDamage, ITacticsInfo tactics)
 {
     Info     = new PlayerInfo(name, type, initialHitPoints, baseDamage);
     _tactics = tactics;
     Reset();
 }