C# Class Indiefreaks.Xna.Sessions.Local.LocalSession

Inheritance: Session
Show file Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
EndSession ( ) : void

Ends the Session and changes its SessionState from Playing to Ended

ExecuteCommandOnServer ( Command command ) : void

Asks the Session to send a remote command call on the session host

ExecuteServerCommandOnClients ( Command command ) : void

Asks the Session to send a remote command call on all session clients

ListenIncoming ( ) : void

Listens to all data received from the network interface

OnClosed ( ) : void
StartSession ( ) : void

Starts the Session and changes its SessionState from Lobby to Playing

SynchronizeCommandOnClients ( Command command ) : void
SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void
Update ( GameTime gameTime ) : void

Update loop call

Protected Methods

Method Description
NotifyServerSynchronizationDoneOnClient ( ) : void

Notifies the server that the synchronization with the server is performed locally

Private Methods

Method Description
ChangeSessionStateRequest ( SessionState newStatus ) : void

Method Details

EndSession() public method

Ends the Session and changes its SessionState from Playing to Ended
public EndSession ( ) : void
return void

ExecuteCommandOnServer() public method

Asks the Session to send a remote command call on the session host
public ExecuteCommandOnServer ( Command command ) : void
command Indiefreaks.Xna.Logic.Command The command that should be executed
return void

ExecuteServerCommandOnClients() public method

Asks the Session to send a remote command call on all session clients
public ExecuteServerCommandOnClients ( Command command ) : void
command Indiefreaks.Xna.Logic.Command The command that should be executed
return void

ListenIncoming() public method

Listens to all data received from the network interface
public ListenIncoming ( ) : void
return void

NotifyServerSynchronizationDoneOnClient() protected method

Notifies the server that the synchronization with the server is performed locally
protected NotifyServerSynchronizationDoneOnClient ( ) : void
return void

OnClosed() public method

public OnClosed ( ) : void
return void

StartSession() public method

Starts the Session and changes its SessionState from Lobby to Playing
public StartSession ( ) : void
return void

SynchronizeCommandOnClients() public method

public SynchronizeCommandOnClients ( Command command ) : void
command Indiefreaks.Xna.Logic.Command
return void

SynchronizeSceneEntitiesOnClients() public method

public SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void
sceneEntity ISceneEntity
return void

Update() public method

Update loop call
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void