C# Class PathfindingTest.UI.Menus.Multiplayer.MultiplayerLobby

Inheritance: XNAInterfaceComponents.Components.XNAPanel
Mostra file Open project: Wotuu/RTS_XNA_v2

Public Properties

Property Type Description
gameList CustomArrayList

Private Properties

Property Type Description

Public Methods

Method Description
AddGame ( MultiplayerGame toAdd ) : void

Adds a game to the lobby list

AddMessageToLog ( String message ) : void

Adds a message to the log.

AddUser ( SocketLibrary.Users.User toAdd ) : void

Adds a user to the user log.

CreateGame ( XNAButton source ) : void

User entered a game name and pressed OK

CreateGameBtnClicked ( XNAButton source ) : void

User wants to create a game.

DisconnectBtnClicked ( XNAButton source ) : void

The user wants to disconnect.

GetGameByID ( int gameID ) : MultiplayerGame

Gets a game by ID.

GetGameDisplayPanelByIndex ( int index ) : GameDisplayPanel

Gets a display panel by index.

MultiplayerLobby ( ) : System
OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void

User pressed a key in the message textfield.

RemoveGame ( MultiplayerGame toRemove ) : void

Removes a game from the game list.

RemoveGameByID ( int id ) : void

Removes a game by game ID.

RemoveUser ( SocketLibrary.Users.User toRemove ) : void

Removes a user from the list.

Unload ( ) : void

Method Details

AddGame() public method

Adds a game to the lobby list
public AddGame ( MultiplayerGame toAdd ) : void
toAdd SocketLibrary.Multiplayer.MultiplayerGame The game to add
return void

AddMessageToLog() public method

Adds a message to the log.
public AddMessageToLog ( String message ) : void
message String The message to add
return void

AddUser() public method

Adds a user to the user log.
public AddUser ( SocketLibrary.Users.User toAdd ) : void
toAdd SocketLibrary.Users.User
return void

CreateGame() public method

User entered a game name and pressed OK
public CreateGame ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton The source
return void

CreateGameBtnClicked() public method

User wants to create a game.
public CreateGameBtnClicked ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton Bla
return void

DisconnectBtnClicked() public method

The user wants to disconnect.
public DisconnectBtnClicked ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton
return void

GetGameByID() public method

Gets a game by ID.
public GetGameByID ( int gameID ) : MultiplayerGame
gameID int The game ID.
return SocketLibrary.Multiplayer.MultiplayerGame

GetGameDisplayPanelByIndex() public method

Gets a display panel by index.
public GetGameDisplayPanelByIndex ( int index ) : GameDisplayPanel
index int The index.
return PathfindingTest.UI.Menus.Multiplayer.Panels.GameDisplayPanel

MultiplayerLobby() public method

public MultiplayerLobby ( ) : System
return System

OnKeyPressed() public method

User pressed a key in the message textfield.
public OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent The event
return void

RemoveGame() public method

Removes a game from the game list.
public RemoveGame ( MultiplayerGame toRemove ) : void
toRemove SocketLibrary.Multiplayer.MultiplayerGame What game to remove!
return void

RemoveGameByID() public method

Removes a game by game ID.
public RemoveGameByID ( int id ) : void
id int The game ID to remove.
return void

RemoveUser() public method

Removes a user from the list.
public RemoveUser ( SocketLibrary.Users.User toRemove ) : void
toRemove SocketLibrary.Users.User
return void

Unload() public method

public Unload ( ) : void
return void

Property Details

gameList public_oe property

public CustomArrayList gameList
return CustomArrayList