added base to effects
authorPatrik Gornicz <Gornicz.P@gmail.com>
Mon, 21 Jul 2008 03:14:10 +0000 (23:14 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Mon, 21 Jul 2008 03:14:10 +0000 (23:14 -0400)
src/Effects/Effect.h [new file with mode: 0644]
src/Effects/Gravity.cpp [new file with mode: 0644]
src/Effects/Gravity.h [new file with mode: 0644]

diff --git a/src/Effects/Effect.h b/src/Effects/Effect.h
new file mode 100644 (file)
index 0000000..75d349a
--- /dev/null
@@ -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 (file)
index 0000000..3d2cd0a
--- /dev/null
@@ -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 (file)
index 0000000..4281194
--- /dev/null
@@ -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