00001
00007 #ifndef __INPUTS_H__
00008 #define __INPUTS_H__
00009
00010 #include "vgen.h"
00011
00013 class Inputs : public ValueGen {
00014 public:
00015 virtual ~Inputs() { }
00016
00018 virtual void init()=0;
00019
00021 virtual void reset()=0;
00022
00024 virtual bool next()=0;
00025
00027 virtual void activate(bool learn=false, bool settle=true)=0;
00028
00030 virtual void uninit()=0;
00031
00032
00033 00034 00035 00036 00037 00038 00039 00040
00042 virtual bool is_active(int, int) const { return false; }
00044 virtual double angle_of_object(int, int) const { return 0; }
00046 virtual double angle_of_object_at_location(int, int, int) const { return 0; }
00047 };
00048
00049
00050
00056 extern Inputs* inputs;
00057
00058
00059
00060 #endif