]>
jfr.im git - irc/gameservirc.git/blob - gameserv-2.0/libgameservgldl/src/GameLayer/GameObjects/GameObject.cpp
1 #include <GameServ/GameLayer/GameObjects/GameObject.h>
2 using GameServ::GameLayer::GameObjects::GameObject
;
3 using GameServ::GameLayer::GameObjects::GameObjectIds_Eq
;
8 #include <boost/shared_ptr.hpp>
9 using boost::shared_ptr
;
11 GameObject::GameObject(void) : mId()
15 GameObject::GameObject(const string
&Id
) : mId(Id
)
19 GameObject::~GameObject(void)
23 bool GameObject::operator==(const GameObject
&right
) const
25 return mId
== right
.mId
;
28 bool GameObject::operator!=(const GameObject
&right
) const
30 return !(right
== *this);
33 string
GameObject::Id(void) const
38 void GameObject::Id(const string
&value
)
44 GameObjectIds_Eq::GameObjectIds_Eq(const string
&Id
) : mId(Id
)
48 bool GameObjectIds_Eq::operator ()(const shared_ptr
<GameObject
> &BO
) const
50 return mId
== BO
->mId
;