public Marcle15()
 {
     Enemy         = new EnemyData();
     SteerMachine  = new FSM_Drive(this);
     TurretMachine = new FSM_Turret(this);
     FuzzyLogic.Init(this);
 }
示例#2
0
        public override State Execute()
        {
            if (!_Robot.HasEnemy())
            {
                Console.WriteLine("RAM to IDLE triggered");
                return(new State_Drive_Idle(_Robot));
            }

            if (FuzzyLogic.PlayerIsHealthy())
            {
                return(new State_Drive_Chase(_Robot));
            }

            Ram();

            return(new State_Drive_Ram(_Robot));
        }