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

« back to all changes in this revision

Viewing changes to src/port.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:
18
18
#include "port.h"
19
19
#include "GameMap.h"
20
20
 
 
21
std::string Port::d_tag = "port";
 
22
 
21
23
Port::Port(Vector<int> pos)
22
24
  :Location(pos)
23
25
{
45
47
{
46
48
    bool retval = true;
47
49
 
48
 
    retval &= helper->openTag("port");
 
50
    retval &= helper->openTag(Port::d_tag);
49
51
    retval &= helper->saveData("id", d_id);
50
52
    retval &= helper->saveData("x", getPos().x);
51
53
    retval &= helper->saveData("y", getPos().y);