C# 클래스 Mooege.Core.GS.Games.Game

상속: IMessageConsumer
파일 보기 프로젝트 열기: xsochor/mooege 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PlayerIndexCounter int
TickRate int
UpdateFrequency int

공개 메소드들

메소드 설명
AddWorld ( Mooege.Core.GS.Map.World world ) : void
Consume ( Mooege.Net.GS.GameClient client, GameMessage message ) : void
EndTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : void
Enter ( Player joinedPlayer ) : void

Allows a player to join the game.

Game ( int gameId ) : System

Creates a new game with given gameId.

GetObject ( uint dynamicID ) : Mooege.Core.GS.Objects.DynamicObject
GetWorld ( int worldSNO ) : Mooege.Core.GS.Map.World
IsTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : bool
IsTracking ( uint dynamicID ) : bool
RemoveWorld ( Mooege.Core.GS.Map.World world ) : void
Route ( Mooege.Net.GS.GameClient client, GameMessage message ) : void

Routers incoming GameMessage to it's proper consumer.

StartTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : void
Update ( ) : void

The main game loop.

WorldExists ( int worldSNO ) : bool

비공개 메소드들

메소드 설명
SendNewPlayerMessage ( Player target, Player joinedPlayer ) : void

Sends NewPlayerMessage to players when a new player joins the game.

메소드 상세

AddWorld() 공개 메소드

public AddWorld ( Mooege.Core.GS.Map.World world ) : void
world Mooege.Core.GS.Map.World
리턴 void

Consume() 공개 메소드

public Consume ( Mooege.Net.GS.GameClient client, GameMessage message ) : void
client Mooege.Net.GS.GameClient
message GameMessage
리턴 void

EndTracking() 공개 메소드

public EndTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : void
obj Mooege.Core.GS.Objects.DynamicObject
리턴 void

Enter() 공개 메소드

Allows a player to join the game.
public Enter ( Player joinedPlayer ) : void
joinedPlayer Player The new player.
리턴 void

Game() 공개 메소드

Creates a new game with given gameId.
public Game ( int gameId ) : System
gameId int
리턴 System

GetObject() 공개 메소드

public GetObject ( uint dynamicID ) : Mooege.Core.GS.Objects.DynamicObject
dynamicID uint
리턴 Mooege.Core.GS.Objects.DynamicObject

GetWorld() 공개 메소드

public GetWorld ( int worldSNO ) : Mooege.Core.GS.Map.World
worldSNO int
리턴 Mooege.Core.GS.Map.World

IsTracking() 공개 메소드

public IsTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : bool
obj Mooege.Core.GS.Objects.DynamicObject
리턴 bool

IsTracking() 공개 메소드

public IsTracking ( uint dynamicID ) : bool
dynamicID uint
리턴 bool

RemoveWorld() 공개 메소드

public RemoveWorld ( Mooege.Core.GS.Map.World world ) : void
world Mooege.Core.GS.Map.World
리턴 void

Route() 공개 메소드

Routers incoming GameMessage to it's proper consumer.
public Route ( Mooege.Net.GS.GameClient client, GameMessage message ) : void
client Mooege.Net.GS.GameClient
message GameMessage
리턴 void

StartTracking() 공개 메소드

public StartTracking ( Mooege.Core.GS.Objects.DynamicObject obj ) : void
obj Mooege.Core.GS.Objects.DynamicObject
리턴 void

Update() 공개 메소드

The main game loop.
public Update ( ) : void
리턴 void

WorldExists() 공개 메소드

public WorldExists ( int worldSNO ) : bool
worldSNO int
리턴 bool

프로퍼티 상세

PlayerIndexCounter 공개적으로 프로퍼티

Player index counter.
public int PlayerIndexCounter
리턴 int

TickRate 공개적으로 프로퍼티

Incremented tick value on each Game.Update().
public int TickRate
리턴 int

UpdateFrequency 공개적으로 프로퍼티

Update frequency for the game - 100 ms.
public int UpdateFrequency
리턴 int