]> ruin.nu Git - hbs.git/commitdiff
initial commit
authorMichael Andreen <harv@ruin.nu>
Thu, 4 Apr 2002 20:01:18 +0000 (20:01 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 4 Apr 2002 20:01:18 +0000 (20:01 +0000)
bs/planet.cpp [new file with mode: 0644]
bs/planet.h [new file with mode: 0644]

diff --git a/bs/planet.cpp b/bs/planet.cpp
new file mode 100644 (file)
index 0000000..03c4537
--- /dev/null
@@ -0,0 +1,23 @@
+/***************************************************************************
+                          planet.cpp  -  description
+                             -------------------
+    begin                : Wed Apr 3 2002
+    copyright            : (C) 2002 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#include "planet.h"
+
+Planet::Planet(){
+}
+Planet::~Planet(){
+}
diff --git a/bs/planet.h b/bs/planet.h
new file mode 100644 (file)
index 0000000..f98d723
--- /dev/null
@@ -0,0 +1,39 @@
+/***************************************************************************
+                          planet.h  -  description
+                             -------------------
+    begin                : Wed Apr 3 2002
+    copyright            : (C) 2002 by Michael Andreen
+    email                : whale@linux.nu
+ ***************************************************************************/
+
+/***************************************************************************
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ ***************************************************************************/
+
+#ifndef PLANET_H
+#define PLANET_H
+
+#include "fleet.h"
+
+/**This class is the implementation of a planet.
+ *
+ * Yes I know.. In real life you wouldn't call a planet a fleet, but this isn't
+ * real life, it's a game engine, and in this engine a planet got all the 
+ * attributes that a fleet got + some additions, so I think the inheritance
+ * is fully legal from a OOP standpoint. If it isn't, then please correct me ;)
+  *@author Michael Andreen
+  */
+
+class Planet : public Fleet  {
+public: 
+       Planet();
+       ~Planet();
+       unsigned score();
+};
+
+#endif