]> ruin.nu Git - hbs.git/commitdiff
Initial commit of unittype.cpp and unittype.h
authorMichael Andreen <harv@ruin.nu>
Tue, 22 Jan 2002 19:43:28 +0000 (19:43 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 22 Jan 2002 19:43:28 +0000 (19:43 +0000)
bs/fleet.h
bs/unittype.cpp [new file with mode: 0644]
bs/unittype.h [new file with mode: 0644]

index 16422dd7b80b163ed2dec9913ec0b66f1c46e058..7a2f489e57c3c5858520aa97bfe7ad3c8ba61dd8 100644 (file)
 #ifndef FLEET_H
 #define FLEET_H
 
+#include <map>
+#include <string>
 
 /**
   *@author Michael Andreen
   *This is the engine for the whole battlesystem.
+  *One of the few parts that I plan make fully portable.
   */
 
 class Fleet 
@@ -29,6 +32,11 @@ class Fleet
 public: 
        Fleet();
        ~Fleet();
+
+private:
+       string  m_name;
+       string  m_race;
+       map<string, units> 
 };
 
 #endif
diff --git a/bs/unittype.cpp b/bs/unittype.cpp
new file mode 100644 (file)
index 0000000..3b57cc1
--- /dev/null
@@ -0,0 +1,23 @@
+/***************************************************************************
+                          unittype.cpp  -  description
+                             -------------------
+    begin                : Tue Jan 22 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 "unittype.h"
+
+UnitType::UnitType(){
+}
+UnitType::~UnitType(){
+}
diff --git a/bs/unittype.h b/bs/unittype.h
new file mode 100644 (file)
index 0000000..5c66e01
--- /dev/null
@@ -0,0 +1,32 @@
+/***************************************************************************
+                          unittype.h  -  description
+                             -------------------
+    begin                : Tue Jan 22 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 UNITTYPE_H
+#define UNITTYPE_H
+
+
+/**
+  *@author Michael Andreen
+  */
+
+class UnitType {
+public: 
+       UnitType();
+       ~UnitType();
+};
+
+#endif