~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/network-history.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
16
16
//  02110-1301, USA.
17
17
 
 
18
#include <sstream>
18
19
#include "network-history.h"
19
20
#include "player.h"
20
21
 
21
22
#include "xmlhelper.h"
22
23
 
 
24
std::string NetworkHistory::d_tag = "networkhistory";
 
25
 
23
26
NetworkHistory::NetworkHistory(History *history, Player *owner)
24
27
     : Ownable(owner)
25
28
{
39
42
bool NetworkHistory::save(XML_Helper* helper) const
40
43
{
41
44
  bool retval = true;
42
 
  retval &= helper->openTag("networkhistory");
 
45
  retval &= helper->openTag(NetworkHistory::d_tag);
43
46
  retval &= helper->saveData("owner", d_owner->getId());
44
47
  d_history->save(helper);
45
48
  retval &= helper->closeTag();