SmartFoxServer 2X C++ API
|
Attempt to turn the current User from Player to a Spectator (in a Game Room) More...
#include <PlayerToSpectatorRequest.h>
Inherits Sfs2X::Requests::BaseRequest.
Public Member Functions | |
PlayerToSpectatorRequest () | |
PlayerToSpectatorRequest(Room*) More... | |
PlayerToSpectatorRequest (boost::shared_ptr< Room > targetRoom) | |
Constructor More... | |
Attempt to turn the current User from Player to a Spectator (in a Game Room)
This could fail if no Spectator slots are available in the Room at the time of the request
Sfs2X::Requests::PlayerToSpectatorRequest::PlayerToSpectatorRequest | ( | ) |
PlayerToSpectatorRequest(Room*)
Sfs2X::Requests::PlayerToSpectatorRequest::PlayerToSpectatorRequest | ( | boost::shared_ptr< Room > | targetRoom | ) |
Constructor
targetRoom | the Room where the change has to be performed, a null value indicates the last joined Room (default) |