BioinstSim  2
 All Classes Functions Variables
behavior.h
1 #ifndef BEHAVIOR_H_
2 #define BEHAVIOR_H_
3 
4 /******************************************************************************/
5 /******************************************************************************/
6 
7 #include <vector>
8 
9 #include "common.h"
10 #include "agent.h"
11 
12 /******************************************************************************/
13 /******************************************************************************/
14 class CBehavior;
15 
16 typedef vector<CBehavior*> TBehaviorVector;
17 typedef vector<CBehavior*>::iterator TBehaviorVectorIterator;
18 
19 
20 /******************************************************************************/
21 /******************************************************************************/
22 
23 
24 class CBehavior
25 {
26 public:
27  CBehavior();
28  virtual ~CBehavior();
29 
30  virtual bool TakeControl() = 0;
31  virtual void Suppress();
32  virtual void Action();
33  virtual void SimulationStep();
34 
35  virtual void SetAgent(CAgent* pc_agent);
36 
37 protected:
38  CAgent* m_pcAgent;
39 };
40 
41 /******************************************************************************/
42 /******************************************************************************/
43 
44 #endif
45 
46 /******************************************************************************/
47 /******************************************************************************/