Statistics
| Branch: | Revision:

root / scout / libscout / src / BehaviorList.h @ faa11f08

History | View | Annotate | Download (878 Bytes)

1
#ifndef _BEHAVIOR_LIST_H_
2
#define _BEHAVIOR_LIST_H_
3

    
4
#include "Behavior.h"
5
#include "behaviors/line_follow.h"
6
#include "behaviors/priya_draw_name.h"
7
#include "behaviors/draw_cw_circle.h"
8
#include "behaviors/draw_ccw_circle.h"
9
#include "behaviors/Odometry.h"
10
#include "behaviors/navigationMap.h"
11
#include "behaviors/Scheduler.h"
12
#include "behaviors/WH_Robot.h"
13
#include "behaviors/wl_test.h"
14
#include "behaviors/pause_scout.h"
15
#include "behaviors/maze_solve.h"
16
#include "Sensors.h"
17

    
18
template<typename T> Behavior* behavior(std::string scoutname, Sensors* sensors){ return (Behavior*)new T(scoutname, sensors); } 
19

    
20
typedef Behavior* (* behavior_func)(std::string, Sensors*);
21

    
22
class BehaviorList
23
{
24
  public:
25
  std::vector<behavior_func> behavior_list;
26

    
27
  //Constructor. Initializes behavior_list
28
  BehaviorList();
29
  //Destructor. Frees behavior_list;
30
  ~BehaviorList();
31
};
32

    
33
#endif