Space Engineers
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Sandbox.Game.Entities.MyCockpit Class Reference
Inheritance diagram for Sandbox.Game.Entities.MyCockpit:
Sandbox.Game.Entities.MyShipController VRage.Game.ModAPI.Interfaces.IMyCameraController Sandbox.Game.Entities.UseObject.IMyUsableEntity Sandbox.ModAPI.IMyCockpit Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpointBlock Sandbox.Game.GameSystems.IMyGasBlock Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpointBlock VRage.Game.ModAPI.Interfaces.IMyCameraController Sandbox.ModAPI.Ingame.IMyCockpit Sandbox.ModAPI.IMyShipController Sandbox.ModAPI.Ingame.IMyShipController Sandbox.Game.Entities.IMyControllableEntity Sandbox.Game.Entities.Blocks.MyCryoChamber

Public Member Functions

 MyCockpit ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 Returns block object builder which can be serialized or added to grid More...
 
void InitializeConveyorEndpoint ()
 
override MatrixD GetHeadMatrix (bool includeY, bool includeX=true, bool forceHeadAnim=false, bool forceHeadBone=false)
 
void Rotate (Vector2 rotationIndicator, float roll)
 Rotate camera controller. More...
 
void RotateStopped ()
 Rotation of camera controller stopped. More...
 
void OnAssumeControl (IMyCameraController previousCameraController)
 
override MatrixD GetViewMatrix ()
 
override void UpdateOnceBeforeFrame ()
 
override void UpdateBeforeSimulation ()
 
override void UpdateBeforeSimulation10 ()
 
override void UpdateBeforeSimulation100 ()
 
override void ShowInventory ()
 
override void ShowTerminal ()
 
override void OnRemovedFromScene (object source)
 
override void OnAddedToScene (object source)
 
void GiveControlToPilot ()
 
bool RemovePilot ()
 
void AttachAutopilot (MyAutopilotBase newAutopilot, bool updateSync=true)
 
void RemoveAutopilot ()
 
void RemoveOriginalPilotPosition ()
 
void OnReleaseControl (IMyCameraController newCameraController)
 
bool IsNeighbourPositionFree (Vector3I neighbourOffsetI, out Vector3D translation)
 
override void OnRegisteredToGridSystems ()
 Called at the end of registration from grid systems (after block has been registered). More...
 
override void OnUnregisteredFromGridSystems ()
 Called at the end of unregistration from grid systems (after block has been unregistered). More...
 
void AttachPilot (MyCharacter pilot, bool storeOriginalPilotWorld=true, bool calledFromInit=false, bool merged=false)
 
void AddShake (float shakePower)
 
override bool IsLargeShip ()
 
override string CalculateCurrentModel (out Matrix orientation)
 
virtual UseActionResult CanUse (UseActionEnum actionEnum, IMyControllableEntity user)
 Test use on server and based on results sends success or failure More...
 
override List< MyHudEntityParamsGetHudParams (bool allowBlink)
 
void RequestUse (UseActionEnum actionEnum, MyCharacter user)
 
void AttachPilotEvent (UseActionEnum actionEnum, long characterID)
 
void AttachPilotEventFailed (UseActionResult actionResult)
 
void ClearSavedpilot ()
 
Sandbox.Game.GameSystems.Conveyors.PullInformation GetPullInformation ()
 
Sandbox.Game.GameSystems.Conveyors.PullInformation GetPushInformation ()
 
- Public Member Functions inherited from Sandbox.Game.Entities.MyShipController
bool IsShooting ()
 
 MyShipController ()
 
override void Init (MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid)
 
override MyObjectBuilder_CubeBlock GetObjectBuilderCubeBlock (bool copy=false)
 
override MatrixD GetViewMatrix ()
 
void MoveAndRotate (Vector3 moveIndicator, Vector2 rotationIndicator, float rollIndicator)
 
void MoveAndRotate ()
 
void MoveAndRotateStopped ()
 
override void UpdatingStopped ()
 
void UpdateControls ()
 
override void UpdateAfterSimulation ()
 
override void UpdateOnceBeforeFrame ()
 
override void UpdateBeforeSimulation10 ()
 
override void UpdateBeforeSimulation100 ()
 
override void OnRemovedFromScene (object source)
 
override void OnAddedToScene (object source)
 
virtual void ForceReleaseControl ()
 
void Shoot (MyShootActionEnum action)
 
void Zoom (bool newKeyPress)
 
void Use ()
 
void PlayUseSound (bool getIn)
 
void RaiseControlledEntityUsed ()
 
void UseContinues ()
 
void UseFinished ()
 
void PickUp ()
 
void PickUpContinues ()
 
void PickUpFinished ()
 
void Crouch ()
 
void Jump ()
 
void SwitchWalk ()
 
void Sprint (bool enabled)
 
void Up ()
 
void Down ()
 
void SwitchBroadcasting ()
 
void SwitchDamping ()
 
virtual void SwitchThrusts ()
 
void Die ()
 
void SwitchLights ()
 
void SwitchHandbrake ()
 
void SwitchLeadingGears ()
 
void HudNotifications ()
 
void SwitchReactors ()
 
void DrawHud (IMyCameraController camera, long playerId)
 
bool CanSwitchToWeapon (MyDefinitionId?weapon)
 
void SwitchToWeapon (MyDefinitionId weapon)
 
void SwitchToWeapon (MyToolbarItemWeapon weapon)
 
override void OnRegisteredToGridSystems ()
 
override void OnUnregisteredFromGridSystems ()
 
void SetWeaponSystem (MyGridWeaponSystem weaponSystem)
 
override void UpdateVisual ()
 
void BeginShoot (MyShootActionEnum action)
 This will be called locally to start shooting with the given action More...
 
void EndShoot (MyShootActionEnum action)
 This will be called locally to start shooting with the given action More...
 
void OnBeginShoot (MyShootActionEnum action)
 This will be called back from the sync object both on local and remote clients More...
 
void OnEndShoot (MyShootActionEnum action)
 This will be called back from the sync object both on local and remote clients More...
 
void RemoveUsers (bool local)
 
MyEntityCameraSettings GetCameraEntitySettings ()
 
override void SetDamageEffect (bool show)
 
override void StopDamageEffect ()
 
void RequestUse (UseActionEnum actionEnum, IMyControllableEntity usedBy)
 
void BeginShootSync (MyShootActionEnum action=MyShootActionEnum.PrimaryAction)
 
void EndShootSync (MyShootActionEnum action=MyShootActionEnum.PrimaryAction)
 
MyGridNetState GetNetState ()
 
void SetNetState (MyGridNetState netState)
 
Vector3D GetNaturalGravity ()
 Gets the detected natural gravity vector and power at the current location. More...
 
Vector3D GetArtificialGravity ()
 Gets the detected artificial gravity vector and power at the current location. More...
 
Vector3D GetTotalGravity ()
 Gets the total accumulated gravity vector and power at the current location, taking both natural and artificial gravity into account. More...
 
MyShipMass CalculateShipMass ()
 Gets information about the current mass of the ship. More...
 
- Public Member Functions inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
bool HasLocalPlayerAccess ()
 
bool HasPlayerAccess (long playerId)
 
void SetCustomName (string text)
 
void SetCustomName (StringBuilder text)
 
void GetActions (List< Sandbox.ModAPI.Interfaces.ITerminalAction > resultList, Func< Sandbox.ModAPI.Interfaces.ITerminalAction, bool > collect=null)
 
void SearchActionsOfName (string name, List< Sandbox.ModAPI.Interfaces.ITerminalAction > resultList, Func< Sandbox.ModAPI.Interfaces.ITerminalAction, bool > collect=null)
 
Sandbox.ModAPI.Interfaces.ITerminalAction GetActionWithName (string name)
 
Sandbox.ModAPI.Interfaces.ITerminalProperty GetProperty (string id)
 
void GetProperties (List< Sandbox.ModAPI.Interfaces.ITerminalProperty > resultList, Func< Sandbox.ModAPI.Interfaces.ITerminalProperty, bool > collect=null)
 
bool HasLocalPlayerAccess ()
 
bool HasPlayerAccess (long playerId)
 
void RequestShowOnHUD (bool enable)
 
void SetCustomName (string text)
 
void SetCustomName (StringBuilder text)
 
void GetActions (List< Sandbox.ModAPI.Interfaces.ITerminalAction > resultList, Func< Sandbox.ModAPI.Interfaces.ITerminalAction, bool > collect=null)
 
- Public Member Functions inherited from Sandbox.ModAPI.Ingame.IMyCubeBlock
string GetOwnerFactionTag ()
 
Sandbox.Common.MyRelationsBetweenPlayerAndBlock GetPlayerRelationToOwner ()
 
Sandbox.Common.MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner (long playerId)
 
void UpdateIsWorking ()
 
- Public Member Functions inherited from Sandbox.Game.Entities.UseObject.IMyUsableEntity
void RemoveUsers (bool local)
 
- Public Member Functions inherited from Sandbox.ModAPI.IMyTerminalBlock
void RefreshCustomInfo ()
 Raises AppendingCustomInfo so every subscriber can append custom info. More...
 
- Public Member Functions inherited from VRage.Game.ModAPI.IMyCubeBlock
void CalcLocalMatrix (out VRageMath.Matrix localMatrix, out string currModel)
 
string CalculateCurrentModel (out VRageMath.Matrix orientation)
 Calculates model currently used by block depending on its build progress and other factors More...
 
bool DebugDraw ()
 Debug only method. Effects may wary through time. More...
 
string GetOwnerFactionTag ()
 
VRage.Game.MyRelationsBetweenPlayerAndBlock GetPlayerRelationToOwner ()
 
VRage.Game.MyRelationsBetweenPlayerAndBlock GetUserRelationToOwner (long playerId)
 
void Init ()
 Reloads block model and interactive objects (doors, terminals, etc...) More...
 
void Init (MyObjectBuilder_CubeBlock builder, IMyCubeGrid cubeGrid)
 Initializes block state from object builder More...
 
void OnBuildSuccess (long builtBy)
 Method called when a block has been built (after adding to the grid). This is called right after placing the block and it doesn't matter whether it is fully built (creative mode) or is only construction site. Note that it is not called for blocks which do not create FatBlock at that moment. More...
 
void OnDestroy ()
 Called when block is destroyed before being removed from grid More...
 
void OnModelChange ()
 Called when the model referred by the block is changed More...
 
void OnRemovedByCubeBuilder ()
 Method called when user removes a cube block from grid. Useful when block has to remove some other attached block (like motors). More...
 
string RaycastDetectors (VRageMath.Vector3 worldFrom, VRageMath.Vector3 worldTo)
 Gets the name of interactive object intersected by defined line More...
 
void ReloadDetectors (bool refreshNetworks=true)
 Reloads detectors (interactive objects) in model More...
 
void UpdateIsWorking ()
 Force refresh working state. Call if you change block state that could affect its working status. More...
 
void UpdateVisual ()
 Updates block visuals (ie. block emissivity) More...
 
void SetDamageEffect (bool start)
 Start or stop dammage effect on cube block More...
 
void AddUpgradeValue (string upgrade, float defaultValue)
 Preferred way of registering a block for upgrades Adding directly to the dictionary can have unintended consequences when multiple mods are involved. More...
 
- Public Member Functions inherited from VRage.Game.ModAPI.Ingame.IMyEntity
VRageMath.Vector3D GetPosition ()
 
- Public Member Functions inherited from VRage.ModAPI.IMyEntity
string GetFriendlyName ()
 
void Close ()
 
void Delete ()
 
MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 
void BeforeSave ()
 
IMyEntity GetTopMostParent (Type type=null)
 
void SetLocalMatrix (VRageMath.Matrix localMatrix, object source=null)
 
void GetChildren (List< IMyEntity > children, Func< IMyEntity, bool > collect=null)
 
MyEntitySubpart GetSubpart (string name)
 
bool TryGetSubpart (string name, out MyEntitySubpart subpart)
 
VRageMath.Vector3 GetDiffuseColor ()
 
bool IsVisible ()
 
void DebugDrawInvalidTriangles ()
 
void EnableColorMaskForSubparts (bool enable)
 
void SetColorMaskForSubparts (VRageMath.Vector3 colorMaskHsv)
 
void SetEmissiveParts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on entity. More...
 
void SetEmissivePartsForSubparts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on all entity subparts. More...
 
float GetDistanceBetweenCameraAndBoundingSphere ()
 
float GetDistanceBetweenCameraAndPosition ()
 
float GetLargestDistanceBetweenCameraAndBoundingSphere ()
 
float GetSmallestDistanceBetweenCameraAndBoundingSphere ()
 
MatrixD GetWorldMatrixNormalizedInv ()
 
void SetWorldMatrix (VRageMath.MatrixD worldMatrix, object source=null)
 
void SetPosition (VRageMath.Vector3D pos)
 
bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?tri, IntersectionFlags flags)
 
Vector3 GetIntersectionWithLineAndBoundingSphere (ref LineD line, float boundingSphereRadiusMultiplier)
 
bool GetIntersectionWithSphere (ref BoundingSphereD sphere)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, System.Collections.Generic.List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 
bool DoOverlapSphereTest (float sphereRadius, Vector3D spherePos)
 
void AddToGamePruningStructure ()
 
void RemoveFromGamePruningStructure ()
 
void UpdateGamePruningStructure ()
 

Public Attributes

float GlassDirt = 1.0f
 
- Public Attributes inherited from Sandbox.Game.Entities.MyShipController
MyGridGyroSystem GridGyroSystem
 
MyGridSelectionSystem GridSelectionSystem
 
MyGridReflectorLightSystem GridReflectorLights
 
bool BuildingMode = false
 
bool hasPower = false
 

Protected Member Functions

virtual void PostBaseInit ()
 
override void ComponentStack_IsFunctionalChanged ()
 
override void OnControlReleased (MyEntityController controller)
 
virtual void RemovePilotFromSeat (MyCharacter pilot)
 
override void UpdateCameraAfterChange (bool resetHeadLocalAngle=true)
 
virtual void UpdateCockpitModel ()
 
Vector3D FindFreeNeighbourPosition ()
 
virtual void PlacePilotInSeat (MyCharacter pilot)
 
override void UpdateSoundState ()
 
override void StartLoopSound ()
 
override void StopLoopSound ()
 
override bool IsCameraController ()
 
override void OnControlAcquired_UpdateCamera ()
 
override void OnControlledEntity_Used ()
 
override void OnControlReleased_UpdateCamera ()
 
override void RemoveLocal ()
 
override void OnOwnershipChanged ()
 
override bool ShouldSit ()
 
override bool CanBeMainCockpit ()
 
- Protected Member Functions inherited from Sandbox.Game.Entities.MyShipController
bool IsShooting (MyShootActionEnum action)
 
override void CreateTerminalControls ()
 
void ClearMovementControl ()
 
virtual void UpdateShipInfo10 (bool controlAcquired=false)
 
void OnControlAcquired (MyEntityController controller)
 
virtual void sync_UseSuccess (UseActionEnum actionEnum, IMyControllableEntity user)
 
void sync_ControlledEntity_Used ()
 
void EndShootAll ()
 
override void Closing ()
 
virtual bool CanHaveHorizon ()
 
bool IsMainCockpitFree ()
 

Protected Attributes

MyCharacter m_pilot = null
 
readonly Sync< Matrix?> m_pilotRelativeWorld
 
MyDefinitionId m_pilotGunDefinition = null
 
Action< MyEntitym_pilotClosedHandler
 
- Protected Attributes inherited from Sandbox.Game.Entities.MyShipController
MyRechargeSocket m_rechargeSocket
 
bool m_enableFirstPerson = false
 
bool m_enableShipControl = true
 
bool m_enableBuilderCockpit = false
 
MyEntity3DSoundEmitter m_soundEmitter
 
MySoundPair m_baseIdleSound
 
MySoundPair GetOutOfCockpitSound = MySoundPair.Empty
 
MySoundPair GetInCockpitSound = MySoundPair.Empty
 
MyCharacter m_lastPilot = null
 
bool m_singleWeaponMode
 
Vector3 m_headLocalPosition
 

Properties

MyAutopilotBase AiPilot [get]
 
bool PilotJetpackEnabledBackup [get]
 
virtual bool IsInFirstPersonView [get, set]
 
override bool ForceFirstPersonCamera [get, set]
 
IMyConveyorEndpoint ConveyorEndpoint [get]
 
float OxygenFillLevel [get]
 
float OxygenAmount [get, set]
 
float OxygenAmountMissing [get]
 
override float HeadLocalXAngle [get, set]
 
override float HeadLocalYAngle [get, set]
 
Vector3I[] NeighbourPositions [get]
 
new MyCockpitDefinition BlockDefinition [get]
 
override MyCharacter Pilot [get]
 
MyEntity IsBeingUsedBy [get]
 
- Properties inherited from Sandbox.Game.Entities.MyShipController
MyResourceDistributorComponent GridResourceDistributor [get]
 
MyGridWheelSystem GridWheels [get]
 
MyEntityThrustComponent EntityThrustComponent [get]
 
virtual MyStringId LeaveNotificationHintText [get]
 
bool EnableShipControl [get]
 
bool PlayDefaultUseSound [get]
 
MyToolbar Toolbar [get]
 
bool HasWheels [get]
 
VRage.Groups.MyGroups< MyCubeGrid, MyGridPhysicalGroupDataControlGroup [get]
 
virtual MyCharacter Pilot [get]
 
virtual ControllerPriority Priority [get]
 
bool PrimaryLookaround [get]
 
virtual bool ForceFirstPersonCamera [get, set]
 
bool EnableFirstPerson [get]
 
MyEntity TopGrid [get]
 
MyEntity IsUsing [get]
 
override Vector3D LocationForHudMarker [get]
 
new MyShipControllerDefinition BlockDefinition [get]
 
bool ControlThrusters [get, set]
 
bool ControlWheels [get, set]
 
MyEntity Entity [get]
 
MyControllerInfo ControllerInfo [get]
 
bool SingleWeaponMode [get]
 
bool IsMainCockpit [get, set]
 
bool HorizonIndicatorEnabled [get, set]
 
virtual MyToolbarType ToolbarType [get]
 
virtual float HeadLocalXAngle [get, set]
 
virtual float HeadLocalYAngle [get, set]
 
MyStringId ControlContext [get]
 
- Properties inherited from Sandbox.Game.Entities.IMyControllableEntity
MyControllerInfo ControllerInfo [get]
 
new MyEntity Entity [get]
 
float HeadLocalXAngle [get, set]
 
float HeadLocalYAngle [get, set]
 
bool EnabledBroadcasting [get]
 
MyToolbarType ToolbarType [get]
 
MyStringId ControlContext [get]
 
MyToolbar Toolbar [get]
 
- Properties inherited from VRage.Game.ModAPI.Interfaces.IMyControllableEntity
IMyEntity Entity [get]
 
bool ForceFirstPersonCamera [get, set]
 
bool EnabledThrusts [get]
 
bool EnabledDamping [get]
 
bool EnabledLights [get]
 
bool EnabledLeadingGears [get]
 
bool EnabledReactors [get]
 
bool EnabledHelmet [get]
 
bool PrimaryLookaround [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyShipController
bool IsUnderControl [get]
 Indicates whether a block is locally or remotely controlled. More...
 
bool ControlWheels [get]
 Indicates whether wheels are being controlled by this controller. More...
 
bool ControlThrusters [get]
 Indicates whether thrusters are being controlled by this controller. More...
 
bool HandBrake [get]
 Indicates the current state of the handbrake. More...
 
bool DampenersOverride [get]
 Indicates whether dampeners are currently enabled. More...
 
Vector3 MoveIndicator [get]
 Directional input from user/autopilot. Values can be very large with high controller sensitivity More...
 
Vector2 RotationIndicator [get]
 Pitch, yaw input from user/autopilot. Values can be very large with high controller sensitivity More...
 
float RollIndicator [get]
 Roll input from user/autopilot. Values can be very large with high controller sensitivity More...
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
string CustomName [get]
 
string CustomNameWithFaction [get]
 
string DetailedInfo [get]
 
string CustomInfo [get]
 
string CustomData [get, set]
 Gets or sets the Custom Data string. NOTE: Only use this for user input. For storing large mod configs, create your own MyModStorageComponent More...
 
bool ShowOnHUD [get]
 
- Properties inherited from Sandbox.ModAPI.Ingame.IMyCubeBlock
Sandbox.Common.ObjectBuilders.Definitions.SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get]
 
IMyCubeGrid CubeGrid [get]
 
String DefinitionDisplayNameText [get]
 
float DisassembleRatio [get]
 
String DisplayNameText [get]
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 
bool IsWorking [get]
 
VRageMath.Vector3I Max [get]
 
VRageMath.Vector3I Min [get]
 
int NumberInGrid [get]
 
VRageMath.MyBlockOrientation Orientation [get]
 
long OwnerId [get]
 
VRageMath.Vector3I Position [get]
 
- Properties inherited from VRage.Game.ModAPI.Interfaces.IMyCameraController
bool IsInFirstPersonView [get, set]
 
bool ForceFirstPersonCamera [get, set]
 
bool AllowCubeBuilding [get]
 
- Properties inherited from VRage.Game.ModAPI.IMyCubeBlock
SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get, set]
 Whether the grid should call the ConnectionAllowed method for this block (ConnectionAllowed checks mount points and other per-block requirements) More...
 
IMyCubeGrid CubeGrid [get]
 Grid in which the block is placed More...
 
String DefinitionDisplayNameText [get]
 Definition name More...
 
float DisassembleRatio [get]
 Is set in definition Ratio at which is the block disassembled (grinding) More...
 
String DisplayNameText [get]
 Translated block name More...
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 True if integrity is above breaking threshold More...
 
bool IsWorking [get]
 True if block is able to do its work depening on block type (is functional, powered, enabled, etc...) More...
 
VRageMath.Vector3I Max [get]
 Maximum coordinates of grid cells occupied by this block More...
 
float Mass [get]
 Block mass More...
 
VRageMath.Vector3I Min [get]
 Minimum coordinates of grid cells occupied by this block More...
 
int NumberInGrid [get, set]
 Order in which were the blocks of same type added to grid Used in default display name More...
 
VRageMath.MyBlockOrientation Orientation [get]
 Returns block orientation in base 6 directions More...
 
long OwnerId [get]
 Id of player owning block (not steam Id) More...
 
VRageMath.Vector3I Position [get]
 Position in grid coordinates More...
 
Dictionary< string, float > UpgradeValues [get]
 Get all values changed by upgrade modules Should only be used as read-only More...
 
IMySlimBlock SlimBlock [get]
 Gets the SlimBlock associated with this block More...
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyCubeBlock
SerializableDefinitionId BlockDefinition [get]
 
bool CheckConnectionAllowed [get]
 
IMyCubeGrid CubeGrid [get]
 
String DefinitionDisplayNameText [get]
 
float DisassembleRatio [get]
 
String DisplayNameText [get]
 
bool IsBeingHacked [get]
 
bool IsFunctional [get]
 
bool IsWorking [get]
 
VRageMath.Vector3I Max [get]
 
float Mass [get]
 Block mass More...
 
VRageMath.Vector3I Min [get]
 
int NumberInGrid [get]
 
VRageMath.MyBlockOrientation Orientation [get]
 
long OwnerId [get]
 
VRageMath.Vector3I Position [get]
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyEntity
MyEntityComponentContainer Components [get]
 
long EntityId [get]
 
VRageMath.BoundingBoxD WorldAABB [get]
 
VRageMath.BoundingBoxD WorldAABBHr [get]
 
VRageMath.MatrixD WorldMatrix [get]
 
VRageMath.BoundingSphereD WorldVolume [get]
 
VRageMath.BoundingSphereD WorldVolumeHr [get]
 
- Properties inherited from VRage.ModAPI.IMyEntity
MyEntityComponentContainer Components [get]
 
MyPhysicsComponentBase Physics [get, set]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyEntityComponentBase GameLogic [get, set]
 
MyHierarchyComponentBase Hierarchy [get, set]
 
MySyncComponentBase SyncObject [get]
 
MyModStorageComponentBase Storage [get, set]
 Custom storage for mods. Shared with all mods. More...
 
EntityFlags Flags [get, set]
 
long EntityId [get, set]
 
string Name [get, set]
 
bool MarkedForClose [get]
 
bool Closed [get]
 
bool DebugAsyncLoading [get]
 
bool Save [get, set]
 
MyPersistentEntityFlags2 PersistentFlags [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
IMyEntity Parent [get]
 
Matrix LocalMatrix [get, set]
 
bool NearFlag [get, set]
 
bool CastShadows [get, set]
 
bool FastCastShadowResolve [get, set]
 
bool NeedsResolveCastShadow [get, set]
 
float MaxGlassDistSq [get]
 
bool NeedsDraw [get, set]
 
bool NeedsDrawFromParent [get, set]
 
bool Transparent [get, set]
 
bool ShadowBoxLod [get, set]
 
bool SkipIfTooSmall [get, set]
 
bool Visible [get, set]
 
bool InScene [get, set]
 
bool InvalidateOnMove [get]
 
new VRageMath.MatrixD WorldMatrix [get, set]
 
VRageMath.MatrixD WorldMatrixInvScaled [get]
 
VRageMath.MatrixD WorldMatrixNormalizedInv [get]
 
bool IsVolumetric [get]
 
BoundingBox LocalAABB [get, set]
 
BoundingBox LocalAABBHr [get]
 
BoundingSphere LocalVolume [get, set]
 
Vector3 LocalVolumeOffset [get, set]
 
Vector3 LocationForHudMarker [get]
 
bool IsCCDForProjectiles [get]
 
string DisplayName [get, set]
 
- Properties inherited from Sandbox.Game.GameSystems.Conveyors.IMyConveyorEndpointBlock
IMyConveyorEndpoint ConveyorEndpoint [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Sandbox.Game.Entities.MyShipController
static bool HasPriorityOver (MyShipController first, MyShipController second)
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyTerminalBlock
Action< IMyTerminalBlockCustomNameChanged
 
Action< IMyTerminalBlockOwnershipChanged
 
Action< IMyTerminalBlockPropertiesChanged
 
Action< IMyTerminalBlockShowOnHUDChanged
 
Action< IMyTerminalBlockVisibilityChanged
 
- Events inherited from Sandbox.ModAPI.Ingame.IMyCubeBlock
Action< IMyCubeBlockIsWorkingChanged
 
- Events inherited from Sandbox.ModAPI.IMyTerminalBlock
Action< IMyTerminalBlockCustomNameChanged
 
Action< IMyTerminalBlockOwnershipChanged
 
Action< IMyTerminalBlockPropertiesChanged
 
Action< IMyTerminalBlockShowOnHUDChanged
 
Action< IMyTerminalBlockVisibilityChanged
 
Action< IMyTerminalBlock, StringBuilder > AppendingCustomInfo
 Event to append custom info. More...
 
- Events inherited from VRage.Game.ModAPI.IMyCubeBlock
Action< IMyCubeBlockIsWorkingChanged
 
Action OnUpgradeValuesChanged
 Event called when upgrade values are changed Either upgrades were built or destroyed, or they become damaged or unpowered More...
 
- Events inherited from VRage.ModAPI.IMyEntity
Action< IMyEntityOnClose
 
Action< IMyEntityOnClosing
 
Action< IMyEntityOnMarkForClose
 
Action< IMyEntityOnPhysicsChanged
 

Detailed Description

Definition at line 58 of file MyCockpit.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.MyCockpit.MyCockpit ( )
inline

Definition at line 173 of file MyCockpit.cs.

Member Function Documentation

void Sandbox.Game.Entities.MyCockpit.AddShake ( float  shakePower)
inline

Definition at line 1207 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.AttachAutopilot ( MyAutopilotBase  newAutopilot,
bool  updateSync = true 
)
inline

Definition at line 893 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.AttachPilot ( MyCharacter  pilot,
bool  storeOriginalPilotWorld = true,
bool  calledFromInit = false,
bool  merged = false 
)
inline

Definition at line 1102 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.AttachPilotEvent ( UseActionEnum  actionEnum,
long  characterID 
)
inline

Definition at line 1532 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.AttachPilotEventFailed ( UseActionResult  actionResult)
inline

Definition at line 1550 of file MyCockpit.cs.

override string Sandbox.Game.Entities.MyCockpit.CalculateCurrentModel ( out Matrix  orientation)
inline

Definition at line 1230 of file MyCockpit.cs.

override bool Sandbox.Game.Entities.MyCockpit.CanBeMainCockpit ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1409 of file MyCockpit.cs.

virtual UseActionResult Sandbox.Game.Entities.MyCockpit.CanUse ( UseActionEnum  actionEnum,
IMyControllableEntity  user 
)
inlinevirtual

Test use on server and based on results sends success or failure

Implements Sandbox.Game.Entities.UseObject.IMyUsableEntity.

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 1269 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.ClearSavedpilot ( )
inline

Definition at line 1603 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.ComponentStack_IsFunctionalChanged ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 320 of file MyCockpit.cs.

Vector3D Sandbox.Game.Entities.MyCockpit.FindFreeNeighbourPosition ( )
inlineprotected

Definition at line 1019 of file MyCockpit.cs.

override MatrixD Sandbox.Game.Entities.MyCockpit.GetHeadMatrix ( bool  includeY,
bool  includeX = true,
bool  forceHeadAnim = false,
bool  forceHeadBone = false 
)
inlinevirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 380 of file MyCockpit.cs.

override List<MyHudEntityParams> Sandbox.Game.Entities.MyCockpit.GetHudParams ( bool  allowBlink)
inline

Definition at line 1380 of file MyCockpit.cs.

override MyObjectBuilder_CubeBlock Sandbox.Game.Entities.MyCockpit.GetObjectBuilderCubeBlock ( bool  copy = false)
inline

Returns block object builder which can be serialized or added to grid

Parameters
copySet if creating a copy of block
Returns
Block object builder

Implements VRage.Game.ModAPI.IMyCubeBlock.

Definition at line 345 of file MyCockpit.cs.

Sandbox.Game.GameSystems.Conveyors.PullInformation Sandbox.Game.Entities.MyCockpit.GetPullInformation ( )
inline
Sandbox.Game.GameSystems.Conveyors.PullInformation Sandbox.Game.Entities.MyCockpit.GetPushInformation ( )
inline
override MatrixD Sandbox.Game.Entities.MyCockpit.GetViewMatrix ( )
inline

Implements VRage.ModAPI.IMyEntity.

Definition at line 464 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.GiveControlToPilot ( )
inline

Definition at line 738 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.Init ( MyObjectBuilder_CubeBlock  objectBuilder,
MyCubeGrid  cubeGrid 
)
inline

Definition at line 193 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.InitializeConveyorEndpoint ( )
inline
override bool Sandbox.Game.Entities.MyCockpit.IsCameraController ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1309 of file MyCockpit.cs.

override bool Sandbox.Game.Entities.MyCockpit.IsLargeShip ( )
inlinevirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1220 of file MyCockpit.cs.

bool Sandbox.Game.Entities.MyCockpit.IsNeighbourPositionFree ( Vector3I  neighbourOffsetI,
out Vector3D  translation 
)
inline

Definition at line 1041 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnAddedToScene ( object  source)
inline

Implements VRage.ModAPI.IMyEntity.

Definition at line 696 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.OnAssumeControl ( IMyCameraController  previousCameraController)
inline

Implements VRage.Game.ModAPI.Interfaces.IMyCameraController.

Definition at line 459 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnControlAcquired_UpdateCamera ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 1314 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnControlledEntity_Used ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1322 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnControlReleased ( MyEntityController  controller)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 713 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnControlReleased_UpdateCamera ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1340 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnOwnershipChanged ( )
inlineprotected

Definition at line 1363 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnRegisteredToGridSystems ( )
inline

Called at the end of registration from grid systems (after block has been registered).

Implements VRage.Game.ModAPI.IMyCubeBlock.

Definition at line 1058 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.OnReleaseControl ( IMyCameraController  newCameraController)
inline

Implements VRage.Game.ModAPI.Interfaces.IMyCameraController.

Definition at line 925 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnRemovedFromScene ( object  source)
inline

Implements VRage.ModAPI.IMyEntity.

Definition at line 683 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.OnUnregisteredFromGridSystems ( )
inline

Called at the end of unregistration from grid systems (after block has been unregistered).

Implements VRage.Game.ModAPI.IMyCubeBlock.

Definition at line 1074 of file MyCockpit.cs.

virtual void Sandbox.Game.Entities.MyCockpit.PlacePilotInSeat ( MyCharacter  pilot)
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 1193 of file MyCockpit.cs.

virtual void Sandbox.Game.Entities.MyCockpit.PostBaseInit ( )
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 302 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.RemoveAutopilot ( )
inline

Definition at line 907 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.RemoveLocal ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1347 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.RemoveOriginalPilotPosition ( )
inline

Definition at line 919 of file MyCockpit.cs.

bool Sandbox.Game.Entities.MyCockpit.RemovePilot ( )
inline

Definition at line 751 of file MyCockpit.cs.

virtual void Sandbox.Game.Entities.MyCockpit.RemovePilotFromSeat ( MyCharacter  pilot)
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 888 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.RequestUse ( UseActionEnum  actionEnum,
MyCharacter  user 
)
inline

Definition at line 1512 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.Rotate ( Vector2  rotationIndicator,
float  rollIndicator 
)
inline

Rotate camera controller.

Implements VRage.Game.ModAPI.Interfaces.IMyCameraController.

Definition at line 432 of file MyCockpit.cs.

void Sandbox.Game.Entities.MyCockpit.RotateStopped ( )
inline

Rotation of camera controller stopped.

Implements VRage.Game.ModAPI.Interfaces.IMyCameraController.

Definition at line 454 of file MyCockpit.cs.

override bool Sandbox.Game.Entities.MyCockpit.ShouldSit ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1404 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.ShowInventory ( )
inlinevirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 673 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.ShowTerminal ( )
inlinevirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 678 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.StartLoopSound ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1295 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.StopLoopSound ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1302 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateBeforeSimulation ( )
inline

Definition at line 518 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateBeforeSimulation10 ( )
inline

Definition at line 528 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateBeforeSimulation100 ( )
inline

Definition at line 571 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateCameraAfterChange ( bool  resetHeadLocalAngle = true)
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 934 of file MyCockpit.cs.

virtual void Sandbox.Game.Entities.MyCockpit.UpdateCockpitModel ( )
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Entities.Blocks.MyCryoChamber.

Definition at line 969 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateOnceBeforeFrame ( )
inline

Definition at line 485 of file MyCockpit.cs.

override void Sandbox.Game.Entities.MyCockpit.UpdateSoundState ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Game.Entities.MyShipController.

Definition at line 1290 of file MyCockpit.cs.

Member Data Documentation

float Sandbox.Game.Entities.MyCockpit.GlassDirt = 1.0f

Definition at line 104 of file MyCockpit.cs.

MyCharacter Sandbox.Game.Entities.MyCockpit.m_pilot = null
protected

Definition at line 72 of file MyCockpit.cs.

Action<MyEntity> Sandbox.Game.Entities.MyCockpit.m_pilotClosedHandler
protected

Definition at line 100 of file MyCockpit.cs.

MyDefinitionId Sandbox.Game.Entities.MyCockpit.m_pilotGunDefinition = null
protected

Definition at line 78 of file MyCockpit.cs.

readonly Sync<Matrix?> Sandbox.Game.Entities.MyCockpit.m_pilotRelativeWorld
protected

Definition at line 77 of file MyCockpit.cs.

Property Documentation

MyAutopilotBase Sandbox.Game.Entities.MyCockpit.AiPilot
get

Definition at line 76 of file MyCockpit.cs.

new MyCockpitDefinition Sandbox.Game.Entities.MyCockpit.BlockDefinition
get

Definition at line 1226 of file MyCockpit.cs.

IMyConveyorEndpoint Sandbox.Game.Entities.MyCockpit.ConveyorEndpoint
get

Definition at line 139 of file MyCockpit.cs.

override bool Sandbox.Game.Entities.MyCockpit.ForceFirstPersonCamera
getset

Definition at line 124 of file MyCockpit.cs.

override float Sandbox.Game.Entities.MyCockpit.HeadLocalXAngle
getset

Definition at line 421 of file MyCockpit.cs.

override float Sandbox.Game.Entities.MyCockpit.HeadLocalYAngle
getset

Definition at line 427 of file MyCockpit.cs.

MyEntity Sandbox.Game.Entities.MyCockpit.IsBeingUsedBy
get

Definition at line 1260 of file MyCockpit.cs.

virtual bool Sandbox.Game.Entities.MyCockpit.IsInFirstPersonView
getset

Definition at line 110 of file MyCockpit.cs.

Vector3I [] Sandbox.Game.Entities.MyCockpit.NeighbourPositions
get

Definition at line 1018 of file MyCockpit.cs.

float Sandbox.Game.Entities.MyCockpit.OxygenAmount
getset

Definition at line 150 of file MyCockpit.cs.

float Sandbox.Game.Entities.MyCockpit.OxygenAmountMissing
get

Definition at line 160 of file MyCockpit.cs.

float Sandbox.Game.Entities.MyCockpit.OxygenFillLevel
get

Definition at line 147 of file MyCockpit.cs.

override MyCharacter Sandbox.Game.Entities.MyCockpit.Pilot
get

Definition at line 1248 of file MyCockpit.cs.

bool Sandbox.Game.Entities.MyCockpit.PilotJetpackEnabledBackup
get

Definition at line 102 of file MyCockpit.cs.


The documentation for this class was generated from the following file: