C# Class Fusion.Engine.Common.UserInterface

Inheritance: GameModule
Mostra file Open project: demiurghg/FusionEngine

Public Methods

Method Description
DiscoveryResponse ( IPEndPoint endPoint, string serverInfo ) : void

This method called each time when discovery responce arrived.

IsDiscoveryRunning ( ) : bool

Indicates that discovery in progress.

RequestToExit ( ) : void

Called when user tries to close program using Alt-F4 or from windows menu.

StartDiscovery ( int numPorts, System.TimeSpan timeout ) : void

Starts server discovery.

StopDiscovery ( ) : void

Stops server discovery.

Update ( GameTime gameTime ) : void

Called when the game has determined that UI logic needs to be processed.

UserInterface ( Game Game ) : System

Creates instance of UserInterface

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Overloaded. Immediately releases the unmanaged resources used by this object.

Private Methods

Method Description
DispatchIM ( NetClient client ) : void

IsDiscoveryRunningInternal ( ) : bool

StartDiscoveryInternal ( int numPorts, System.TimeSpan timeout ) : void

StopDiscoveryInternal ( ) : void

UpdateInternal ( GameTime gameTime ) : void

Method Details

DiscoveryResponse() public abstract method

This method called each time when discovery responce arrived.
public abstract DiscoveryResponse ( IPEndPoint endPoint, string serverInfo ) : void
endPoint System.Net.IPEndPoint
serverInfo string
return void

Dispose() protected method

Overloaded. Immediately releases the unmanaged resources used by this object.
protected Dispose ( bool disposing ) : void
disposing bool
return void

IsDiscoveryRunning() public method

Indicates that discovery in progress.
public IsDiscoveryRunning ( ) : bool
return bool

RequestToExit() public abstract method

Called when user tries to close program using Alt-F4 or from windows menu.
public abstract RequestToExit ( ) : void
return void

StartDiscovery() public method

Starts server discovery.
public StartDiscovery ( int numPorts, System.TimeSpan timeout ) : void
numPorts int Number of ports to scan.
timeout System.TimeSpan Time to scan.
return void

StopDiscovery() public method

Stops server discovery.
public StopDiscovery ( ) : void
return void

Update() public abstract method

Called when the game has determined that UI logic needs to be processed.
public abstract Update ( GameTime gameTime ) : void
gameTime GameTime
return void

UserInterface() public method

Creates instance of UserInterface
public UserInterface ( Game Game ) : System
Game Game
return System