From a8c1d6168797526b9d24bc8c86f2578f3be59fa8 Mon Sep 17 00:00:00 2001 From: neoraider Date: Fri, 14 Dec 2007 02:47:03 +0000 Subject: zoomedit: Verallgemeinerte Level-Objekte implementiert. --- PlayerStart.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 PlayerStart.h (limited to 'PlayerStart.h') 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_*/ -- cgit v1.2.3