C# Класс PathfindingTest.UI.Menus.Multiplayer.GameLobby

Наследование: XNAInterfaceComponents.Components.XNAPanel
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
userDisplayPanels CustomArrayList

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
AddMessageToLog ( String message ) : void

Adds a message to the log.

GameLobby ( ) : System
GetDisplayPanel ( int index ) : UserDisplayPanel

Gets a user display panel by index.

GetDisplayPanelByUserId ( int userID ) : UserDisplayPanel

Gets a display panel by user ID.

GetDisplayPanelCount ( ) : int

Gets the amount of display panels in this lobby.

GetDisplayPanelIndexByUserID ( int userID ) : int

Gets the index of a dispaly panel by user.

IsCurrentUserHost ( ) : System.Boolean

Checks whether the current user is host or not.

IsFull ( ) : System.Boolean

Whether the game is full or not.

LeaveGame ( XNAButton source ) : void

Leave the game.

OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void

User pressed a key in the message textfield.

StartGame ( XNAButton source ) : void

Pressed the start game button!

UserExists ( SocketLibrary.Users.User user ) : System.Boolean

Checks whether the user exists in this lobby.

UserExists ( int userID ) : System.Boolean

Checks whether the user exists in this lobby.

UserJoined ( SocketLibrary.Users.User user ) : void

When a player joined, call this one.

UserLeft ( SocketLibrary.Users.User user ) : void

Call this when a player left.

Описание методов

AddMessageToLog() публичный Метод

Adds a message to the log.
public AddMessageToLog ( String message ) : void
message String The message to add
Результат void

GameLobby() публичный Метод

public GameLobby ( ) : System
Результат System

GetDisplayPanel() публичный Метод

Gets a user display panel by index.
public GetDisplayPanel ( int index ) : UserDisplayPanel
index int The index to get.
Результат PathfindingTest.UI.Menus.Multiplayer.Panels.UserDisplayPanel

GetDisplayPanelByUserId() публичный Метод

Gets a display panel by user ID.
public GetDisplayPanelByUserId ( int userID ) : UserDisplayPanel
userID int The user ID to get the panel from.
Результат PathfindingTest.UI.Menus.Multiplayer.Panels.UserDisplayPanel

GetDisplayPanelCount() публичный Метод

Gets the amount of display panels in this lobby.
public GetDisplayPanelCount ( ) : int
Результат int

GetDisplayPanelIndexByUserID() публичный Метод

Gets the index of a dispaly panel by user.
public GetDisplayPanelIndexByUserID ( int userID ) : int
userID int The user id
Результат int

IsCurrentUserHost() публичный Метод

Checks whether the current user is host or not.
public IsCurrentUserHost ( ) : System.Boolean
Результат System.Boolean

IsFull() публичный Метод

Whether the game is full or not.
public IsFull ( ) : System.Boolean
Результат System.Boolean

LeaveGame() публичный Метод

Leave the game.
public LeaveGame ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton The button source
Результат void

OnKeyPressed() публичный Метод

User pressed a key in the message textfield.
public OnKeyPressed ( XNAInputLibrary.KeyboardInput.KeyEvent e ) : void
e XNAInputLibrary.KeyboardInput.KeyEvent The event
Результат void

StartGame() публичный Метод

Pressed the start game button!
public StartGame ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton
Результат void

UserExists() публичный Метод

Checks whether the user exists in this lobby.
public UserExists ( SocketLibrary.Users.User user ) : System.Boolean
user SocketLibrary.Users.User The user to check
Результат System.Boolean

UserExists() публичный Метод

Checks whether the user exists in this lobby.
public UserExists ( int userID ) : System.Boolean
userID int
Результат System.Boolean

UserJoined() публичный Метод

When a player joined, call this one.
public UserJoined ( SocketLibrary.Users.User user ) : void
user SocketLibrary.Users.User The user that joined.
Результат void

UserLeft() публичный Метод

Call this when a player left.
public UserLeft ( SocketLibrary.Users.User user ) : void
user SocketLibrary.Users.User The user that left.
Результат void

Описание свойств

userDisplayPanels публичное свойство

public CustomArrayList userDisplayPanels
Результат CustomArrayList