Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/model/dock.cc20
-rw-r--r--src/model/dock.h43
2 files changed, 63 insertions, 0 deletions
diff --git a/src/model/dock.cc b/src/model/dock.cc
new file mode 100644
index 0000000..b850722
--- /dev/null
+++ b/src/model/dock.cc
@@ -0,0 +1,20 @@
+/*
+ model/dock.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#include "model/dock.h"
+
+namespace model {
+
+Dock::Dock()
+{
+ dock_radius = 1.0f;
+}
+
+Dock::~Dock()
+{
+}
+
+}
diff --git a/src/model/dock.h b/src/model/dock.h
new file mode 100644
index 0000000..0ad2738
--- /dev/null
+++ b/src/model/dock.h
@@ -0,0 +1,43 @@
+/*
+ model/dock.h
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_MODEL_DOCK_H__
+#define __INCLUDED_MODEL_DOCK_H__
+
+#include "math/vector3f.h"
+#include "math/color.h"
+
+namespace model
+{
+
+/// a docking location
+class Dock
+{
+public:
+ Dock();
+ ~Dock();
+
+ /// location of the dock
+ inline math::Vector3f const & location() const
+ {
+ return dock_location;
+ }
+
+ /// trigger distance in game units, default is 1.0f
+ inline float radius() const
+ {
+ return dock_radius;
+ }
+
+
+ math::Vector3f dock_location;
+ float dock_radius;
+};
+
+}
+
+#endif // __INCLUDED_MODEL_DOCK_H__
+