+ int squishcount; /// number of times this enemy was squiched
+ Vector target; // Target that badguy is aiming for (wingling uses this)
+ Timer timer;
+ Physic physic;
+ float angle;
+
+ std::string action_left, action_right;
+
+ BadGuySpecs* specs;
+
+ int animation_offset;
+
+public:
+ BadGuy(BadGuyKind kind, float x, float y);
+ BadGuy(BadGuyKind kind, LispReader& reader);
+ virtual ~BadGuy();
+
+ virtual void write(LispWriter& writer);
+
+ virtual void action(float frame_ratio);
+ virtual void draw(DrawingContext& context);
+ virtual void collision(const MovingObject& other, int type);
+
+ void collision(void* p_c_object, int c_object,
+ CollisionType type = COLLISION_NORMAL);
+
+ /** this functions tries to kill the badguy and lets him fall off the
+ * screen. Some badguys like the flame might ignore this.
+ */
+ void kill_me(int score);
+
+ /** initializes the badguy (when he appears on screen) */
+ void activate(Direction direction); // should only be used by BadGuy's objects