Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-08-15 12:51:49 +0000
committerStijn Buys <ingar@osirion.org>2008-08-15 12:51:49 +0000
commit68fc01c7ce3f089e10a53e6dac92e2f63a9a8efd (patch)
tree6c7347c625abf9f8d333dac30c65246d0dce1b35 /src/model
parent6a7b53b2681664aa0c53b3797cbda7e0fb814798 (diff)
adding new files
Diffstat (limited to 'src/model')
-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__
+