Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-04 11:39:24 +0000
committerStijn Buys <ingar@osirion.org>2008-05-04 11:39:24 +0000
commit33e45d8052b385aa8b1fce68122c8d11f50e7e42 (patch)
treea1a92304f5be2bb322d4d491e737972eb9dd9dfc /src/model/engine.h
parent6155d32aa9e5fc2e5548fcc863a64d442cf5770a (diff)
better target_engine rendering
Diffstat (limited to 'src/model/engine.h')
-rw-r--r--src/model/engine.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/model/engine.h b/src/model/engine.h
new file mode 100644
index 0000000..fc868c9
--- /dev/null
+++ b/src/model/engine.h
@@ -0,0 +1,32 @@
+/*
+ model/engine.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_ENGINE_H__
+#define __INCLUDED_MODEL_ENGINE_H__
+
+#include "math/vector3f.h"
+
+namespace model {
+
+/// a spacecraft engine
+class Engine
+{
+public:
+ Engine(math::Vector3f const & location);
+ ~Engine();
+
+ inline math::Vector3f const & location() const { return engine_location; }
+
+ inline float radius() const { return engine_radius; }
+
+ math::Vector3f engine_location;
+ float engine_radius;
+};
+
+}
+
+#endif // __INCLUDED_MODEL_ENGINE_H__
+