11 #ifndef __QuickJoinGameRequest__ 12 #define __QuickJoinGameRequest__ 14 #include "../../Util/Common.h" 15 #include "../BaseRequest.h" 16 #include "../../Entities/Room.h" 17 #include "../../Entities/Match/MatchExpression.h" 19 #include <boost/shared_ptr.hpp> 22 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 54 QuickJoinGameRequest(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<string> > whereToSearch);
103 QuickJoinGameRequest(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<string> > whereToSearch, boost::shared_ptr<Room> roomToLeave);
108 QuickJoinGameRequest(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<boost::shared_ptr<Room> > > whereToSearch);
121 QuickJoinGameRequest(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<boost::shared_ptr<Room> > > whereToSearch, boost::shared_ptr<Room> roomToLeave);
125 void Validate(boost::shared_ptr<SmartFox> sfs);
127 void Execute (boost::shared_ptr<SmartFox> sfs);
133 static const long int MAX_ROOMS;
135 static boost::shared_ptr<string> KEY_ROOM_LIST;
137 static boost::shared_ptr<string> KEY_GROUP_LIST;
139 static boost::shared_ptr<string> KEY_ROOM_TO_LEAVE;
141 static boost::shared_ptr<string> KEY_MATCH_EXPRESSION;
158 void Init(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<string> > whereToSearch, boost::shared_ptr<Room> roomToLeave);
159 void Init(boost::shared_ptr<MatchExpression> matchExpression, boost::shared_ptr<vector<boost::shared_ptr<Room> > > whereToSearch, boost::shared_ptr<Room> roomToLeave);
164 boost::shared_ptr<vector<boost::shared_ptr<Room> > > whereToSearchRoom;
165 boost::shared_ptr<vector<string> > whereToSearchString;
166 boost::shared_ptr<MatchExpression> matchExpression;
167 boost::shared_ptr<Room> roomToLeave;
169 bool isSearchListString;
170 bool isSearchListRoom;
Quick join a User in a public game.
Definition: QuickJoinGameRequest.h:43
Definition: BoolMatch.cpp:15
Definition: SmartFox.cpp:24
Definition: ISFSArray.h:17