Advertisement
Timendainum

Motivator.h

Nov 6th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. /******************************************************************************
  2. * The motivator is aware of sensory input (via another class?) and uses that
  3. * that information to choose the best behavior.
  4. */
  5.  
  6. #ifndef __MOTIVATOR_H__
  7. #define __MOTIVATOR_H__
  8.  
  9. #include "Behavior.h"
  10. #include <Arduino.h>
  11.  
  12. class Motivator
  13. {
  14.   private:
  15.      
  16.  
  17.   protected:
  18.     int behaviorCount;
  19.     Behavior* behaviors[];
  20.     void enableBehavior(int b);
  21.     void disableBehavior(int b);
  22.     void addBehavior(Behavior* b);
  23.     void executeBehaviors();
  24.  
  25.   public:
  26.     Motivator();
  27.  
  28.     virtual void motivate();
  29. };
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement