]> ruin.nu Git - hbs.git/blobdiff - bs/bsdoc.cpp
Added the possibility to add new battles.
[hbs.git] / bs / bsdoc.cpp
index 3d32cad004dd1aa92a123bdbc730ab7755d4115d..e3e046986418caaad4d4147646c393fbe2fb293b 100644 (file)
@@ -50,3 +50,24 @@ bool BSDoc::isModified() const
 {
   return modified;
 }
+
+///////////////////////////////////////////////////////////////////////////
+//
+
+int BSDoc::newBattle(QString name)
+{
+       m_Battles[name]["Friendly"]["Home Planet"];
+       m_Battles[name]["Hostile"];
+
+       emit documentChanged();
+       return 0;
+}
+
+/////////////////////////////////////////////////////////////////////////
+//
+
+std::map<QString, std::map<QString, std::map<QString, Fleet> > >& BSDoc::Battles()
+{
+       return m_Battles;
+}
+