#include <Theme.h>
Public Member Functions | |
Theme (std::istream &source) | |
Construct a theme object from an input stream. | |
virtual | ~Theme () |
Destruct the theme and free all the pieces. | |
const Skybox & | get_skybox () const |
get a reference to the skybox object. | |
std::size_t | get_number_of_segments () const |
get the number of track segments types avalible for tracks in this theme. | |
const Segment & | get_segment (std::size_t index) const |
get a segment by index. | |
const std::string & | get_name () const |
get the name of the theme. | |
std::size_t | get_segment_index (std::string name) const |
Get the index of a segment by name. | |
std::size_t | get_default_segment_index () const |
Get the index of the default segment. | |
bool | get_use_sky_particles () const |
Return true iff the theme should use racer's Graphics::SkyParticles. | |
Protected Member Functions | |
void | find_default_segment () |
Protected Attributes | |
Skybox | skybox |
The skybox for the background in this theme. | |
std::vector< boost::shared_ptr< Segment > > | segments |
The different track segments useable in this theme. | |
std::string | name |
The name of the theme. Will appear as a track property. | |
std::size_t | m_default_segment_index |
True iff the theme should use racer's Graphics::SkyParticles. | |
bool | m_use_sky_particles |
Includes the sky, the types of track avaiable, and random decorative meshes. It isn't quite swappable across tracks since the themes can define different track segments which have variable constraints to their placement.
Definition at line 31 of file Theme.h.
Track::Theme::Theme | ( | std::istream & | source | ) |
Track::Theme::~Theme | ( | ) | [virtual] |
std::size_t Track::Theme::get_default_segment_index | ( | ) | const |
const std::string & Track::Theme::get_name | ( | ) | const |
std::size_t Track::Theme::get_number_of_segments | ( | ) | const |
const Segment & Track::Theme::get_segment | ( | std::size_t | index | ) | const |
std::size_t Track::Theme::get_segment_index | ( | std::string | name | ) | const |
const Skybox & Track::Theme::get_skybox | ( | ) | const |
bool Track::Theme::get_use_sky_particles | ( | ) | const |
Return true iff the theme should use racer's Graphics::SkyParticles.
std::size_t Track::Theme::m_default_segment_index [protected] |
True iff the theme should use racer's Graphics::SkyParticles.
bool Track::Theme::m_use_sky_particles [protected] |
std::string Track::Theme::name [protected] |
std::vector<boost::shared_ptr<Segment> > Track::Theme::segments [protected] |
Skybox Track::Theme::skybox [protected] |
Generated at Mon Sep 6 00:41:19 2010 by Doxygen version 1.4.7 for Racer version svn335.