C# Class GameEntities.Dynamic

Defines a object with a lifespan, sounds and damage for the collision of physical bodies, and management of influences.
Inheritance: MapObject
ファイルを表示 Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
Body_Collision void
Client_GetReceivePositionsSnapshots void
Client_ReceiveBodiesPositions void
Client_ReceiveLife void
Client_ReceivePositions void
Client_ReceiveSoundPlayCollision void
CopyInfluencesToObject void
CreateAnimationController void
Die void
LoadAnimationState void
SaveAnimationState void
Server_SendBodiesPositionsToNewClient void
Server_SendLifeToClients void
Server_SendPositionsToAllClients void
Server_SendPositionsToNewClient void
Server_SendSoundPlayCollisionToAllClients void
TickForceAnimationRemainingTime void
UpdateAutomaticInfluences void

Public Methods

Method Description
AddInfluence ( InfluenceType influenceType, float time, bool checkSubstance ) : void
Client_UpdatePositionsBySnapshots ( bool rendering ) : void
CurrentAnimationIsEnabled ( ) : bool
Die ( MapObject prejudicial ) : void
Die ( MapObject prejudicial, bool allowLatencyTime ) : void
DoDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
ForceAnimationIsEnabled ( ) : bool
GetParentUnit ( ) : Unit
GetParentUnitHavingIntellect ( ) : Unit
SetForceAnimation ( string animationBaseName, bool allowRandomAnimationNumber ) : void
SoundPlay3D ( string name, float priority, bool needAttach ) : void
SuspendPhysicsDuringMapLoading ( bool suspend ) : void

Protected Methods

Method Description
Client_OnTick ( ) : void
GetRandomAnimationNumber ( string animationBaseName, bool firstAnimationIn10TimesMoreOften ) : int
OnCreate ( ) : void

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

OnCreateInfluence ( Influence influence ) : void
OnDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
OnDestroy ( ) : void

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

OnDie ( MapObject prejudicial ) : void
OnDieObjectCreate ( MapObjectCreateObject createObject, object objectCreated ) : void
OnLifeTimeIsOver ( ) : void
OnLoad ( TextBlock block ) : bool

Overridden from Engine.EntitySystem.Entity.OnLoad(TextBlock).

OnPostCreate ( bool loaded ) : void

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

OnRemoveChild ( Entity entity ) : void

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

OnRenderFrame ( ) : void
OnSave ( TextBlock block ) : void

Overridden from Engine.EntitySystem.Entity.OnSave(TextBlock).

OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
OnShouldDelete ( ) : bool

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

OnSuspendPhysicsDuringMapLoading ( bool suspend ) : void
OnTick ( ) : void

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

OnUpdateBaseAnimation ( ) : void
Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
Server_SendBodiesPositionsToAllClients ( bool updateAll ) : void
UpdateBaseAnimation ( string animationBaseName, bool allowRandomAnimationNumber, bool loop, float velocity ) : void

Private Methods

Method Description
Body_Collision ( CollisionEvent &collisionEvent ) : void
Client_GetReceivePositionsSnapshots ( int networkTickNumber, Client_ReceivePositionsSnapshot &snapshot1, Client_ReceivePositionsSnapshot &snapshot2 ) : void
Client_ReceiveBodiesPositions ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveLife ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceivePositions ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveSoundPlayCollision ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
CopyInfluencesToObject ( Dynamic destination ) : void
CreateAnimationController ( ) : void
Die ( ) : void
LoadAnimationState ( TextBlock block ) : void
SaveAnimationState ( TextBlock block ) : void
Server_SendBodiesPositionsToNewClient ( RemoteEntityWorld remoteEntityWorld ) : void
Server_SendLifeToClients ( IList remoteEntityWorlds ) : void
Server_SendPositionsToAllClients ( bool updateAll ) : void
Server_SendPositionsToNewClient ( RemoteEntityWorld remoteEntityWorld ) : void
Server_SendSoundPlayCollisionToAllClients ( ) : void
TickForceAnimationRemainingTime ( ) : void
UpdateAutomaticInfluences ( ) : void

Method Details

AddInfluence() public method

public AddInfluence ( InfluenceType influenceType, float time, bool checkSubstance ) : void
influenceType InfluenceType
time float
checkSubstance bool
return void

Client_OnTick() protected method

protected Client_OnTick ( ) : void
return void

Client_UpdatePositionsBySnapshots() public method

public Client_UpdatePositionsBySnapshots ( bool rendering ) : void
rendering bool
return void

CurrentAnimationIsEnabled() public method

public CurrentAnimationIsEnabled ( ) : bool
return bool

Die() public method

public Die ( MapObject prejudicial ) : void
prejudicial MapObject
return void

Die() public method

public Die ( MapObject prejudicial, bool allowLatencyTime ) : void
prejudicial MapObject
allowLatencyTime bool
return void

DoDamage() public method

public DoDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
prejudicial MapObject
pos Vec3
shape Shape
damage float
allowMoveDamageToParent bool
return void

ForceAnimationIsEnabled() public method

public ForceAnimationIsEnabled ( ) : bool
return bool

GetParentUnit() public method

public GetParentUnit ( ) : Unit
return Unit

GetParentUnitHavingIntellect() public method

public GetParentUnitHavingIntellect ( ) : Unit
return Unit

GetRandomAnimationNumber() protected method

protected GetRandomAnimationNumber ( string animationBaseName, bool firstAnimationIn10TimesMoreOften ) : int
animationBaseName string
firstAnimationIn10TimesMoreOften bool
return int

OnCreate() protected method

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

OnCreateInfluence() protected method

protected OnCreateInfluence ( Influence influence ) : void
influence Influence
return void

OnDamage() protected method

protected OnDamage ( MapObject prejudicial, Vec3 pos, Shape shape, float damage, bool allowMoveDamageToParent ) : void
prejudicial MapObject
pos Vec3
shape Shape
damage float
allowMoveDamageToParent bool
return void

OnDestroy() protected method

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

OnDie() protected method

protected OnDie ( MapObject prejudicial ) : void
prejudicial MapObject
return void

OnDieObjectCreate() protected method

protected OnDieObjectCreate ( MapObjectCreateObject createObject, object objectCreated ) : void
createObject MapObjectCreateObject
objectCreated object
return void

OnLifeTimeIsOver() protected method

protected OnLifeTimeIsOver ( ) : void
return void

OnLoad() protected method

Overridden from Engine.EntitySystem.Entity.OnLoad(TextBlock).
protected OnLoad ( TextBlock block ) : bool
block TextBlock
return bool

OnPostCreate() protected method

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

OnRemoveChild() protected method

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

OnRenderFrame() protected method

protected OnRenderFrame ( ) : void
return void

OnSave() protected method

Overridden from Engine.EntitySystem.Entity.OnSave(TextBlock).
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

OnShouldDelete() protected method

Overridden from Engine.EntitySystem.Entity.OnShouldDelete().
protected OnShouldDelete ( ) : bool
return bool

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

OnUpdateBaseAnimation() protected method

protected OnUpdateBaseAnimation ( ) : void
return void

Server_OnClientConnectedAfterPostCreate() protected method

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

Server_OnClientConnectedBeforePostCreate() protected method

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

Server_SendBodiesPositionsToAllClients() protected method

protected Server_SendBodiesPositionsToAllClients ( bool updateAll ) : void
updateAll bool
return void

SetForceAnimation() public method

public SetForceAnimation ( string animationBaseName, bool allowRandomAnimationNumber ) : void
animationBaseName string
allowRandomAnimationNumber bool
return void

SoundPlay3D() public method

public SoundPlay3D ( string name, float priority, bool needAttach ) : void
name string
priority float
needAttach bool
return void

SuspendPhysicsDuringMapLoading() public method

public SuspendPhysicsDuringMapLoading ( bool suspend ) : void
suspend bool
return void

UpdateBaseAnimation() protected method

protected UpdateBaseAnimation ( string animationBaseName, bool allowRandomAnimationNumber, bool loop, float velocity ) : void
animationBaseName string
allowRandomAnimationNumber bool
loop bool
velocity float
return void