]> ruin.nu Git - hbs.git/blobdiff - bs/bsdoc.cpp
initial commit of the BSConf class.
[hbs.git] / bs / bsdoc.cpp
index 57811c70417188fd0d0914b170d815546fd7c429..a782c08412f9f8dcf1c70a9480cb84489feded9b 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
-#include "bcdoc.h"
+#include "bsdoc.h"
 
-BcDoc::BcDoc()
+
+BSDoc::BSDoc()
 {
   modified = false;
 }
 
-BcDoc::~BcDoc()
+BSDoc::~BSDoc()
 {
 }
 
-void BcDoc::newDoc()
+void BSDoc::newDoc()
 {
 }
 
-bool BcDoc::save()
+bool BSDoc::save()
 {
   return true;
 }
 
-bool BcDoc::saveAs(const QString &filename)
+bool BSDoc::saveAs(const QString &filename)
 {
   return true;
 }
 
-bool BcDoc::load(const QString &filename)
+bool BSDoc::load(const QString &filename)
 {
   emit documentChanged();
   return true;
 }
 
-bool BcDoc::isModified() const
+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;
+}
+
+/////////////////////////////////////////////////////////////////////////
+//
+
+std::map<QString, std::map<QString, std::map<QString, Fleet> > >& BSDoc::Battles()
+{
+       return m_Battles;
+}
+