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

Inheritance: Session
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
NotifyServerSynchronizationDoneOnClient ( ) : void

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

Private Methods

Méthode Description
ChangeSessionStateRequest ( SessionState newStatus ) : void

Method Details

EndSession() public méthode

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

ExecuteCommandOnServer() public méthode

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
Résultat void

ExecuteServerCommandOnClients() public méthode

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
Résultat void

ListenIncoming() public méthode

Listens to all data received from the network interface
public ListenIncoming ( ) : void
Résultat void

NotifyServerSynchronizationDoneOnClient() protected méthode

Notifies the server that the synchronization with the server is performed locally
protected NotifyServerSynchronizationDoneOnClient ( ) : void
Résultat void

OnClosed() public méthode

public OnClosed ( ) : void
Résultat void

StartSession() public méthode

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

SynchronizeCommandOnClients() public méthode

public SynchronizeCommandOnClients ( Command command ) : void
command Indiefreaks.Xna.Logic.Command
Résultat void

SynchronizeSceneEntitiesOnClients() public méthode

public SynchronizeSceneEntitiesOnClients ( ISceneEntity sceneEntity ) : void
sceneEntity ISceneEntity
Résultat void

Update() public méthode

Update loop call
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void