Photon C++ Client API
4.1.12.2
|
MutableRoom Class Reference
Inheritance diagram for MutableRoom:
Collaboration diagram for MutableRoom:
Public Member Functions | |
MutableRoom (const MutableRoom &toCopy) | |
virtual MutableRoom & | operator= (const Room &toCopy) |
virtual MutableRoom & | operator= (const MutableRoom &toCopy) |
nByte | getPlayerCount (void) const |
void | setMaxPlayers (nByte maxPlayers, const WebFlags &webflags=WebFlags()) |
void | setIsOpen (bool isOpen, const WebFlags &webflags=WebFlags()) |
bool | getIsVisible (void) const |
void | setIsVisible (bool isVisible, const WebFlags &webflags=WebFlags()) |
const Common::JVector< Player * > & | getPlayers (void) const |
const Player * | getPlayerForNumber (int playerNumber) const |
int | getMasterClientID (void) const |
const Common::JVector< Common::JString > & | getPropsListedInLobby (void) const |
void | setPropsListedInLobby (const Common::JVector< Common::JString > &propsListedInLobby, const Common::JVector< Common::JString > &expectedList=Common::JVector< Common::JString >(), const WebFlags &webflags=WebFlags()) |
int | getPlayerTtl (void) const |
int | getEmptyRoomTtl (void) const |
bool | getSuppressRoomEvents (void) const |
const Common::JVector< Common::JString > * | getPlugins (void) const |
bool | getPublishUserID (void) const |
const Common::JVector< Common::JString > & | getExpectedUsers (void) const |
void | setExpectedUsers (const Common::JVector< Common::JString > &expectedUsers, const WebFlags &webflags=WebFlags()) |
void | mergeCustomProperties (const Common::Hashtable &customProperties, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
template<typename ktype , typename vtype > | |
void | addCustomProperty (const ktype &key, const vtype &value, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
template<typename ktype , typename vtype > | |
void | addCustomProperty (const ktype &key, const vtype pValueArray, typename Common::Helpers::ArrayLengthType< vtype >::type arrSize, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
template<typename ktype , typename vtype > | |
void | addCustomProperty (const ktype &key, const vtype pValueArray, const short *pArrSizes, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
void | addCustomProperties (const Common::Hashtable &customProperties, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
template<typename ktype > | |
void | removeCustomProperty (const ktype &key, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
template<typename ktype > | |
void | removeCustomProperties (const ktype *keys, unsigned int count, const Common::Hashtable &expectedCustomProperties=Common::Hashtable(), const WebFlags &webflags=WebFlags()) |
virtual Common::JString | toString (bool withTypes=false, bool withCustomProperties=false, bool withPlayers=false) const |
Public Member Functions inherited from Room | |
virtual | ~Room (void) |
Room (const Room &toCopy) | |
const Common::JString & | getName (void) const |
nByte | getMaxPlayers (void) const |
bool | getIsOpen (void) const |
nByte | getDirectMode (void) const |
const Common::Hashtable & | getCustomProperties (void) const |
bool | operator== (const Room &room) const |
virtual Common::JString & | toString (Common::JString &retStr, bool withTypes=false) const |
virtual Common::JString | toString (bool withTypes, bool withCustomProperties) const |
Public Member Functions inherited from Base | |
virtual | ~Base (void) |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Additional Inherited Members | |
Static Public Member Functions inherited from Base | |
static void | setListener (const BaseListener *baseListener) |
static int | getDebugOutputLevel (void) |
static bool | setDebugOutputLevel (int debugLevel) |
static const LogFormatOptions & | getLogFormatOptions (void) |
static void | setLogFormatOptions (const LogFormatOptions &options) |
Member Function Documentation
§ operator=()
|
virtual |
operator=.
Makes a deep copy of its right operand into its left operand.
This overwrites old data in the left operand.
Reimplemented from Room.
§ getPlayerCount()
|
virtual |
- Returns
- the count of players that are currently inside this room
Reimplemented from Room.