SmartFoxServer 2X C++ API
|
Quick join a User in a public game. More...
#include <QuickJoinGameRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
QuickJoinGameRequest (boost::shared_ptr< MatchExpression > matchExpression, boost::shared_ptr< vector< string > > whereToSearch) | |
QuickJoinGameRequest(boost::shared_ptr<MatchExpression>, boost::shared_ptr<vector<string> >, boost::shared_ptr<Room>) More... | |
QuickJoinGameRequest (boost::shared_ptr< MatchExpression > matchExpression, boost::shared_ptr< vector< string > > whereToSearch, boost::shared_ptr< Room > roomToLeave) | |
Constructor More... | |
QuickJoinGameRequest (boost::shared_ptr< MatchExpression > matchExpression, boost::shared_ptr< vector< boost::shared_ptr< Room > > > whereToSearch) | |
QuickJoinGameRequest(boost::shared_ptr<MatchExpression>, boost::shared_ptr<vector<boost::shared_ptr<Room> > >, boost::shared_ptr<Room>) More... | |
QuickJoinGameRequest (boost::shared_ptr< MatchExpression > matchExpression, boost::shared_ptr< vector< boost::shared_ptr< Room > > > whereToSearch, boost::shared_ptr< Room > roomToLeave) | |
Creates a new QuickJoinGameRequest instance. More... | |
Quick join a User in a public game.
By providing a MatchExpression and a list of Rooms or Groups the system can search for matching Rooms and immediately teleport the player in the game action.
Sfs2X::Requests::Game::QuickJoinGameRequest::QuickJoinGameRequest | ( | boost::shared_ptr< MatchExpression > | matchExpression, |
boost::shared_ptr< vector< string > > | whereToSearch | ||
) |
Sfs2X::Requests::Game::QuickJoinGameRequest::QuickJoinGameRequest | ( | boost::shared_ptr< MatchExpression > | matchExpression, |
boost::shared_ptr< vector< string > > | whereToSearch, | ||
boost::shared_ptr< Room > | roomToLeave | ||
) |
Constructor
matchExpression | a MatchExpression to filter Rooms |
whereToSearch | A list of Group names to which the matching expression should be applied. The maximum number of elements in this list is 32. |
roomToLeave | an optional Room that the User will leave after joining the game |
Sfs2X::Requests::Game::QuickJoinGameRequest::QuickJoinGameRequest | ( | boost::shared_ptr< MatchExpression > | matchExpression, |
boost::shared_ptr< vector< boost::shared_ptr< Room > > > | whereToSearch | ||
) |
Sfs2X::Requests::Game::QuickJoinGameRequest::QuickJoinGameRequest | ( | boost::shared_ptr< MatchExpression > | matchExpression, |
boost::shared_ptr< vector< boost::shared_ptr< Room > > > | whereToSearch, | ||
boost::shared_ptr< Room > | roomToLeave | ||
) |
Creates a new QuickJoinGameRequest instance.
The instance must be passed to the SmartFox.Send method for the request to be performed.
matchExpression | A matching expression that the system will use to search a Game Room where to join the current user. |
whereToSearch | A list of Room objects to which the matching expression should be applied. The maximum number of elements in this list is 32. |
roomToLeave | An object representing the Room that the user should leave when joining the game. Default is null . |