C# Class EssenceShared.Scenes.GameLayer

Inheritance: CocosSharp.CCLayer
Show file Open project: Insality/essence-of-shadows

Public Properties

Property Type Description
Entities List
Location Locations
MyAccountState AccountState
currentMap List

Public Methods

Method Description
AddEntity ( Entity e ) : void
AddEntity ( EntityState es, AccountState accState = null ) : void
AppendGameState ( GameState gs, string playerId ) : void
CreateNewMap ( List tileMap ) : void
DeserializeMap ( string jsonMap ) : void
FindEntityById ( string id ) : Entity
MapSize ( ) : CCSize
RemoveChild ( CCNode child, bool cleanup = true ) : void
SerializeMap ( ) : string
TileAt ( int x, int y ) : string
Update ( float dt ) : void
UpdateEntity ( EntityState es ) : void

Private Methods

Method Description
UpdateCollisions ( ) : void

Method Details

AddEntity() public method

public AddEntity ( Entity e ) : void
e Entity
return void

AddEntity() public method

public AddEntity ( EntityState es, AccountState accState = null ) : void
es EntityState
accState AccountState
return void

AppendGameState() public method

public AppendGameState ( GameState gs, string playerId ) : void
gs GameState
playerId string
return void

CreateNewMap() public method

public CreateNewMap ( List tileMap ) : void
tileMap List
return void

DeserializeMap() public method

public DeserializeMap ( string jsonMap ) : void
jsonMap string
return void

FindEntityById() public method

public FindEntityById ( string id ) : Entity
id string
return Entity

MapSize() public method

public MapSize ( ) : CCSize
return CCSize

RemoveChild() public method

public RemoveChild ( CCNode child, bool cleanup = true ) : void
child CCNode
cleanup bool
return void

SerializeMap() public method

public SerializeMap ( ) : string
return string

TileAt() public method

public TileAt ( int x, int y ) : string
x int
y int
return string

Update() public method

public Update ( float dt ) : void
dt float
return void

UpdateEntity() public method

public UpdateEntity ( EntityState es ) : void
es EntityState
return void

Property Details

Entities public property

public List Entities
return List

Location public property

public Locations Location
return Locations

MyAccountState public property

public AccountState MyAccountState
return AccountState

currentMap public property

public List currentMap
return List