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

Private Properties

Свойство Type Description
Client_ReceiveTurnToPosition void
GunsTryFire void
MomentaryTurnToPositionUpdate void
Server_SendTurnToPositionToClients void

Méthodes publiques

Méthode Description
SetMomentaryTurnToPosition ( Vec3 pos ) : void

Méthodes protégées

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

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

protected OnIntellectCommand ( Intellect command ) : void
command Intellect
Résultat void

OnPostCreate() protected méthode

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

SetMomentaryTurnToPosition() public méthode

public SetMomentaryTurnToPosition ( Vec3 pos ) : void
pos Vec3
Résultat void