public GameControl(AbstractPlayer player1, AbstractPlayer player2) { if (player2 == null) { this.player1 = new Player(player1.Level, player1.Name, player1.Straight, player1.Agility, player1.Stamina, player1.Exp); this.player2 = new NPC(player1.Straight + player1.Agility + player1.Stamina); // special Bot } else { this.player1 = new Player(player1.Level, player1.Name, player1.Straight, player1.Agility, player1.Stamina, player1.Exp); this.player2 = new Player(player2.Level, player2.Name, player2.Straight, player2.Agility, player2.Stamina, player2.Exp); } }
public CombatScenePresenter(CombatUserControl view, AbstractPlayer player1, AbstractPlayer player2) { game = new GameControl(player1, player2); this.view = view; if (game.player2 is NPC) { gameType = GameType.PvE; } else { gameType = GameType.PvP; } DrawPlayersInfo(); }