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

27 lines
551 B
C
Raw Normal View History

#ifndef PLAYERSTART_H_
#define PLAYERSTART_H_
#include "LevelObject.h"
#include "Vertex3d.h"
class PlayerStart : public Vertex3d, public LevelObject {
public:
2008-02-13 21:06:01 +00:00
virtual bool hit(const Vertex &v, float scale) const {
return (v.distanceSq(Vertex(getX(), getZ())) < 0.09);
}
virtual int getPriority() const {return 10;}
virtual const char* getType() const {
return "PlayerStart";
}
2008-01-13 16:41:01 +00:00
virtual void move(float x, float y) {
setX(getX()+x);
setZ(getZ()+y);
}
};
#endif /*PLAYERSTART_H_*/