Project

General

Profile

Statistics
| Branch: | Revision:

scoutos / scout / libscout / src / BehaviorList.cpp @ c239584b

History | View | Annotate | Download (396 Bytes)

1
#include "BehaviorList.h"
2

    
3
//draw_cw_circle* behavior1 = new draw_cw_circle(scoutname)
4

    
5
BehaviorList::BehaviorList(std::string scoutname)
6
{
7
  behavior_list.push_back((Behavior*)new draw_cw_circle(scoutname));
8
  behavior_list.push_back((Behavior*)new draw_ccw_circle(scoutname));
9
  return;
10
}
11

    
12
BehaviorList::~BehaviorList()
13
{
14
  while((int)behavior_list.size() != 0)
15
    behavior_list.pop_back();
16
}