]> ruin.nu Git - hbs.git/blobdiff - bs/bsdoc.cpp
fixed some const/stl problems..
[hbs.git] / bs / bsdoc.cpp
index 3d32cad004dd1aa92a123bdbc730ab7755d4115d..e5504f93d16d9e5c70cf8151b3effb44e91b3910 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "bsdoc.h"
 
+
 BSDoc::BSDoc()
 {
   modified = false;
@@ -50,3 +51,25 @@ bool BSDoc::isModified() const
 {
   return modified;
 }
+
+///////////////////////////////////////////////////////////////////////////
+//
+
+int BSDoc::newBattle(QString name)
+{
+       m_Battles[name]["Friendly"]["Home Planet"];
+       m_Battles[name]["Hostile"];
+
+       modified = true;
+       emit documentChanged();
+       return 0;
+}
+
+/////////////////////////////////////////////////////////////////////////
+//
+
+const std::map<QString, std::map<QString, std::map<QString, Fleet> > >& BSDoc::Battles() const
+{
+       return m_Battles;
+}
+