C# Class SocketLibrary.Multiplayer.MultiplayerGame

Exibir arquivo Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Methods

Method Description
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.

Method Details

AddUser() public method

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

GetUser() public method

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

GetUserByID() public method

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

GetUserCount() public method

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

MultiplayerGame() public method

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

RemoveUser() public method

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