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; }
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(); }
public GameBase(RichTextBoxScroll textBox) { this._chatlog = new Chatlog(textBox); this._player = new Player(); this._battleSimulator = new BattleSimulator(this); }