C# Class GameEntities.Character

Defines the physical characters.
Inheritance: Unit
Show file Open project: DarrenHassan/GDM4242-GroupD

Private Properties

Property Type Description
CalculateGroundRelativeVelocity void
CalculateMainBodyGroundDistanceAndGroundBody void
Client_ReceiveJumpEvent void
Client_ReceiveWeaponVerticalAngle void
IsPhysX bool
Server_SendGroundRelativeVelocityToClients void
Server_SendJumpEventToAllClients void
TickIntellect void
TickJump void
TickMovement void
UpdateMainBodyDamping void

Public Methods

Method Description
IsOnGround ( ) : bool
SetForceMoveVector ( Vec2 vec ) : void
SetTurnToPosition ( Vec3 pos ) : void
TryJump ( ) : void
UpdateRotation ( ) : void

Protected Methods

Method Description
Client_OnTick ( ) : void

Overridden from Engine.EntitySystem.Entity.Client_OnTick().

OnIntellectCommand ( Intellect command ) : void
OnJump ( ) : void
OnPostCreate ( bool loaded ) : void

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).

OnSave ( TextBlock block ) : void
OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
OnSuspendPhysicsDuringMapLoading ( bool suspend ) : void
OnTick ( ) : void

Overridden from Engine.EntitySystem.Entity.OnTick().

Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
CalculateGroundRelativeVelocity ( ) : void
CalculateMainBodyGroundDistanceAndGroundBody ( Vec3 &shouldAddForce ) : void
Client_ReceiveJumpEvent ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveWeaponVerticalAngle ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
IsPhysX ( ) : bool
Server_SendGroundRelativeVelocityToClients ( IList remoteEntityWorlds, Vec3 value ) : void
Server_SendJumpEventToAllClients ( ) : void
TickIntellect ( Intellect intellect ) : void
TickJump ( bool ignoreTicks ) : void
TickMovement ( ) : void
UpdateMainBodyDamping ( ) : void

Method Details

Client_OnTick() protected method

Overridden from Engine.EntitySystem.Entity.Client_OnTick().
protected Client_OnTick ( ) : void
return void

IsOnGround() public method

public IsOnGround ( ) : bool
return bool

OnIntellectCommand() protected method

protected OnIntellectCommand ( Intellect command ) : void
command Intellect
return void

OnJump() protected method

protected OnJump ( ) : void
return void

OnPostCreate() protected method

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
return void

OnSave() protected method

protected OnSave ( TextBlock block ) : void
block TextBlock
return void

OnSetTransform() protected method

protected OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
pos Vec3
rot Quat
scl Vec3
return void

OnSuspendPhysicsDuringMapLoading() protected method

protected OnSuspendPhysicsDuringMapLoading ( bool suspend ) : void
suspend bool
return void

OnTick() protected method

Overridden from Engine.EntitySystem.Entity.OnTick().
protected OnTick ( ) : void
return void

Server_OnClientConnectedAfterPostCreate() protected method

protected Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
remoteEntityWorld RemoteEntityWorld
return void

SetForceMoveVector() public method

public SetForceMoveVector ( Vec2 vec ) : void
vec Vec2
return void

SetTurnToPosition() public method

public SetTurnToPosition ( Vec3 pos ) : void
pos Vec3
return void

TryJump() public method

public TryJump ( ) : void
return void

UpdateRotation() public method

public UpdateRotation ( ) : void
return void