C# Class GameEntities.WaterPlane

Inheritance: MapGeneralObject
Datei anzeigen Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
Client_ReceiveCreateSplash void
Client_ReceivePropertiesToClient void
CreatePlane void
CreateReflectionTexture void
CreateVolumeBody void
DestroyPlane void
DestroyReflectionTexture void
DestroyVolumeBody void
GetRequiredReflectionTextureSize Vec2i
GetShapeInfluenceDensity float
GetSphereSubmergedCoef SubmergedCheckItem
GetSplashItemsByType GameEntities.WaterPlaneType.SplashItem[]
RenderSystem_RenderSystemEvent void
Server_SendCreateSplashToAllClients void
Server_SendPropertiesToClients void
UpdateBodiesSplashOffTime void

Public Methods

Method Description
CreateSplash ( WaterPlaneType splashType, Vec3 pos ) : void
GetWaterPlaneByBody ( Body body ) : WaterPlane
TickPhysicsInfluence ( bool allowSplashes ) : void

Protected Methods

Method Description
OnDestroy ( ) : void

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

OnPostCreate ( bool loaded ) : void

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

OnRender ( Engine.Camera camera ) : void
OnRenderFrame ( ) : void
OnTick ( ) : void
Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceiveCreateSplash ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
Client_ReceivePropertiesToClient ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
CreatePlane ( ) : void
CreateReflectionTexture ( ) : void
CreateVolumeBody ( ) : void
DestroyPlane ( ) : void
DestroyReflectionTexture ( ) : void
DestroyVolumeBody ( ) : void
GetRequiredReflectionTextureSize ( ) : Vec2i
GetShapeInfluenceDensity ( Shape shape ) : float
GetSphereSubmergedCoef ( Sphere sphere ) : SubmergedCheckItem
GetSplashItemsByType ( WaterPlaneType splashType ) : GameEntities.WaterPlaneType.SplashItem[]
RenderSystem_RenderSystemEvent ( RenderSystemEvents name ) : void
Server_SendCreateSplashToAllClients ( WaterPlaneType splashType, Vec3 pos ) : void
Server_SendPropertiesToClients ( IList remoteEntityWorlds ) : void
UpdateBodiesSplashOffTime ( ) : void

Method Details

CreateSplash() public method

public CreateSplash ( WaterPlaneType splashType, Vec3 pos ) : void
splashType WaterPlaneType
pos Vec3
return void

GetWaterPlaneByBody() public static method

public static GetWaterPlaneByBody ( Body body ) : WaterPlane
body Body
return WaterPlane

OnDestroy() protected method

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

OnPostCreate() protected method

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

OnRender() protected method

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

OnRenderFrame() protected method

protected OnRenderFrame ( ) : void
return void

OnTick() protected method

protected OnTick ( ) : void
return void

Server_OnClientConnectedBeforePostCreate() protected method

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

TickPhysicsInfluence() public method

public TickPhysicsInfluence ( bool allowSplashes ) : void
allowSplashes bool
return void