Racing Web
|
#include "src/pregen.h"
Functions | |
std::vector< std::vector< const Car * > > | LoadPreGeneratedSchedule (const std::vector< Car > &roster) |
std::vector< const Car * > | BuildPreGenHeat (const std::vector< Car > &roster, const int one, const int two, const int three, const int four) |
std::vector< const Car * > BuildPreGenHeat | ( | const std::vector< Car > & | roster, |
const int | one, | ||
const int | two, | ||
const int | three, | ||
const int | four | ||
) |
helper function to generate a single heat. used in conjuction with https://stanpope.net/ppngen.html params one, two, three, four match indexes in the roster vector
one | the roster vector index of the car to place in lane one |
two | the roster vector index of the car to place in lane two |
three | the roster vector index of the car to place in lane three |
four | the roster vector index of the car to place in lane four |
std::vector< std::vector< const Car * > > LoadPreGeneratedSchedule | ( | const std::vector< Car > & | roster | ) |
spits out a pre-generated schedule for 4 lanes using a more optimal pattern
roster | vector of cars in the race roster |