]> ruin.nu Git - hbs.git/blob - bs/bsdoc.cpp
f26e7e4d66a83104368eb41af05bcc5c1e1f74eb
[hbs.git] / bs / bsdoc.cpp
1 /***************************************************************************
2                           bcdoc.cpp  -  description
3                              -------------------
4     begin                : Sun May 27 22:13:58 CEST 2001
5     copyright            : (C) 2001 by Michael Andreen
6     email                : whale@linux.nu
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #include "bsdoc.h"
19
20 BSDoc::BSDoc()
21 {
22   modified = false;
23 }
24
25 BSDoc::~BSDoc()
26 {
27 }
28
29 void BSDoc::newDoc()
30 {
31 }
32
33 bool BSDoc::save()
34 {
35   return true;
36 }
37
38 bool BSDoc::saveAs(const QString &filename)
39 {
40   return true;
41 }
42
43 bool BSDoc::load(const QString &filename)
44 {
45   emit documentChanged();
46   return true;
47 }
48
49 bool BSDoc::isModified() const
50 {
51   return modified;
52 }
53
54 ///////////////////////////////////////////////////////////////////////////
55 //
56
57 int BSDoc::newBattle(QString name)
58 {
59         m_Battles[name]["Friendly"]["Home Planet"];
60         m_Battles[name]["Hostile"];
61
62         modified = true;
63         emit documentChanged();
64         return 0;
65 }
66
67 /////////////////////////////////////////////////////////////////////////
68 //
69
70 std::map<QString, std::map<QString, std::map<QString, Fleet> > >& BSDoc::Battles()
71 {
72         return m_Battles;
73 }
74