This class rapresents an Obstacle.
More...
#include <obstacle.h>
This class rapresents an Obstacle.
- Version
- 1.0
- Author
- #34
Obstacle::Obstacle |
( |
GLint |
_modelId, |
|
|
Vector3f * |
_cell |
|
) |
| |
|
explicit |
GLvoid Obstacle::draw |
( |
GLboolean |
simplifyForPicking | ) |
|
draw function for Obstacle Object.
- Parameters
-
QColor Obstacle::getColor |
( |
| ) |
|
Returns the obstacle color.
- Returns
- the obstacle color.
GLint Obstacle::getId |
( |
| ) |
|
This method return the obstacleId.
- Returns
- the obstacleId.
GLint Obstacle::getModelId |
( |
| ) |
|
Returns the obstacle modelId.
- Returns
- the obstacle modelId.
Returns the obstacle position.
- Returns
- the obstacle position.
GLint Obstacle::getType |
( |
| ) |
|
Returns the obstacle type.
- Returns
- the obstacle type.
GLvoid Obstacle::setCell |
( |
Vector3f * |
_cell | ) |
|
Set the cell of the Obstacle.
- Parameters
-
GLvoid Obstacle::setColor |
( |
QColor |
_color | ) |
|
Set the obstacle color.
- Parameters
-
_color | is the color to set. |
GLvoid Obstacle::setId |
( |
GLint |
_id | ) |
|
Set the obstacleId.
- Parameters
-
GLvoid Obstacle::setModelId |
( |
GLint |
_modelId | ) |
|
Set the obstacle modelId.
- Parameters
-
_modelId | is the modelId to set. |
GLvoid Obstacle::setType |
( |
GLint |
_type | ) |
|
Set the obstacle type.
- Parameters
-
It is the obstacle cell position.
It is the obstacle color.
It is the obstacle modelId.
It is the obstacle position.
It is the obstacle type value.
The documentation for this class was generated from the following files: