49 std::map<wchar_t, std::function<Section()>>
builder_;
59 typedef std::shared_ptr<Track>
shared;
63 Track(std::string file);
65 void next(std::string file);
Scene::shared scene_
Definition: track.h:54
Physics::shared physics_
Definition: track.h:55
int id
Definition: track.h:41
std::vector< Section > segments_
Definition: track.h:60
int x_
Definition: track.h:53
char get_direction(Section::Type type, Section::Type previous, char last_direction)
Definition: track.cpp:204
btRigidBody * body
Definition: track.h:39
std::shared_ptr< Physics > shared
Definition: physics.h:33
void reset()
Definition: track.cpp:146
void next(std::string file)
Definition: track.cpp:51
Ogre::SceneNode * node
Definition: track.h:37
std::shared_ptr< Scene > shared
Definition: scene.h:43
void open_file(std::string file)
Definition: track.cpp:38
std::string file_name_
Definition: track.h:47
Section create_section(std::string name)
Definition: track.cpp:85
Type type
Definition: track.h:36
Section create_physic_element(std::string name, Ogre::SceneNode *graphic_element)
Definition: track.cpp:101
int z_
Definition: track.h:53
int columns_
Definition: track.h:61
std::map< wchar_t, std::pair< char, char > > directions_
Definition: track.h:50
Ogre::Entity * physics_entity
Definition: track.h:38
btVector3 position
Definition: track.h:40
Ogre::SceneNode * create_graphic_element(std::string name)
Definition: track.cpp:91
std::map< char, char > ends_
Definition: track.h:51
void order_track()
Definition: track.cpp:159
std::shared_ptr< Track > shared
Definition: track.h:59
int get_next_section(int index, char direction)
Definition: track.cpp:185
std::wifstream file_
Definition: track.h:48
Type
Definition: track.h:34
Section::Type get_section_type(std::string name)
Definition: track.cpp:123
int index_
Definition: track.h:53
Track(std::string file)
Definition: track.cpp:21
std::map< wchar_t, std::function< Section()> > builder_
Definition: track.h:49
wchar_t current_char_
Definition: track.h:56
std::pair< char, char > direction
Definition: track.h:42