summaryrefslogtreecommitdiffstats
path: root/PlayerStart.h
diff options
context:
space:
mode:
Diffstat (limited to 'PlayerStart.h')
-rw-r--r--PlayerStart.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/PlayerStart.h b/PlayerStart.h
new file mode 100644
index 0000000..003583d
--- /dev/null
+++ b/PlayerStart.h
@@ -0,0 +1,19 @@
+#ifndef PLAYERSTART_H_
+#define PLAYERSTART_H_
+
+#include "LevelObject.h"
+#include "Vertex3d.h"
+
+
+class PlayerStart : public Vertex3d, public LevelObject {
+ public:
+ virtual bool hit(const Vertex &v) const {
+ return (v.distanceSq(Vertex(getX(), getZ())) < 0.09);
+ }
+
+ virtual const char* getType() const {
+ return "PlayerStart";
+ }
+};
+
+#endif /*PLAYERSTART_H_*/