LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
AutoActions.h
1 #ifndef AUTO_ACTIONS_H_
2 #define AUTO_ACTIONS_H_
3 
4 namespace data
5 {
6 class ComponentData;
7 }
8 
9 using namespace data;
10 
16 {
17 public:
18  enum actions
19  {
20  AUTO_AIM_BACKBOARD = 1,
21  NO_ADV_AUTOMATION = 2
22  };
23 
24  enum routines
25  {
26  FRONT,
27  BACK
28  };
29 
30  static AutoActions* Instance();
31  static void Finalize();
32 
33  AutoActions();
34  ~AutoActions();
35 
36  void EnableAutoAimBackboard();
37  void Reset();
38 
39  actions GetCurrentAutonomousAction();
40 
41  void SetRoutine(routines routine);
42  routines GetRoutine();
43 
44  void setNumFrisbeesToPickUp(int numFrisbeesToPickUp);
45  int getNumFrisbeesToPickUp();
46 
47 private:
48  static AutoActions* m_instance;
49  ComponentData* m_componentData;
50  routines m_currentAutoRoutine;
51  actions m_currentAction;
52  unsigned int m_counter;
53  int m_numFrisbeesToPickUp;
54 };
55 
56 #endif