From 68fc01c7ce3f089e10a53e6dac92e2f63a9a8efd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 15 Aug 2008 12:51:49 +0000 Subject: adding new files --- src/model/dock.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/model/dock.h (limited to 'src/model/dock.h') 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__ + -- cgit v1.2.3