CCoche.h File Reference

Clase que define las características de uno de los coches dentro del juego. More...

#include <windows.h>
#include <string>
#include <vector>
#include <map>
#include "../Geometria/CRectaS2D.h"
#include "../Geometria/CVector2D.h"
#include "../Geometria/CPunto2D.h"
#include "../Utilidades/CSucesos.h"
#include "CSensor.h"

Go to the source code of this file.

Typedefs

typedef vector< SPoligonoTDibujos
typedef vector< CSensorTSensores
typedef map< string, CCocheTCoches
typedef TCoches::iterator TItCoche
typedef TCoches::const_iterator TConstItCoche
typedef pair< string, CCocheTParCoche
typedef pair< TItCoche, bool > TResCoche

Enumerations

enum  ESensor {
  Sensor_LateralIzq = 0, Sensor_LateralDcho, Sensor_FrontalCentro, Sensor_FrontalIzq,
  Sensor_FrontalDcho, Sensor_RetroIzq, Sensor_RetroDcho, Sensor_RetroTrasIzq,
  Sensor_RetroTrasDcho, Sensor_MaxSensor
}

Variables

const int Recta_Misma = 0
const int Recta_Avance = 1
const int Recta_Retroceso = - 1


Detailed Description

Clase que define las características de uno de los coches dentro del juego.

F.Creación:15 de enero de 2004.
Autor: Francisco José Gallego Durán.

Definition in file CCoche.h.


Typedef Documentation

typedef map<string, CCoche> TCoches
 

Definition at line 194 of file CCoche.h.

typedef TCoches::const_iterator TConstItCoche
 

Definition at line 196 of file CCoche.h.

typedef vector<SPoligono> TDibujos
 

Vector de polígonos

Aquí se almacenarán todos los polígonos que sirven para maquear el coche por dentro.

Definition at line 57 of file CCoche.h.

typedef TCoches::iterator TItCoche
 

Definition at line 195 of file CCoche.h.

typedef pair<string, CCoche> TParCoche
 

Definition at line 197 of file CCoche.h.

typedef pair<TItCoche, bool> TResCoche
 

Definition at line 198 of file CCoche.h.

typedef vector<CSensor> TSensores
 

Definition at line 61 of file CCoche.h.


Enumeration Type Documentation

enum ESensor
 

Enumeracion de los sensores presentes

DEPRECATED! Esta enumeración describía anteriormente los sensores principales
de un coche, asociándole un identificador numérico a cada uno de ellos. En un futuro
próximo, se usará un vector dinámico para ir añadiendo los sensores.

Enumeration values:
Sensor_LateralIzq 
Sensor_LateralDcho 
Sensor_FrontalCentro 
Sensor_FrontalIzq 
Sensor_FrontalDcho 
Sensor_RetroIzq 
Sensor_RetroDcho 
Sensor_RetroTrasIzq 
Sensor_RetroTrasDcho 
Sensor_MaxSensor 

Definition at line 73 of file CCoche.h.


Variable Documentation

const int Recta_Avance = 1
 

Definition at line 89 of file CCoche.h.

Referenced by CSimulador::ActualizarSensores(), CSimulador::ComprobarColisiones(), and CSimulador::PuntuarCorredores().

const int Recta_Misma = 0
 

Definition at line 88 of file CCoche.h.

Referenced by CCoche::GetAvanceRetroceso(), CSimulador::IniciarSimulacion(), and CCoche::Limpiar().

const int Recta_Retroceso = - 1
 

Definition at line 90 of file CCoche.h.

Referenced by CSimulador::ComprobarColisiones(), and CSimulador::PuntuarCorredores().


Generated on Fri May 13 16:32:36 2005 for Screaming Racers by  doxygen 1.4.2