class Player;
-/**
+/**
* Defines an area that will gently push Players in one direction
*/
class Wind : public MovingObject, public ScriptInterface
void update(float elapsed_time);
void draw(DrawingContext& context);
HitResponse collision(GameObject& other, const CollisionHit& hit);
-
+
/**
* start blowing
*/
void start();
-
+
/**
* stop blowing
*/
virtual void expose(HSQUIRRELVM vm, SQInteger table_idx);
virtual void unexpose(HSQUIRRELVM vm, SQInteger table_idx);
-
+
private:
std::string name; /**< user-defined name for use in scripts or empty string if not scriptable */
-
+
bool blowing; /**< true if wind is currently switched on */
Vector speed;
float acceleration;
};
#endif
-