This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/PlayerStart.h
2008-02-15 22:44:03 +00:00

26 lines
538 B
C++

#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 int getPriority() const {return 10;}
virtual const char* getType() const {
return "PlayerStart";
}
virtual void move(float x, float y) {
setX(getX()+x);
setZ(getZ()+y);
}
};
#endif /*PLAYERSTART_H_*/