C# Class GameEntities.Unit

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

Private Properties

Property Type Description
Client_ReceiveIntellect void
CreateInitialAI void
Server_SendIntellectToClients void
TickTakeItems void

Public Methods

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

Protected Methods

Method 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

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

Method Details

DoIntellectCommand() public method

public DoIntellectCommand ( Intellect command ) : void
command Intellect
return void

GetRootUnitFaction() public method

public GetRootUnitFaction ( ) : FactionType
return FactionType

OnCreateInfluence() protected method

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

OnIntellectCommand() protected method

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

OnRelatedEntityDelete() protected method

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

OnRemoveChild() protected method

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

OnRender() protected method

Overridden from Engine.MapSystem.MapObject.OnRender(Camera).
protected OnRender ( Engine.Camera camera ) : void
camera Engine.Camera
return void

OnRenderFrame() protected method

protected OnRenderFrame ( ) : void
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

SetIntellect() public method

public SetIntellect ( Intellect value, bool shouldDeleteAfterDetach ) : void
value Intellect
shouldDeleteAfterDetach bool
return void

Unit() public method

public Unit ( ) : System
return System