C# Class GameEntities.Turret

Gives an opportunity of creation of the turrets. A turret can be rotated. Guns are attached on the tower and player can control the aiming and shooting of the turret.
Inheritance: Unit
Exibir arquivo Open project: DarrenHassan/GDM4242-GroupD

Private Properties

Property Type Description
Client_ReceiveTurnToPosition void
GunsTryFire void
MomentaryTurnToPositionUpdate void
Server_SendTurnToPositionToClients void

Public Methods

Method Description
SetMomentaryTurnToPosition ( Vec3 pos ) : void

Protected Methods

Method Description
OnIntellectCommand ( Intellect command ) : void
OnPostCreate ( bool loaded ) : void

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

OnTick ( ) : void

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

Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceiveTurnToPosition ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
GunsTryFire ( bool alternative ) : void
MomentaryTurnToPositionUpdate ( Vec3 turnToPosition ) : void
Server_SendTurnToPositionToClients ( IList remoteEntityWorlds, Vec3 turnToPosition ) : void

Method Details

OnIntellectCommand() protected method

protected OnIntellectCommand ( Intellect command ) : void
command Intellect
return void

OnPostCreate() protected method

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
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

SetMomentaryTurnToPosition() public method

public SetMomentaryTurnToPosition ( Vec3 pos ) : void
pos Vec3
return void