From: Patrik Gornicz Date: Mon, 21 Jul 2008 03:14:10 +0000 (-0400) Subject: added base to effects X-Git-Tag: physics-premerge~182 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=cd8389935add9981ac03f058994a185e2208a32f;p=libbear.git added base to effects --- diff --git a/src/Effects/Effect.h b/src/Effects/Effect.h new file mode 100644 index 0000000..75d349a --- /dev/null +++ b/src/Effects/Effect.h @@ -0,0 +1,12 @@ +#ifndef EFFECT_H +#define EFFECT_H + +/// ***** Header Class ***** +class Effect +{ + public: + virtual Vector2 positionAfter(const Vector&, float) const = 0; + virtual Vector2 velocityAfter(const Vector&, float) const = 0; +} + +#endif // EFFECT_H diff --git a/src/Effects/Gravity.cpp b/src/Effects/Gravity.cpp new file mode 100644 index 0000000..3d2cd0a --- /dev/null +++ b/src/Effects/Gravity.cpp @@ -0,0 +1,13 @@ +#include "Gravity.h" + +/// ***** Header Class ***** +Vector2 Gravity::positionAfter(const Vector2&, float) +{ + +} +Vector2 Gravity::velocityAfter(const Vector2&, float) +{ + +} + +#endif // GRAVITY_H diff --git a/src/Effects/Gravity.h b/src/Effects/Gravity.h new file mode 100644 index 0000000..4281194 --- /dev/null +++ b/src/Effects/Gravity.h @@ -0,0 +1,13 @@ +#ifndef GRAVITY_H +#define GRAVITY_H + +#include "Effect.h" + +/// ***** Header Class ***** +class Gravity: public Effect +{ + Vector2 positionAfter(const Vector2&, float); + Vector2 velocityAfter(const Vector2&, float); +} + +#endif // GRAVITY_H