public Message(GameControl.RoundAction action, DateTime time, string attacker, string defender, int damage) { this.time = time; this.action = action; this.attacker = attacker; this.defender = defender; this.damage = damage; }
public BattlePresenter(BattleUserControl view) { View = view; Battle = new GameControl(ProgramData.PlayerName); View.BattleFirstPlayerName = Battle.Human.Name; View.BattleFirstPlayerHpMax = Battle.Human.MaxHp; View.BattleSecondPlayerName = Battle.Npc.Name; View.BattleSecondPlayerHpMax = Battle.Npc.MaxHp; RefreshHealthProgressBars(); View.CreateRadioButtons(); }
public void StartNewGame(string name) { app.groupStartPage.Visible = false; this.game = new GameControl(name); app.labelPlayerName1.Text = game.Human.Name; app.labelPlayerName2.Text = game.Npc.Name; app.linePlayerHP1.Maximum = game.Human.Hp; app.linePlayerHP2.Maximum = game.Npc.Hp; app.buttonNewGame.Visible = false; app.groupBattlePage.Visible = true; RefreshHealthProgressBars(); CreateRadioButtons(); }
public Message(GameControl.RoundAction action, DateTime time, string name) { this.time = time; Action = action; this.name = name; }
public Message(GameControl.RoundAction action, DateTime time) { this.time = time; Action = action; }