15 #include "Data/Vec3D.h" 17 #include <boost/shared_ptr.hpp> 18 #include <boost/enable_shared_from_this.hpp> 21 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 45 class DLLImportExport
SFSUser :
public User,
public boost::enable_shared_from_this<SFSUser>
53 static boost::shared_ptr<User> FromSFSArray(boost::shared_ptr<ISFSArray> sfsa, boost::shared_ptr<Room> room);
54 static boost::shared_ptr<User> FromSFSArray(boost::shared_ptr<ISFSArray> sfsa);
56 SFSUser(
long int id,
string name);
57 SFSUser(
long int id,
string name,
bool isItMe);
68 boost::shared_ptr<string> Name();
117 long int GetPlayerId (boost::shared_ptr<Room> room);
119 void SetPlayerId(
long int id, boost::shared_ptr<Room> room);
121 void RemovePlayerId(boost::shared_ptr<Room> room);
127 long int PrivilegeId();
133 void PrivilegeId(
long int value);
139 boost::shared_ptr<IUserManager> UserManager();
145 void UserManager(boost::shared_ptr<IUserManager> value);
148 boost::shared_ptr<Vec3D> AOIEntryPoint();
151 void AOIEntryPoint(boost::shared_ptr<Vec3D> value);
169 bool IsStandardUser();
196 bool IsPlayerInRoom(boost::shared_ptr<Room> room);
207 bool IsSpectatorInRoom(boost::shared_ptr<Room> room);
218 bool IsJoinedInRoom(boost::shared_ptr<Room> room);
232 boost::shared_ptr<vector<boost::shared_ptr<UserVariable> > > GetVariables();
244 boost::shared_ptr<UserVariable> GetVariable(
string varName);
246 void SetVariable(boost::shared_ptr<UserVariable> userVariable);
248 virtual void SetVariables(boost::shared_ptr<vector<boost::shared_ptr<UserVariable> > > userVaribles);
260 bool ContainsVariable(
string name);
268 boost::shared_ptr<map<string, boost::shared_ptr<void> > > Properties();
276 void Properties(boost::shared_ptr<map<
string, boost::shared_ptr<void> > > value);
278 boost::shared_ptr<string> ToString();
295 long int privilegeId;
296 boost::shared_ptr<string> name;
298 boost::shared_ptr<map<string, boost::shared_ptr<UserVariable> > > variables;
299 boost::shared_ptr<map<string, boost::shared_ptr<void> > > properties;
301 boost::shared_ptr<map<long int, long int> > playerIdByRoomId;
302 boost::shared_ptr<IUserManager> userManager;
303 boost::shared_ptr<Vec3D> aoiEntryPoint;
311 void Init(
long int id,
string name,
bool isItMe);
312 void RemoveUserVariable(
string varName);
Definition: SFSCodecError.cpp:14
Definition: IBuddyManager.h:32
The User object represent a client logged in the Server.
Definition: SFSUser.h:45
The User interface defines all the methods and properties that an object representing a SmartFoxServe...
Definition: User.h:55
Definition: BaseVariable.cpp:15
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17