C# Class GameEntities.Unit

Units differ from Dynamic objects that that can be controlled by intellect (GameEntities.Intellect).
Inheritance: Dynamic
Afficher le fichier Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Свойство Type Description
Client_ReceiveIntellect void
CreateInitialAI void
Server_SendIntellectToClients void
TickTakeItems void

Méthodes publiques

Méthode Description
DoIntellectCommand ( Intellect command ) : void
GetRootUnitFaction ( ) : FactionType
SetIntellect ( Intellect value, bool shouldDeleteAfterDetach ) : void
Unit ( ) : System

Méthodes protégées

Méthode Description
OnCreateInfluence ( Influence influence ) : void
OnDestroy ( ) : void

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

OnDie ( MapObject prejudicial ) : void
OnIntellectCommand ( Intellect command ) : void
OnLoad ( TextBlock block ) : bool

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

OnPostCreate ( bool loaded ) : void

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

OnRelatedEntityDelete ( Entity entity ) : void

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

OnRemoveChild ( Entity entity ) : void

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

OnRender ( Engine.Camera camera ) : void

Overridden from Engine.MapSystem.MapObject.OnRender(Camera).

OnRenderFrame ( ) : void
OnTick ( ) : void

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

Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Méthode Description
Client_ReceiveIntellect ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
CreateInitialAI ( bool loaded ) : void
Server_SendIntellectToClients ( IList remoteEntityWorlds ) : void
TickTakeItems ( ) : void

Method Details

DoIntellectCommand() public méthode

public DoIntellectCommand ( Intellect command ) : void
command Intellect
Résultat void

GetRootUnitFaction() public méthode

public GetRootUnitFaction ( ) : FactionType
Résultat FactionType

OnCreateInfluence() protected méthode

protected OnCreateInfluence ( Influence influence ) : void
influence Influence
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

OnIntellectCommand() protected méthode

protected OnIntellectCommand ( Intellect command ) : void
command Intellect
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

OnRelatedEntityDelete() protected méthode

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

OnRemoveChild() protected méthode

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

OnRender() protected méthode

Overridden from Engine.MapSystem.MapObject.OnRender(Camera).
protected OnRender ( Engine.Camera camera ) : void
camera Engine.Camera
Résultat void

OnRenderFrame() protected méthode

protected OnRenderFrame ( ) : void
Résultat void

OnTick() protected méthode

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

Server_OnClientConnectedAfterPostCreate() protected méthode

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

SetIntellect() public méthode

public SetIntellect ( Intellect value, bool shouldDeleteAfterDetach ) : void
value Intellect
shouldDeleteAfterDetach bool
Résultat void

Unit() public méthode

public Unit ( ) : System
Résultat System