C# Class SocketLibrary.Multiplayer.MultiplayerGame

Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetUser() public méthode

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

GetUserByID() public méthode

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

GetUserCount() public méthode

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

MultiplayerGame() public méthode

public MultiplayerGame ( int gameID, String gamename, String mapname ) : System
gameID int
gamename String
mapname String
Résultat System

RemoveUser() public méthode

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