/// <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(); }
public Player(string name, string type, int initialHitPoints, double baseDamage, ITacticsInfo tactics) { Info = new PlayerInfo(name, type, initialHitPoints, baseDamage); _tactics = tactics; Reset(); }