PositionController Class check if the cube has a collision with obstacles.  
 More...
#include <positioncontroller.h>
 | 
| 
void  | collision () | 
|   | Signal emitted when the cube has a collision with an obstacle. 
  | 
|   | 
 | 
| 
void  | checkCollision () | 
|   | Check if the cube has a collision with an obstacle. 
  | 
|   | 
PositionController Class check if the cube has a collision with obstacles. 
- Version
 - 1.0 
 
- Author
 - #34 
 
 
  
  
      
        
          | PositionController::PositionController  | 
          ( | 
          Cube *  | 
          _cube,  | 
         
        
           | 
           | 
          Level *  | 
          _level,  | 
         
        
           | 
           | 
          QObject *  | 
          _parent = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
explicit   | 
  
 
Create a PositionController Objects. 
- Parameters
 - 
  
    | _cube | is the cube Object pointer.  | 
    | _level | is the level Object pointer.  | 
    | _parent | is the parent Object pointer.  | 
  
   
 
 
  
  
      
        
          | bool PositionController::isInteger  | 
          ( | 
          float  | 
          f | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Check if a float is an integer. 
- Parameters
 - 
  
  
 
- Returns
 - true if is an integer. 
 
 
 
Returns the cell coordinates from absolute position. 
- Parameters
 - 
  
    | position | is the vector of absolute coordinates. | 
  
   
- Returns
 - the cell coordinates from absolute position. 
 
 
 
  
  
      
        
          | QTimer* PositionController::checkPositionTimer | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | Cube* PositionController::cube | 
         
       
   | 
  
private   | 
  
 
It is the pointer to the Cube Object. 
 
 
  
  
      
        
          | Level* PositionController::level | 
         
       
   | 
  
private   | 
  
 
Is the pointer to the Level Object. 
 
 
  
  
      
        
          | GLint PositionController::levelLength | 
         
       
   | 
  
private   | 
  
 
It is the length of the Level. 
 
 
  
  
      
        
          | GLint PositionController::levelWidth | 
         
       
   | 
  
private   | 
  
 
It is the width of the Level. 
 
 
  
  
      
        
          | QVector<QVector<QVector<bool> > > PositionController::obstacleCells | 
         
       
   | 
  
private   | 
  
 
It is the 3d matrix rappresent obstacle cells 
 
 
  
  
      
        
          | QObject* PositionController::parent | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: