7 #ifndef __MUN_ROOM_INFO_HPP__ 8 #define __MUN_ROOM_INFO_HPP__ 65 MunRoomInfo( uint64
id = 0,
bool isNeedHostPlayer =
true );
83 void AddPlayer( MrsConnection connection, int32 playerId, std::string playerName, uint32 clientIdForMaster, uint64 clientUidForProxyServer, uint64 roomId,
STREAM::KeyValue* pParameters, uint16 parametersLen );
107 for ( std::list<MunRoomPlayerInfo>::iterator itr = m_PlayersInRoom.begin(); m_PlayersInRoom.end() != itr; ++itr ){
std::list< MunRoomPlayerInfo > m_PlayersInRoom
ルーム内プレイヤー情報.
Definition: MunRoomInfo.hpp:29
uint64 m_Id
ルームID.
Definition: MunRoomInfo.hpp:23
void AddPlayer(MrsConnection connection, int32 playerId, std::string playerName, uint32 clientIdForMaster, uint64 clientUidForProxyServer, uint64 roomId, STREAM::KeyValue *pParameters, uint16 parametersLen)
ルーム内プレイヤー情報の追加.
Definition: MunRoomInfo.cpp:36
void SetHostId(int32 hostId)
ホストIDの設定.
Definition: MunRoomInfo.hpp:51
mun_roomサーバ内のルーム内プレイヤー情報.
virtual ~MunRoomInfo()
デストラクタ.
Definition: MunRoomInfo.cpp:24
任意のKey-Valueペア.
Definition: MunStream.hpp:602
int32 GetHostId()
ホストIDの取得.
Definition: MunRoomInfo.hpp:45
ルーム情報クラス.
Definition: MunRoomInfo.hpp:19
bool RemovePlayer(int32 playerId)
ルーム内プレイヤー情報の削除.
Definition: MunRoomInfo.cpp:86
MunRoomInfo(uint64 id=0, bool isNeedHostPlayer=true)
コンストラクタ.
Definition: MunRoomInfo.cpp:14
void ChangePlayerName(int32 playerId, std::string playerName)
ルーム内プレイヤー名の追加.
Definition: MunRoomInfo.cpp:70
bool m_IsNeedHostPlayer
ホストプレイヤーが必要かどうかのフラグ.
Definition: MunRoomInfo.hpp:32
int32 m_HostId
ホストID.
Definition: MunRoomInfo.hpp:26
std::list< MunRoomPlayerInfo > * GetPlayersInRoom()
ルーム内プレイヤー情報の取得.
Definition: MunRoomInfo.hpp:57
void ChangePlayerParameters(int32 playerId, STREAM::KeyValue *pParameters, uint16 parametersLen)
ルーム内プレイヤー情報の更新.
Definition: MunRoomInfo.cpp:55
uint64 GetId()
ルームIDの取得.
Definition: MunRoomInfo.hpp:39