Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/classes.h')
-rw-r--r--src/model/classes.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/model/classes.h b/src/model/classes.h
index a0e9d1f..f853da8 100644
--- a/src/model/classes.h
+++ b/src/model/classes.h
@@ -14,6 +14,28 @@
namespace model
{
+/* ---- class MapClass --------------------------------------------- */
+
+class MapClass
+{
+public:
+ MapClass();
+ ~MapClass();
+
+ inline const math::Vector3f &location() const { return mapclass_location; }
+
+ inline const math::Axis &axis() const { return mapclass_axis; }
+
+
+ inline void set_location(const math::Vector3f location) { mapclass_location.assign(location); }
+
+ inline void set_axis(const math::Axis axis) { mapclass_axis.assign(axis); }
+
+private:
+ math::Vector3f mapclass_location;
+ math::Axis mapclass_axis;
+};
+
/* ---- class Light ------------------------------------------------ */
/// an exterior light
@@ -107,9 +129,9 @@ public:
Flare();
~Flare();
- inline float angle() const
+ inline const math::Axis axis() const
{
- return flare_angle;
+ return flare_axis;
}
inline bool engine() const
@@ -117,7 +139,7 @@ public:
return flare_engine;
}
- float flare_angle;
+ math::Axis flare_axis;
bool flare_engine;
};