C# Class GameEntities.JigsawPuzzleManager

The pieces manager for puzzle game example.
Inheritance: MapGeneralObject
ファイルを表示 Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Private Properties

Property Type Description
Client_ReceivePieceCount void
CreateBackgroundImageMeshObject void
DestroyBackgroundImageMeshObject void
ServerOrSingle_CreatePiece void
ServerOrSingle_DestroyPuzzles void
ServerOrSingle_GeneratePuzzles void
ServerOrSingle_SetPieceCount void
Server_SendPieceCountToClients void

Public Methods

Method Description
GetDestinationArea ( ) : Engine.Rect
GetGameArea ( ) : Engine.Rect
GetPieceDestinationPosition ( Vec2i index ) : Vec2
JigsawPuzzleManager ( ) : System

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
Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void

Private Methods

Method Description
Client_ReceivePieceCount ( RemoteEntityWorld sender, ReceiveDataReader reader ) : void
CreateBackgroundImageMeshObject ( ) : void
DestroyBackgroundImageMeshObject ( ) : void
ServerOrSingle_CreatePiece ( Vec2i index ) : void
ServerOrSingle_DestroyPuzzles ( ) : void
ServerOrSingle_GeneratePuzzles ( Vec2i pieceCount ) : void
ServerOrSingle_SetPieceCount ( Vec2i pieceCount ) : void
Server_SendPieceCountToClients ( IList remoteEntityWorlds ) : void

Method Details

GetDestinationArea() public method

public GetDestinationArea ( ) : Engine.Rect
return Engine.Rect

GetGameArea() public method

public GetGameArea ( ) : Engine.Rect
return Engine.Rect

GetPieceDestinationPosition() public method

public GetPieceDestinationPosition ( Vec2i index ) : Vec2
index Vec2i
return Vec2

JigsawPuzzleManager() public method

public JigsawPuzzleManager ( ) : System
return System

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

Server_OnClientConnectedBeforePostCreate() protected method

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