Class KerbalCharacterStateHandler
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public abstract class KerbalCharacterStateHandler
- Inheritance
-
KerbalCharacterStateHandler
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
KerbalCharacterStateHandler(KerbalBehavior, KerbalCharacterStateHandlerType, bool)
public KerbalCharacterStateHandler(KerbalBehavior kerbalBehavior, KerbalCharacterStateHandlerType handlerType, bool isPermanent)
Parameters
kerbalBehavior KerbalBehavior
handlerType KerbalCharacterStateHandlerType
isPermanent bool
Fields
_handlerType
protected KerbalCharacterStateHandlerType _handlerType
Field Value
- KerbalCharacterStateHandlerType
_isActive
Field Value
- bool
_isInitialized
protected bool _isInitialized
Field Value
- bool
_isPermanent
protected bool _isPermanent
Field Value
- bool
_kerbalBehavior
protected KerbalBehavior _kerbalBehavior
Field Value
- KerbalBehavior
_normalToSprintLerp
protected float _normalToSprintLerp
Field Value
- float
Properties
Game
protected static GameInstance Game { get; }
Property Value
- GameInstance
HandlerType
public KerbalCharacterStateHandlerType HandlerType { get; }
Property Value
- KerbalCharacterStateHandlerType
IsActive
public bool IsActive { get; }
Property Value
- bool
KerbalVesselComponent
protected VesselComponent KerbalVesselComponent { get; }
Property Value
- VesselComponent
Methods
AcceptMessage(KerbalCharacterMessage)
public virtual void AcceptMessage(KerbalCharacterMessage message)
Parameters
message KerbalCharacterMessage
CalcNormalToSprintLerp(double, double)
protected double CalcNormalToSprintLerp(double normalModeBasedValue, double sprintModeBasedValue)
Parameters
normalModeBasedValue double
sprintModeBasedValue double
Returns
- double
CalcNormalToSprintLerp(float, float)
protected float CalcNormalToSprintLerp(float normalModeBasedValue, float sprintModeBasedValue)
Parameters
normalModeBasedValue float
sprintModeBasedValue float
Returns
- float
public virtual bool CanBeActivatedByInput()
Returns
- bool
CanBeDeactivatedByLocomotionHandler(KerbalCharacterStateHandler)
public virtual bool CanBeDeactivatedByLocomotionHandler(KerbalCharacterStateHandler deactivateByHandler)
Parameters
deactivateByHandler KerbalCharacterStateHandler
Returns
- bool
Deinitialize()
public virtual void Deinitialize()
FixedUpdate(float)
public virtual void FixedUpdate(float fixedDeltaTime)
Parameters
fixedDeltaTime float
Initialize()
public virtual void Initialize()
LateUpdate(float)
public virtual bool LateUpdate(float deltaTime)
Parameters
deltaTime float
Returns
- bool
ResetAnimationStateMoveVars()
protected void ResetAnimationStateMoveVars()
ShouldApplyPhysics()
public bool ShouldApplyPhysics()
Returns
- bool
ShouldApplyStaticFriction()
public virtual bool ShouldApplyStaticFriction()
Returns
- bool
ShouldApplyUpright()
public virtual bool ShouldApplyUpright()
Returns
- bool
ShouldBeActive()
protected virtual bool ShouldBeActive()
Returns
- bool
Start()
public virtual void Start()
Stop()
public virtual void Stop()
Update(float)
public virtual bool Update(float deltaTime)
Parameters
deltaTime float
Returns
- bool
public virtual void UpdateInput()