Project

General

Profile

Statistics
| Branch: | Revision:

root / scout / libscout / src / BehaviorList.cpp @ 3f72678f

History | View | Annotate | Download (648 Bytes)

1
#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
  behavior_list.push_back((Behavior*)new Odometry(scoutname));
8
  behavior_list.push_back((Behavior*)new navigationMap(scoutname));
9
  behavior_list.push_back((Behavior*)new sim_line(scoutname));
10
  behavior_list.push_back((Behavior*)new Scheduler(scoutname));
11
  behavior_list.push_back((Behavior*)new WH_Robot(scoutname));
12
  return;
13
}
14

    
15
BehaviorList::~BehaviorList()
16
{
17
  while(!behavior_list.empty())
18
    behavior_list.pop_back();
19
}