public MySandboxBot(MyPlayer botPlayer, MyBotDefinition botDefinition)
        {
            m_definition = botDefinition as MyAgentDefinition;

            m_player = botPlayer;
            m_navigation = new MyBotNavigation();
            m_respawnRequestSent = false;
            m_actionCollection = null;
            m_botMemory = new MyBotMemory(this);

            m_player.Controller.ControlledEntityChanged += Controller_ControlledEntityChanged;

            m_navigation.ChangeEntity(m_player.Controller.ControlledEntity);
        }
示例#2
0
        public MyAgentBot(MyPlayer player, MyBotDefinition botDefinition)
        {
            m_player = player;
            m_navigation = new MyBotNavigation(); 
            m_actionCollection = null;
            m_botMemory = new MyBotMemory(this);
            m_botDefinition = botDefinition as MyAgentDefinition;

            m_player.Controller.ControlledEntityChanged += Controller_ControlledEntityChanged;
            m_navigation.ChangeEntity(m_player.Controller.ControlledEntity);
        }
 public MyCollisionDetectionSteering(MyBotNavigation parent)
     : base(parent, 1.0f)
 { }
示例#4
0
 public MyTargetSteering(MyBotNavigation navigation)
     : base(navigation, 1.0f)
 {
     m_target = null;
 }
示例#5
0
 public MySteeringBase(MyBotNavigation parent, float weight)
 {
     Weight = weight;
     Parent = parent;
 }
示例#6
0
 public MyBotAiming(MyBotNavigation parent)
 {
     m_parent = parent;
     m_followMovement = true;
     m_rotationHint = Vector3.Zero;
 }
示例#7
0
 public MyPathSteering(MyBotNavigation navigation)
     : base(navigation)
 { }