コード例 #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;
 }
コード例 #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();
 }
コード例 #3
0
ファイル: GameBase.cs プロジェクト: JordanP1/Game
 public GameBase(RichTextBoxScroll textBox)
 {
     this._chatlog         = new Chatlog(textBox);
     this._player          = new Player();
     this._battleSimulator = new BattleSimulator(this);
 }