C# Class GameEntities.Item

Items which can be picked up by units. Med-kits, weapons, ammunition.
Inheritance: Dynamic
Datei anzeigen Open project: DarrenHassan/GDM4242-GroupD

Public Methods

Method Description
Item ( ) : System
Take ( Unit unit ) : bool

Protected Methods

Method Description
Client_OnTick ( ) : void
OnCreate ( ) : void
OnPostCreate ( bool loaded ) : void

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

OnPreCreate ( ) : void
OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
OnTake ( Unit unit ) : bool
OnTick ( ) : void

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

Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceiveSoundPlayTake ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveUpdatePosition ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Server_SendPositionToAllClients ( ) : void
Server_SendPositionToNewClient ( RemoteEntityWorld remoteEntityWorld ) : void
Server_SendSoundPlayTakeToAllClients ( ) : void
UpdateRotation ( ) : void

Method Details

Client_OnTick() protected method

protected Client_OnTick ( ) : void
return void

Item() public method

public Item ( ) : System
return System

OnCreate() protected method

protected OnCreate ( ) : void
return void

OnPostCreate() protected method

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
return void

OnPreCreate() protected method

protected OnPreCreate ( ) : void
return void

OnSetTransform() protected method

protected OnSetTransform ( Vec3 &pos, Quat &rot, Vec3 &scl ) : void
pos Vec3
rot Quat
scl Vec3
return void

OnTake() protected method

protected OnTake ( Unit unit ) : bool
unit Unit
return bool

OnTick() protected method

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

Server_OnClientConnectedBeforePostCreate() protected method

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

Take() public method

public Take ( Unit unit ) : bool
unit Unit
return bool