22 #include "utilities.h"
53 GLvoid
draw(GLboolean simplifyForPicking);
67 GLvoid
setId(GLint _id);
GLvoid draw(GLboolean simplifyForPicking)
draw function for Obstacle Object.
Definition: obstacle.cpp:31
Obstacle(GLint _modelId, Vector3f *_cell)
Constructor of Obstacle.
Definition: obstacle.cpp:22
Vector3f * getCell()
Returns the cell of the Obstacle.
Definition: obstacle.cpp:66
GLint type
Definition: obstacle.h:140
GLvoid setColor(QColor _color)
Set the obstacle color.
Definition: obstacle.cpp:76
GLint getId()
This method return the obstacleId.
Definition: obstacle.cpp:50
GLvoid setId(GLint _id)
Set the obstacleId.
Definition: obstacle.cpp:55
QColor getColor()
Returns the obstacle color.
Definition: obstacle.cpp:81
QColor color
Definition: obstacle.h:138
Vector3f * position
Definition: obstacle.h:136
Vector3f * cell
Definition: obstacle.h:137
GLint id
Definition: obstacle.h:135
Structure that rapresents a Vector of float in a 3-D space.
Definition: vector3f.h:31
GLvoid setType(GLint _type)
Set the obstacle type.
Definition: obstacle.cpp:96
~Obstacle()
Safely destroy an Obstacle object.
Definition: obstacle.cpp:28
GLint getType()
Returns the obstacle type.
Definition: obstacle.cpp:101
GLint modelId
Definition: obstacle.h:139
This class rapresents an Obstacle.
Definition: obstacle.h:30
Vector3f * getPosition()
Returns the obstacle position.
Definition: obstacle.cpp:71
GLint getModelId()
Returns the obstacle modelId.
Definition: obstacle.cpp:91
GLvoid setModelId(GLint _modelId)
Set the obstacle modelId.
Definition: obstacle.cpp:86
GLvoid setCell(Vector3f *_cell)
Set the cell of the Obstacle.
Definition: obstacle.cpp:60