Example #1
0
 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;
 }
Example #2
0
 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();
 }
Example #3
0
 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();
 }
Example #4
0
 public Message(GameControl.RoundAction action, DateTime time, string name)
 {
     this.time = time;
     Action = action;
     this.name = name;
 }
Example #5
0
 public Message(GameControl.RoundAction action, DateTime time)
 {
     this.time = time;
     Action = action;
 }