diff options
Diffstat (limited to 'src/model/map.h')
-rw-r--r-- | src/model/map.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/model/map.h b/src/model/map.h index 9b75f7a..f9b036f 100644 --- a/src/model/map.h +++ b/src/model/map.h @@ -64,6 +64,11 @@ private: /// true if the last read line contained a new classname bool got_classname() const; + /// true if we are inside the requested class + bool in_class(const char *name) { + return (classname_current.compare(name) == 0); + } + /// true if the last read line contained a class closing bracket inline bool got_classend() const { @@ -130,7 +135,7 @@ private: void load_worldspawn(Model *model); /// load parsed primitives into a FragmentGroup - void load_fragmentgroup(Model *model, const FragmentGroup::Type type); + void load_fragmentgroup(Model *model, const FragmentGroup::Type class_type); /// clear the current list of per-material geometry void clear_materials(); @@ -160,9 +165,10 @@ private: math::Vector3f class_maxbbox; math::Vector3f class_minbbox; + float class_angle; + float class_speed; math::Vector3f map_center; - Materials map_materials; }; |