From: Oliver O. <fr...@us...> - 2007-06-22 13:43:44
|
Update of /cvsroot/simspark/simspark/spark/oxygen/gamecontrolserver In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv28988 Modified Files: Tag: projectx gamecontrolserver.h Log Message: update from rcssserver3D Index: gamecontrolserver.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/gamecontrolserver/gamecontrolserver.h,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.1.2.1 diff -C2 -d -r1.1.2.1 -r1.1.2.1.2.1 *** gamecontrolserver.h 28 Feb 2007 20:38:38 -0000 1.1.2.1 --- gamecontrolserver.h 22 Jun 2007 13:43:39 -0000 1.1.2.1.2.1 *************** *** 37,40 **** --- 37,44 ---- { public: + + typedef std::list<boost::shared_ptr<AgentAspect> > TAgentAspectList; + + public: GameControlServer(); ~GameControlServer(); *************** *** 109,112 **** --- 113,119 ---- boost::shared_ptr<AgentAspect> GetAgentAspect(int id); + /** get a list with shared pointers to all the AgentAspects */ + void GetAgentAspectList(TAgentAspectList & list); + /** This method is used to notify the GameControlServer that the game has advanced deltaTime seconds. The GameControlServer will in turn *************** *** 125,128 **** --- 132,138 ---- void Quit(); + /** put the agent id into the disconnected vector */ + void pushDisappearedAgent(int id); + protected: /** helper method that queries the SceneServer for the currently *************** *** 146,149 **** --- 156,162 ---- /** flag if the simulation is over */ bool mExit; + + /** vector of disappeared agents, they will be removed in next Update */ + std::vector<int> mDisappearedAgent; }; |