[Gcblue-commits] gcb_wx/include/ai BlackboardInterface.h,1.1,1.2 Brain.h,1.3,1.4
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-02-20 18:20:58
|
Update of /cvsroot/gcblue/gcb_wx/include/ai In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23561/include/ai Modified Files: BlackboardInterface.h Brain.h Log Message: Parallel ai update Index: Brain.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/ai/Brain.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Brain.h 16 Feb 2005 23:13:38 -0000 1.3 --- Brain.h 20 Feb 2005 18:20:18 -0000 1.4 *************** *** 56,62 **** --- 56,67 ---- }; void AddTask(const std::string& taskName, double priority_); + std::vector<std::string> GetTaskList(); + double GetTaskPriority(const std::string& taskName) const; void RemoveTask(const std::string& taskName); bool TaskExists(const std::string& taskName); + long GetTarget() const; + void SetTarget(long target_); + void Update(double t); *************** *** 68,72 **** long nextId; ///< id assigned to next task double lastUpdateTime; ///< last time tasks were updated ! Blackboard board; ///< for inter-task communication std::map<std::string, Task*> taskMap; --- 73,78 ---- long nextId; ///< id assigned to next task double lastUpdateTime; ///< last time tasks were updated ! long target; ///< id of target (may be more general way to handle this) ! Blackboard board; ///< for inter-task communication std::map<std::string, Task*> taskMap; Index: BlackboardInterface.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/ai/BlackboardInterface.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BlackboardInterface.h 16 Feb 2005 23:13:38 -0000 1.1 --- BlackboardInterface.h 20 Feb 2005 18:20:18 -0000 1.2 *************** *** 49,52 **** --- 49,53 ---- BlackboardInterface GetBlackboardInterface(); long GetAuthor() const; + double GetPriority() const; /// blackboard interface |