static PrimaryPlayer() { _instance = new PrimaryPlayer() { Name = "Raptor", Level = 1 }; }
public async Task Play(PrimaryPlayer player, int level) { _player = player; await AddPlayerCards(); AddDecoratedCard(); ConfigurePlayerWeapon(); LoadZombies(level); LoadWerewolves(level); LoadGiants(level); PlayGame(); }
public async Task Play(PrimaryPlayer player, int areaLevel) { _player = player; _areaLevel = areaLevel; ConfigurePlayerWeapon(); await AddPlayerCards(); InitializeEnemyFactory(areaLevel); LoadZombies(areaLevel); LoadWerewolves(areaLevel); LoadGiants(areaLevel); StartTurns(); }
public void WatchPlayerHealth(PrimaryPlayer player) { player.RegisterObserver(Handler); }
public PlayerEnemyBattleCommand(PrimaryPlayer player, IEnemy enemy) { _player = player; _enemy = enemy; }
public void Defend(PrimaryPlayer player) { Console.WriteLine($"Giant defending {player.Name}"); }
public void Attack(PrimaryPlayer player) { player.Health -= 20; Console.WriteLine($"Giant attacking {player.Name}"); }
public GameBoard() { _player = PrimaryPlayer.Instance; _gameBoardFacade = new GameBoardFacade(); }
public void Attack(PrimaryPlayer player) { player.Health -= 10; Console.WriteLine($"Zombie attacking {player.Name}"); }
public GameBoard() { _player = PrimaryPlayer.Instance; _player.Weapon = new Sword(12, 5); }
public void Attack(PrimaryPlayer player) { player.Health -= 15; Console.WriteLine($"Werewolf attacking {player.Name}"); }