C# Class GameEntities.PlayerCharacter

Inheritance: GameCharacter
显示文件 Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
Client_ReceiveActiveWeapon void
Client_ReceiveContusionTimeRemaining void
Client_ReceiveWeaponVerticalAngle void
CreateActiveWeaponAttachedObject void
GetActiveWeapon int
Server_SendContusionTimeRemainingToClients void
Server_SendSetActiveWeaponToClients void
Server_SendWeaponVerticalAngleToClients void
Server_TickSendWeaponVerticalAngleToClients void
SetActiveNextWeapon void
SetActivePreviousWeapon void
TickContusionTime void
UpdateTPSArcadeLookDirection void
WeaponTryFire void
WeaponTryReload void
activeWeapon_PreFire void

Public Methods

Method Description
ApplyChangeMapInformation ( ChangeMapInformation information, SpawnPoint spawnPoint ) : void
GetChangeMapInformation ( MapChangeRegion region ) : ChangeMapInformation
GetWeaponIndex ( WeaponType weaponType ) : int
SetActiveWeapon ( int index ) : bool
TakeBullets ( BulletType bulletType, int count ) : bool
TakeWeapon ( WeaponType weaponType ) : bool

Protected Methods

Method Description
Client_OnTick ( ) : void
OnCopyTransform ( MapObject from ) : void
OnIntellectCommand ( Intellect command ) : void
OnPostCreate ( bool loaded ) : void

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

OnRelatedEntityDelete ( Entity entity ) : void

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

OnRender ( Engine.Camera camera ) : void

Overridden from Engine.MapSystem.MapObject.OnRender(Camera).

OnTick ( ) : void

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

Server_OnClientConnectedAfterPostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceiveActiveWeapon ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveContusionTimeRemaining ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceiveWeaponVerticalAngle ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
CreateActiveWeaponAttachedObject ( ) : void
GetActiveWeapon ( ) : int
Server_SendContusionTimeRemainingToClients ( IList remoteEntityWorlds ) : void
Server_SendSetActiveWeaponToClients ( IList remoteEntityWorlds ) : void
Server_SendWeaponVerticalAngleToClients ( IList remoteEntityWorlds, float angle ) : void
Server_TickSendWeaponVerticalAngleToClients ( ) : void
SetActiveNextWeapon ( ) : void
SetActivePreviousWeapon ( ) : void
TickContusionTime ( ) : void
UpdateTPSArcadeLookDirection ( ) : void
WeaponTryFire ( bool alternative ) : void
WeaponTryReload ( ) : void
activeWeapon_PreFire ( Weapon entity, bool alternative ) : void

Method Details

ApplyChangeMapInformation() public method

public ApplyChangeMapInformation ( ChangeMapInformation information, SpawnPoint spawnPoint ) : void
information ChangeMapInformation
spawnPoint SpawnPoint
return void

Client_OnTick() protected method

protected Client_OnTick ( ) : void
return void

GetChangeMapInformation() public method

public GetChangeMapInformation ( MapChangeRegion region ) : ChangeMapInformation
region MapChangeRegion
return ChangeMapInformation

GetWeaponIndex() public method

public GetWeaponIndex ( WeaponType weaponType ) : int
weaponType WeaponType
return int

OnCopyTransform() protected method

protected OnCopyTransform ( MapObject from ) : void
from MapObject
return void

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

OnRelatedEntityDelete() protected method

Overridden from Engine.EntitySystem.Entity.OnRelatedEntityDelete(Entity)
protected OnRelatedEntityDelete ( 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

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

SetActiveWeapon() public method

public SetActiveWeapon ( int index ) : bool
index int
return bool

TakeBullets() public method

public TakeBullets ( BulletType bulletType, int count ) : bool
bulletType BulletType
count int
return bool

TakeWeapon() public method

public TakeWeapon ( WeaponType weaponType ) : bool
weaponType WeaponType
return bool