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
Afficher le fichier Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddInfluence ( InfluenceType influenceType, float time, bool checkSubstance ) : void
influenceType InfluenceType
time float
checkSubstance bool
Résultat void

Client_OnTick() protected méthode

protected Client_OnTick ( ) : void
Résultat void

Client_UpdatePositionsBySnapshots() public méthode

public Client_UpdatePositionsBySnapshots ( bool rendering ) : void
rendering bool
Résultat void

CurrentAnimationIsEnabled() public méthode

public CurrentAnimationIsEnabled ( ) : bool
Résultat bool

Die() public méthode

public Die ( MapObject prejudicial ) : void
prejudicial MapObject
Résultat void

Die() public méthode

public Die ( MapObject prejudicial, bool allowLatencyTime ) : void
prejudicial MapObject
allowLatencyTime bool
Résultat void

DoDamage() public méthode

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

ForceAnimationIsEnabled() public méthode

public ForceAnimationIsEnabled ( ) : bool
Résultat bool

GetParentUnit() public méthode

public GetParentUnit ( ) : Unit
Résultat Unit

GetParentUnitHavingIntellect() public méthode

public GetParentUnitHavingIntellect ( ) : Unit
Résultat Unit

GetRandomAnimationNumber() protected méthode

protected GetRandomAnimationNumber ( string animationBaseName, bool firstAnimationIn10TimesMoreOften ) : int
animationBaseName string
firstAnimationIn10TimesMoreOften bool
Résultat int

OnCreate() protected méthode

Overridden from Engine.EntitySystem.Entity.OnCreate().
protected OnCreate ( ) : void
Résultat void

OnCreateInfluence() protected méthode

protected OnCreateInfluence ( Influence influence ) : void
influence Influence
Résultat void

OnDamage() protected méthode

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

OnDestroy() protected méthode

Overridden from Engine.EntitySystem.Entity.OnDestroy().
protected OnDestroy ( ) : void
Résultat void

OnDie() protected méthode

protected OnDie ( MapObject prejudicial ) : void
prejudicial MapObject
Résultat void

OnDieObjectCreate() protected méthode

protected OnDieObjectCreate ( MapObjectCreateObject createObject, object objectCreated ) : void
createObject MapObjectCreateObject
objectCreated object
Résultat void

OnLifeTimeIsOver() protected méthode

protected OnLifeTimeIsOver ( ) : void
Résultat void

OnLoad() protected méthode

Overridden from Engine.EntitySystem.Entity.OnLoad(TextBlock).
protected OnLoad ( TextBlock block ) : bool
block TextBlock
Résultat bool

OnPostCreate() protected méthode

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
Résultat void

OnRemoveChild() protected méthode

Overridden from Engine.EntitySystem.Entity.OnRemoveChild(Entity)
protected OnRemoveChild ( Entity entity ) : void
entity Entity
Résultat void

OnRenderFrame() protected méthode

protected OnRenderFrame ( ) : void
Résultat void

OnSave() protected méthode

Overridden from Engine.EntitySystem.Entity.OnSave(TextBlock).
protected OnSave ( TextBlock block ) : void
block TextBlock
Résultat void

OnSetTransform() protected méthode

protected OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
pos Vec3
rot Quat
scl Vec3
Résultat void

OnShouldDelete() protected méthode

Overridden from Engine.EntitySystem.Entity.OnShouldDelete().
protected OnShouldDelete ( ) : bool
Résultat bool

OnSuspendPhysicsDuringMapLoading() protected méthode

protected OnSuspendPhysicsDuringMapLoading ( bool suspend ) : void
suspend bool
Résultat void

OnTick() protected méthode

Overridden from Engine.EntitySystem.Entity.OnTick().
protected OnTick ( ) : void
Résultat void

OnUpdateBaseAnimation() protected méthode

protected OnUpdateBaseAnimation ( ) : void
Résultat void

Server_OnClientConnectedAfterPostCreate() protected méthode

protected Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
remoteEntityWorld RemoteEntityWorld
Résultat void

Server_OnClientConnectedBeforePostCreate() protected méthode

protected Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
remoteEntityWorld RemoteEntityWorld
Résultat void

Server_SendBodiesPositionsToAllClients() protected méthode

protected Server_SendBodiesPositionsToAllClients ( bool updateAll ) : void
updateAll bool
Résultat void

SetForceAnimation() public méthode

public SetForceAnimation ( string animationBaseName, bool allowRandomAnimationNumber ) : void
animationBaseName string
allowRandomAnimationNumber bool
Résultat void

SoundPlay3D() public méthode

public SoundPlay3D ( string name, float priority, bool needAttach ) : void
name string
priority float
needAttach bool
Résultat void

SuspendPhysicsDuringMapLoading() public méthode

public SuspendPhysicsDuringMapLoading ( bool suspend ) : void
suspend bool
Résultat void

UpdateBaseAnimation() protected méthode

protected UpdateBaseAnimation ( string animationBaseName, bool allowRandomAnimationNumber, bool loop, float velocity ) : void
animationBaseName string
allowRandomAnimationNumber bool
loop bool
velocity float
Résultat void