Statistics
| Branch: | Revision:

root / scout / libscout / src / BehaviorList.cpp @ 4b02e3c0

History | View | Annotate | Download (779 Bytes)

1 c239584b Priya
#include "BehaviorList.h"
2
3
BehaviorList::BehaviorList(std::string scoutname)
4
{
5
  behavior_list.push_back((Behavior*)new draw_cw_circle(scoutname));
6
  behavior_list.push_back((Behavior*)new draw_ccw_circle(scoutname));
7 8f030bc3 Priya
  behavior_list.push_back((Behavior*)new Odometry(scoutname));
8 cccc25c9 Priya
  behavior_list.push_back((Behavior*)new navigationMap(scoutname));
9 3f72678f Priya
  behavior_list.push_back((Behavior*)new Scheduler(scoutname));
10
  behavior_list.push_back((Behavior*)new WH_Robot(scoutname));
11 58371433 Priya
  behavior_list.push_back((Behavior*)new line_follow(scoutname));
12 5d0687a9 Priya
  behavior_list.push_back((Behavior*)new wl_test(scoutname));
13 4b02e3c0 Matt Bryant
  behavior_list.push_back((Behavior*)new pause_scout(scoutname));
14 c239584b Priya
  return;
15
}
16
17
BehaviorList::~BehaviorList()
18
{
19 c460d4c2 Priya
  while(!behavior_list.empty())
20 c239584b Priya
    behavior_list.pop_back();
21
}