#include <PubSubSubspaceId.h>
Public Member Functions | |
PubSubSubspaceId (int id, int _maxY) | |
Creates a new PubSubSubspace. | |
PubSubSubspaceId (int x, int y, int _maxY) | |
~PubSubSubspaceId () | |
int | getId () const |
int | getX () const |
int | getY () const |
bool | operator< (const PubSubSubspaceId x) const |
bool | operator== (const PubSubSubspaceId x) const |
Protected Attributes | |
int | spaceId |
int | maxY |
Friends | |
std::ostream & | operator<< (std::ostream &, const PubSubSubspaceId &) |
PubSubSubspaceId::PubSubSubspaceId | ( | int | id, | |
int | _maxY | |||
) | [inline] |
Creates a new PubSubSubspace.
id | The group ID of the new group | |
_maxY | The number of subspaces per row |
PubSubSubspaceId::PubSubSubspaceId | ( | int | x, | |
int | y, | |||
int | _maxY | |||
) | [inline] |
int PubSubSubspaceId::getId | ( | ) | const [inline] |
Referenced by PubSubLobby::failedNode(), PubSubLobby::handleJoin(), PubSubMMOG::handleJoinResponse(), PubSubMMOG::handleMove(), PubSubMMOG::handlePingCallTimeout(), PubSubLobby::handleRespCall(), PubSubMMOG::publishEvents(), PubSubLobby::replaceResponsibleNode(), PubSubMMOG::takeOverSubspace(), and PubSubMMOG::unsubscribeChild().
00047 { return spaceId; }
int PubSubSubspaceId::getX | ( | ) | const [inline] |
int PubSubSubspaceId::getY | ( | ) | const [inline] |
bool PubSubSubspaceId::operator< | ( | const PubSubSubspaceId | x | ) | const [inline] |
bool PubSubSubspaceId::operator== | ( | const PubSubSubspaceId | x | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | o, | |
const PubSubSubspaceId & | subspaceId | |||
) | [friend] |
int PubSubSubspaceId::spaceId [protected] |
Referenced by getId(), getX(), getY(), operator<(), operator<<(), and operator==().
int PubSubSubspaceId::maxY [protected] |