C# Class GameEntities.Intellect

This takes the form of either AI (Artificial Intelligence) or player control over a unit .

There is inherit AI base base for an computer-controlled intellect. For example, there is the GameCharacterAI class which is designed for the management of a game character.

Control by a live player (PlayerIntellect) is achieved through the commands of pressed keys or the mouse for control of the unit or turret.

Inheritance: Entity
ファイルを表示 Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
Client_ReceiveControlledObject void
ResetControlKeys void
Server_SendControlledObjectToClients void

Public Methods

Method Description
DoControlledObjectRender ( Engine.Camera camera ) : void
DoControlledObjectRenderFrame ( ) : void
GetControlKeyStrength ( GameControlKeys key ) : float
Intellect ( ) : System
IsActive ( ) : bool
IsControlKeyPressed ( GameControlKeys key ) : bool

Protected Methods

Method Description
ControlKeyPress ( GameControlKeys controlKey, float strength ) : void
ControlKeyRelease ( GameControlKeys controlKey ) : void
OnControlledObjectChange ( Unit oldObject ) : void
OnControlledObjectRender ( Engine.Camera camera ) : void
OnControlledObjectRenderFrame ( ) : void
OnDestroy ( ) : void
OnRelatedEntityDelete ( Entity entity ) : void

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

Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceiveControlledObject ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
ResetControlKeys ( ) : void
Server_SendControlledObjectToClients ( IList remoteEntityWorlds ) : void

Method Details

ControlKeyPress() protected method

protected ControlKeyPress ( GameControlKeys controlKey, float strength ) : void
controlKey GameControlKeys
strength float
return void

ControlKeyRelease() protected method

protected ControlKeyRelease ( GameControlKeys controlKey ) : void
controlKey GameControlKeys
return void

DoControlledObjectRender() public method

public DoControlledObjectRender ( Engine.Camera camera ) : void
camera Engine.Camera
return void

DoControlledObjectRenderFrame() public method

public DoControlledObjectRenderFrame ( ) : void
return void

GetControlKeyStrength() public method

public GetControlKeyStrength ( GameControlKeys key ) : float
key GameControlKeys
return float

Intellect() public method

public Intellect ( ) : System
return System

IsActive() public method

public IsActive ( ) : bool
return bool

IsControlKeyPressed() public method

public IsControlKeyPressed ( GameControlKeys key ) : bool
key GameControlKeys
return bool

OnControlledObjectChange() protected method

protected OnControlledObjectChange ( Unit oldObject ) : void
oldObject Unit
return void

OnControlledObjectRender() protected method

protected OnControlledObjectRender ( Engine.Camera camera ) : void
camera Engine.Camera
return void

OnControlledObjectRenderFrame() protected method

protected OnControlledObjectRenderFrame ( ) : void
return void

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

OnRelatedEntityDelete() protected method

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

Server_OnClientConnectedBeforePostCreate() protected method

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