#ifndef WAGON_H #define WAGON_H #include #include class Wagon { public: int _id; Wagon(int id,int numpixels,Adafruit_NeoPixel *strip,uint8_t *height, float pos, float wagonlength, float startvel,float startacc); Wagon(); bool operator==(const Wagon &r) const; void updatePhysics(float updatedelayms); void updateGraphics(); float getHeight(int p); int pos(); int id(); bool alive(); private: int _numpixels; Adafruit_NeoPixel *_strip; float _pos; float _vel; float _acc; float _wagonlength; uint8_t *_height; }; #endif