Ejemplo n.º 1
0
        /// <summary>
        /// Reset entire game
        /// </summary>
        public void Reset()
        {
            _playerA = GameConfiguration.Instance.Factory.CreatePlayerA();
            _playerB = GameConfiguration.Instance.Factory.CreatePlayerB();

            _playerA.CurrentTactics = _tacticsData.GeTacticsInfo(TacticsType.Offensive);
            _playerB.CurrentTactics = _tacticsData.GeTacticsInfo(TacticsType.Offensive);

            _tacticsLockedA = false;
            _tacticsLockedB = false;
            _turn           = true;

            BattleLog.Instance.Reset();

            OnBattleModelChanged();
        }
Ejemplo n.º 2
0
        private IPlayer GeneratePlayer()
        {
            string name = GeneratePlayerName();
            string type = GeneratePlayerType();
            int    hp   = GenerateHitPoints();
            int    bd   = GenerateBaseDamage(hp);

            return(new Player(name, type, hp, bd, _tacticsData.GeTacticsInfo(TacticsType.Offensive)));
        }