#ifndef CREATURE_H #define CREATURE_H #include "ofMain.h" #include "pointRecorder.h" class creature { public: creature(); void update(); void draw(); void gas(); void position(); void condition(); void ooomph(); // as in the sound effect you make when some foo pushes you around, "ooomph" void cycle(); void eatTarget(float x, float y, float foodRadius); void leaveTrail(); void drawTrail(); void strut(float catchX, float catchY); void drawDebug(); ofPoint pos; ofPoint prevPos; ofPoint nextPos; ofPoint wanderPos; ofPoint foodPos; pointRecorder trail; unsigned char trailTimer; unsigned char trailRate; float catchUpSpeed; // take this pct of where I want to be, and 1-catchUpSpeed of my pos float angle; float range; unsigned char rangeAlpha; float awareness; // radius of the senses unsigned char awarenessAlpha; unsigned char enthusiasm; // catch up rate float foodDistance; bool bWander; bool bEngage; bool bDrunk; bool bIll; float speedMin; float speedMax; unsigned int wanderTimer; unsigned int engageTimer; struct { float length; float girth; float girthMin; float girthMax; float gap; float spread; unsigned char alpha; } outfit; struct { float phase; float stepper; float cycleMin; float cycleMax; float intensity; float intensityMin; float intensityMax; float sideA; float sideB; } cycler; struct { float tank; float burn; } gasser; bool bDebugInfo; bool bDebugRange; }; #endif // CREATURE_H