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/Room.h

34 lines
790 B
C
Raw Normal View History

#ifndef ROOM_H_
#define ROOM_H_
#include "Polygon.h"
#include "LevelObject.h"
#include <string>
class Room : public Polygon, public LevelObject {
private:
std::string name;
2007-10-30 20:07:00 +00:00
float height;
public:
2007-10-30 20:07:00 +00:00
Room() {height = 10;}
2007-12-05 22:02:03 +00:00
Room(std::string name) {this->name = name; height = 10;}
std::string &getName() {return name;}
const std::string &getName() const {return name;}
void setName(const std::string &name) {this->name = name;}
2007-10-30 20:07:00 +00:00
float getHeight() const {return height;}
void setHeight(float height) {this->height = height;}
virtual bool hit(const Vertex &v) const {return contains(v);}
virtual int getPriority() const {return 0;}
virtual const char* getType() const {
return "Room";
}
};
#endif /*ROOM_H_*/