C# 클래스 SocketLibrary.Multiplayer.MultiplayerGame

파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 메소드들

메소드 설명
AddUser ( SocketLibrary.Users.User user ) : void

Adds a user to this game.

GetUser ( int index ) : SocketLibrary.Users.User

Gets a user at an index.

GetUserByID ( int userID ) : SocketLibrary.Users.User

Gets a user by its ID.

GetUserCount ( ) : int

Gets the amount of users in this multiplayer game.

MultiplayerGame ( int gameID, String gamename, String mapname ) : System
RemoveUser ( SocketLibrary.Users.User user ) : void

Removes a user from the list.

메소드 상세

AddUser() 공개 메소드

Adds a user to this game.
public AddUser ( SocketLibrary.Users.User user ) : void
user SocketLibrary.Users.User The user to add
리턴 void

GetUser() 공개 메소드

Gets a user at an index.
public GetUser ( int index ) : SocketLibrary.Users.User
index int The index.
리턴 SocketLibrary.Users.User

GetUserByID() 공개 메소드

Gets a user by its ID.
public GetUserByID ( int userID ) : SocketLibrary.Users.User
userID int The ID of the user.
리턴 SocketLibrary.Users.User

GetUserCount() 공개 메소드

Gets the amount of users in this multiplayer game.
public GetUserCount ( ) : int
리턴 int

MultiplayerGame() 공개 메소드

public MultiplayerGame ( int gameID, String gamename, String mapname ) : System
gameID int
gamename String
mapname String
리턴 System

RemoveUser() 공개 메소드

Removes a user from the list.
public RemoveUser ( SocketLibrary.Users.User user ) : void
user SocketLibrary.Users.User The user to remove.
리턴 void