C# Class Axiom.Samples.CharacterSample.SinbadCharacterController

Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Properties

Property Type Description
AnimFadeSpeed Real
Gravity Real
JumpAcceleration Real
TurnSpeed Real

Protected Properties

Property Type Description
anims AnimationState[]
baseAnimID AnimationID
bodyEnt Axiom.Core.Entity
bodyNode Axiom.Core.SceneNode
camera Axiom.Core.Camera
cameraGoal Axiom.Core.SceneNode
cameraNode Axiom.Core.SceneNode
cameraPivot Axiom.Core.SceneNode
fadingIn bool[]
fadingOut bool[]
goalDirection Axiom.Math.Vector3
keyDirection Axiom.Math.Vector3
pivotPitch Real
sword1 Axiom.Core.Entity
sword2 Axiom.Core.Entity
swordTrail RibbonTrail
swordsDrawn bool
timer Real
topAnimID AnimationID
verticalVelocity Real

Public Methods

Method Description
AddTime ( Real deltaTime ) : void

InjectKeyDown ( SharpInputSystem e ) : void

InjectKeyUp ( SharpInputSystem e ) : void

InjectMouseDown ( SharpInputSystem e, SharpInputSystem id ) : void

InjectMouseMove ( SharpInputSystem e ) : void

SinbadCharacterController ( Camera cam ) : Axiom.Core

Private Methods

Method Description
FadeAnimations ( Real deltaTime ) : void

SetBaseAnimation ( AnimationID id ) : void

SetBaseAnimation ( AnimationID id, bool reset ) : void

/

SetTopAnimation ( AnimationID id ) : void

SetTopAnimation ( AnimationID id, bool reset ) : void

SetupAnimations ( ) : void

SetupBody ( SceneManager sceneMgr ) : void

SetupCamera ( Camera cam ) : void

UpdateAnimations ( Real deltaTime ) : void

UpdateBody ( Real deltaTime ) : void

UpdateCamera ( Real deltaTime ) : void

UpdateCameraGoal ( Real deltaYaw, Real deltaPitch, Real deltaZoom ) : void

Method Details

AddTime() public method

public AddTime ( Real deltaTime ) : void
deltaTime Real
return void

InjectKeyDown() public method

public InjectKeyDown ( SharpInputSystem e ) : void
e SharpInputSystem
return void

InjectKeyUp() public method

public InjectKeyUp ( SharpInputSystem e ) : void
e SharpInputSystem
return void

InjectMouseDown() public method

public InjectMouseDown ( SharpInputSystem e, SharpInputSystem id ) : void
e SharpInputSystem
id SharpInputSystem
return void

InjectMouseMove() public method

public InjectMouseMove ( SharpInputSystem e ) : void
e SharpInputSystem
return void

SinbadCharacterController() public method

public SinbadCharacterController ( Camera cam ) : Axiom.Core
cam Axiom.Core.Camera
return Axiom.Core

Property Details

AnimFadeSpeed public property

animation crossfade speed in % of full weight per second
public Real AnimFadeSpeed
return Real

Gravity public property

gravity in downward units per squared second
public Real Gravity
return Real

JumpAcceleration public property

character jump acceleration in upward units per squared second
public Real JumpAcceleration
return Real

TurnSpeed public property

character turning in degrees per second
public Real TurnSpeed
return Real

anims protected property

// master animation list
protected AnimationState[] anims
return AnimationState[]

baseAnimID protected property

current base (full- or lower-body) animation
protected AnimationID baseAnimID
return AnimationID

bodyEnt protected property

protected Entity,Axiom.Core bodyEnt
return Axiom.Core.Entity

bodyNode protected property

protected SceneNode,Axiom.Core bodyNode
return Axiom.Core.SceneNode

camera protected property

protected Camera,Axiom.Core camera
return Axiom.Core.Camera

cameraGoal protected property

protected SceneNode,Axiom.Core cameraGoal
return Axiom.Core.SceneNode

cameraNode protected property

protected SceneNode,Axiom.Core cameraNode
return Axiom.Core.SceneNode

cameraPivot protected property

protected SceneNode,Axiom.Core cameraPivot
return Axiom.Core.SceneNode

fadingIn protected property

which animations are fading in
protected bool[] fadingIn
return bool[]

fadingOut protected property

which animations are fading out
protected bool[] fadingOut
return bool[]

goalDirection protected property

actual intended direction in world-space
protected Vector3,Axiom.Math goalDirection
return Axiom.Math.Vector3

keyDirection protected property

player's local intended direction based on WASD keys
protected Vector3,Axiom.Math keyDirection
return Axiom.Math.Vector3

pivotPitch protected property

protected Real pivotPitch
return Real

sword1 protected property

protected Entity,Axiom.Core sword1
return Axiom.Core.Entity

sword2 protected property

protected Entity,Axiom.Core sword2
return Axiom.Core.Entity

swordTrail protected property

protected RibbonTrail swordTrail
return RibbonTrail

swordsDrawn protected property

protected bool swordsDrawn
return bool

timer protected property

general timer to see how long animations have been playing
protected Real timer
return Real

topAnimID protected property

current top (upper-body) animation
protected AnimationID topAnimID
return AnimationID

verticalVelocity protected property

for jumping
protected Real verticalVelocity
return Real