Esempio n. 1
0
        public override void Run()
        {
            Stragegy = new Solo(this);
            Stragegy.Init();

            while (true)
            {
                Stragegy.Run();
            }
        }
Esempio n. 2
0
        public override void OnRobotDeath(RobotDeathEvent evnt)
        {
            base.OnRobotDeath(evnt);
            var _enemyCount = EnemyCount();
            var _teamCount  = TeamCount();
            var _turn       = 2;

            if (((_enemyCount <= _turn && _teamCount <= _enemyCount) || (_teamCount <= _enemyCount && _teamCount <= _turn)) && !(Stragegy is Solo))
            {
                // Big boss come last
                Stragegy = new Solo(this);
                Stragegy.Init();
            }
        }
Esempio n. 3
0
        public override void OnRobotDeath(RobotDeathEvent evnt)
        {
            base.OnRobotDeath(evnt);

            // TL go first
            var _enemyCount = EnemyCount();
            var _teamCount  = TeamCount();
            var _turn       = 4;

            if (((_enemyCount <= _turn && _teamCount <= _enemyCount) || (_teamCount <= _enemyCount && _teamCount <= _turn)) && !(Stragegy is Solo))
            {
                Stragegy = new Solo(this);
                Stragegy.Init();
            }
        }