Logo Search packages:      
Sourcecode: race version File versions

car_config.cpp

#include <ClanLib/core.h>

#include "car_config.h"

// class that stores the variables configurable in the car_name.res resource
// file, and some other info.

CarConfig::CarConfig()
{
      init();
}


void CarConfig::init()
{
      for( int i=0;i<8;i++ )
      {
            car[i] = 0;
            color[i] = i;
      
            loaded[i] = false;
      
            road_speed[i] = 0;
            terrain_speed[i] = 0;
            turn_delay[i] = 0;
      
            dir_path[i] = "";
            res_path[i] = ""; 
      }
}


Generated by  Doxygen 1.6.0   Back to index