public override void Run() { Stragegy = new Solo(this); Stragegy.Init(); while (true) { Stragegy.Run(); } }
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(); } }
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(); } }