C# 클래스 GameEntities.JigsawPuzzleManager

The pieces manager for puzzle game example.
상속: MapGeneralObject
파일 보기 프로젝트 열기: DarrenHassan/GDM4242-GroupD 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Client_ReceivePieceCount void
CreateBackgroundImageMeshObject void
DestroyBackgroundImageMeshObject void
ServerOrSingle_CreatePiece void
ServerOrSingle_DestroyPuzzles void
ServerOrSingle_GeneratePuzzles void
ServerOrSingle_SetPieceCount void
Server_SendPieceCountToClients void

공개 메소드들

메소드 설명
GetDestinationArea ( ) : Engine.Rect
GetGameArea ( ) : Engine.Rect
GetPieceDestinationPosition ( Vec2i index ) : Vec2
JigsawPuzzleManager ( ) : System

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

GetDestinationArea() 공개 메소드

public GetDestinationArea ( ) : Engine.Rect
리턴 Engine.Rect

GetGameArea() 공개 메소드

public GetGameArea ( ) : Engine.Rect
리턴 Engine.Rect

GetPieceDestinationPosition() 공개 메소드

public GetPieceDestinationPosition ( Vec2i index ) : Vec2
index Vec2i
리턴 Vec2

JigsawPuzzleManager() 공개 메소드

public JigsawPuzzleManager ( ) : System
리턴 System

OnDestroy() 보호된 메소드

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

OnPostCreate() 보호된 메소드

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

OnRender() 보호된 메소드

protected OnRender ( Engine.Camera camera ) : void
camera Engine.Camera
리턴 void

Server_OnClientConnectedBeforePostCreate() 보호된 메소드

protected Server_OnClientConnectedBeforePostCreate ( RemoteEntityWorld remoteEntityWorld ) : void
remoteEntityWorld RemoteEntityWorld
리턴 void