20 #ifndef ROOM_H_INCLUDED
21 #define ROOM_H_INCLUDED
50 Vertex(
float xCoord,
float yCoord,
float zCoord):
51 x(xCoord),
y(yCoord),
z(zCoord){}
59 Room(
const std::string &name=
"",
int nOfVertices = 0);
67 const std::string&
getName()
const;
81 const Vertex&
getVertex(
int vertexNo)
const;
90 void setVertex(
int vertexNo,
const Vertex vertex);
94 std::vector<Vertex> vertices_;
99 #endif // ROOM_H_INCLUDED
const Vertex & getVertex(int vertexNo) const
Returns a reference to a Vertex of the Room.
Definition: Room.cpp:43
float x
The x-coordinate.
Definition: Room.h:42
int getNumberOfVertices() const
Returns the number of vertices of the room.
Definition: Room.cpp:38
Vertex()
Constructor.
Definition: Room.h:47
float y
The y-coordinate.
Definition: Room.h:43
const std::string & getName() const
The name of the room as provided by cWONDER.
Definition: Room.cpp:33
A struct describing a vertex with its three coordinates.
Definition: Room.h:40
float z
The z-coordinate.
Definition: Room.h:44
Vertex(float xCoord, float yCoord, float zCoord)
Constructor.
Definition: Room.h:50
Room(const std::string &name="", int nOfVertices=0)
Constructor.
Definition: Room.cpp:24
virtual ~Room()
Destructor.
Definition: Room.cpp:29
A class containing the wonder-specific information about a room (name and vertices).
Definition: Room.h:35
void setVertex(int vertexNo, const Vertex vertex)
Updates a vertex of the room.
Definition: Room.cpp:54