From: Markus R. <rol...@us...> - 2007-02-28 20:51:42
|
Update of /cvsroot/simspark/simspark/spark/oxygen/gamecontrolserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9516 Modified Files: Tag: WIN32 gamecontrolserver.cpp gamecontrolserver.h Log Message: sync with rcssserver3d: implemented method GetAgentCount which returns the number of agents currently connected to the server Index: gamecontrolserver.cpp =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/gamecontrolserver/gamecontrolserver.cpp,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** gamecontrolserver.cpp 9 Feb 2007 20:11:56 -0000 1.1.2.1 --- gamecontrolserver.cpp 28 Feb 2007 20:38:38 -0000 1.1.2.2 *************** *** 225,228 **** --- 225,234 ---- } + int + GameControlServer::GetAgentCount() const + { + return mAgentMap.size(); + } + shared_ptr<ActionObject::TList> GameControlServer::Parse(int id, const string& str) const Index: gamecontrolserver.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/gamecontrolserver/gamecontrolserver.h,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** gamecontrolserver.h 5 Dec 2005 21:16:49 -0000 1.1 --- gamecontrolserver.h 28 Feb 2007 20:38:38 -0000 1.1.2.1 *************** *** 101,104 **** --- 101,109 ---- float GetActionLatency(int id); + /** returns the number of agents currently connected + to the simulator + */ + int GetAgentCount() const; + /** returns the AgentAspect for the given \param id */ boost::shared_ptr<AgentAspect> GetAgentAspect(int id); |