C# 클래스 PathfindingTest.UI.Menus.Multiplayer.GameLobby

상속: XNAInterfaceComponents.Components.XNAPanel
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2

공개 프로퍼티들

프로퍼티 타입 설명
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