Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
Obstacle Class Reference

This class rapresents an Obstacle. More...

#include <obstacle.h>

Collaboration diagram for Obstacle:
Collaboration graph

Public Member Functions

 Obstacle (GLint _modelId, Vector3f *_cell)
 Constructor of Obstacle. More...
 
 ~Obstacle ()
 Safely destroy an Obstacle object.
 
GLvoid draw (GLboolean simplifyForPicking)
 draw function for Obstacle Object. More...
 
GLint getId ()
 This method return the obstacleId. More...
 
GLvoid setId (GLint _id)
 Set the obstacleId. More...
 
GLvoid setCell (Vector3f *_cell)
 Set the cell of the Obstacle. More...
 
Vector3f * getCell ()
 Returns the cell of the Obstacle. More...
 
Vector3f * getPosition ()
 Returns the obstacle position. More...
 
GLvoid setColor (QColor _color)
 Set the obstacle color. More...
 
QColor getColor ()
 Returns the obstacle color. More...
 
GLvoid setModelId (GLint _modelId)
 Set the obstacle modelId. More...
 
GLint getModelId ()
 Returns the obstacle modelId. More...
 
GLvoid setType (GLint _type)
 Set the obstacle type. More...
 
GLint getType ()
 Returns the obstacle type. More...
 

Private Attributes

GLint id
 
Vector3f * position
 
Vector3f * cell
 
QColor color
 
GLint modelId
 
GLint type
 

Detailed Description

This class rapresents an Obstacle.

Version
1.0
Author
#34

Constructor & Destructor Documentation

Obstacle::Obstacle ( GLint  _modelId,
Vector3f *  _cell 
)
explicit

Constructor of Obstacle.

Parameters
_modelIdis the modelId of the Obstacle.
_cellis the cell of the Obstacle.

Here is the call graph for this function:

Member Function Documentation

GLvoid Obstacle::draw ( GLboolean  simplifyForPicking)

draw function for Obstacle Object.

Parameters
simplifyForPicking
Vector3f * Obstacle::getCell ( )

Returns the cell of the Obstacle.

Returns
the cell of the Obstacle.

Here is the caller graph for this function:

QColor Obstacle::getColor ( )

Returns the obstacle color.

Returns
the obstacle color.
GLint Obstacle::getId ( )

This method return the obstacleId.

Returns
the obstacleId.

Here is the caller graph for this function:

GLint Obstacle::getModelId ( )

Returns the obstacle modelId.

Returns
the obstacle modelId.

Here is the caller graph for this function:

Vector3f * Obstacle::getPosition ( )

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
_cellis the cel to set.

Here is the caller graph for this function:

GLvoid Obstacle::setColor ( QColor  _color)

Set the obstacle color.

Parameters
_coloris the color to set.

Here is the caller graph for this function:

GLvoid Obstacle::setId ( GLint  _id)

Set the obstacleId.

Parameters
_idis the id to set.

Here is the caller graph for this function:

GLvoid Obstacle::setModelId ( GLint  _modelId)

Set the obstacle modelId.

Parameters
_modelIdis the modelId to set.
GLvoid Obstacle::setType ( GLint  _type)

Set the obstacle type.

Parameters
_typeis the type to set.

Member Data Documentation

Vector3f* Obstacle::cell
private

It is the obstacle cell position.

QColor Obstacle::color
private

It is the obstacle color.

GLint Obstacle::id
private

It is the obstacle id.

GLint Obstacle::modelId
private

It is the obstacle modelId.

Vector3f* Obstacle::position
private

It is the obstacle position.

GLint Obstacle::type
private

It is the obstacle type value.


The documentation for this class was generated from the following files: