Exemple #1
0
 public BattleSimulator(GameBase game)
 {
     this._game                 = game;
     this._chatlog              = game.Chatlog;
     this._player               = game.Player;
     this._player.LevelChanged += _player_LevelChanged;
     this._battleTimer          = new Timer();
     this._battleTimer.Tick    += _battleTimer_Tick;
 }
Exemple #2
0
 public SkillsControl(GameBase game) : this()
 {
     this._game                 = game;
     this._player               = game.Player;
     this._chatlog              = game.Chatlog;
     this._player.LevelChanged += _player_LevelChanged;
     this._player.GaugeChanged += _player_GaugeChanged;
     this._skillButtons         = new Dictionary <Skill, ButtonSkill>();
     //Initial update once control is initialized.
     this.UpdateDisplayableSkills();
 }
Exemple #3
0
 public GameBase(RichTextBoxScroll textBox)
 {
     this._chatlog         = new Chatlog(textBox);
     this._player          = new Player();
     this._battleSimulator = new BattleSimulator(this);
 }