]> git.localhorst.tv Git - sdl-test8.git/blobdiff - src/game/Collision.h
added collision engine, more or less stole gameplay from sdl-test7
[sdl-test8.git] / src / game / Collision.h
diff --git a/src/game/Collision.h b/src/game/Collision.h
new file mode 100644 (file)
index 0000000..e2ecb01
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Collision.h
+ *
+ *  Created on: Apr 22, 2012
+ *      Author: holy
+ */
+
+#ifndef GAME_COLLISION_H_
+#define GAME_COLLISION_H_
+
+#include "Entity.h"
+
+
+namespace game {
+
+class Collision {
+
+       public:
+               Collision(Entity *left, Entity *right, const Entity::Ray &normal) : left(left), right(right), normal(normal) { };
+               ~Collision(void) { };
+
+       public:
+               Entity *left, *right;
+               Entity::Ray normal;
+
+};
+
+}
+
+#endif /* GAME_COLLISION_H_ */