summaryrefslogtreecommitdiffstats
path: root/PlayerStart.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-12-14 03:47:03 +0100
committerneoraider <devnull@localhost>2007-12-14 03:47:03 +0100
commita8c1d6168797526b9d24bc8c86f2578f3be59fa8 (patch)
tree8515976a634b788d99b2c894757a0b4ecbb6fa6a /PlayerStart.h
parentd82c597917d8ef5866c7a83d0c101f423a2ac05d (diff)
downloadzoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.tar
zoomedit-a8c1d6168797526b9d24bc8c86f2578f3be59fa8.zip
zoomedit: Verallgemeinerte Level-Objekte implementiert.
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_*/