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 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); }
public MyAgentBot(MyPlayer player, MyBotDefinition botDefinition) { this.m_player = player; this.m_navigation = new MyBotNavigation(); this.m_actionCollection = null; this.m_botMemory = new MyBotMemory(this); this.m_botDefinition = botDefinition as MyAgentDefinition; this.m_removeAfterDeath = this.m_botDefinition.RemoveAfterDeath; this.m_respawnRequestSent = false; this.m_botRemoved = false; this.m_player.Controller.ControlledEntityChanged += new Action <IMyControllableEntity, IMyControllableEntity>(this.Controller_ControlledEntityChanged); this.m_navigation.ChangeEntity(this.m_player.Controller.ControlledEntity); MyCestmirDebugInputComponent.PlacedAction += new Action <Vector3D, MyEntity>(this.DebugGoto); }
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_removeAfterDeath = m_botDefinition.RemoveAfterDeath; m_respawnRequestSent = false; m_botRemoved = false; m_player.Controller.ControlledEntityChanged += Controller_ControlledEntityChanged; m_navigation.ChangeEntity(m_player.Controller.ControlledEntity); Sandbox.Game.Gui.MyCestmirDebugInputComponent.PlacedAction += DebugGoto; }
public MyBotAiming(MyBotNavigation parent) { m_parent = parent; m_followMovement = true; m_rotationHint = Vector3.Zero; }
public MyBotAiming(MyBotNavigation parent) { m_parent = parent; m_mode = AimingMode.FOLLOW_MOVEMENT; m_rotationHint = Vector3.Zero; }
public MyCollisionDetectionSteering(MyBotNavigation parent) : base(parent, 1.0f) { }
public MySteeringBase(MyBotNavigation parent, float weight) { Weight = weight; Parent = parent; }
public MyPathSteering(MyBotNavigation navigation) : base(navigation) { }
public MyTargetSteering(MyBotNavigation navigation) : base(navigation, 1.0f) { m_target = null; }