|
From: Oliver O. <fr...@us...> - 2007-06-01 12:20:40
|
Update of /cvsroot/simspark/simspark/spark/oxygen/agentaspect In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv24942 Modified Files: Tag: projectx agentaspect.h Log Message: - added agent ID to agentaspect Index: agentaspect.h =================================================================== RCS file: /cvsroot/simspark/simspark/spark/oxygen/agentaspect/agentaspect.h,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -C2 -d -r1.1.4.1 -r1.1.4.2 *** agentaspect.h 30 Mar 2007 03:17:10 -0000 1.1.4.1 --- agentaspect.h 1 Jun 2007 12:20:33 -0000 1.1.4.2 *************** *** 1,5 **** /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- ! this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University --- 1,5 ---- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- ! this file is part of simspark Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University *************** *** 42,50 **** /** Initializes the AgentAspect. Called immediately after the ! AgentAspect is created by the GameControlServer. \param ! createEffector is the name of the initial effector class that ! the agent uses to construct all remaining parts */ ! virtual bool Init(const std::string& createEffector); /** RealizeActions realizes the actions described by \param --- 42,51 ---- /** Initializes the AgentAspect. Called immediately after the ! AgentAspect is created by the GameControlServer. ! \param createEffector is the name of the initial effector class that ! the agent uses to construct all remaining parts ! \param id a unique ID to set */ ! virtual bool Init(const std::string& createEffector, int id); /** RealizeActions realizes the actions described by \param *************** *** 64,67 **** --- 65,71 ---- virtual boost::shared_ptr<Effector> GetEffector(const std::string predicate) const; + //! @return the unique ID for the agent aspect + inline int ID() const { return mID; } + protected: typedef std::map<std::string, boost::shared_ptr<Effector> > TEffectorMap; *************** *** 71,74 **** --- 75,79 ---- private: + int mID; }; |