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

« back to all changes in this revision

Viewing changes to src/counter.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:
22
22
 
23
23
#include "xmlhelper.h"
24
24
 
 
25
std::string FL_Counter::d_tag = "counter";
 
26
 
25
27
FL_Counter* fl_counter;
26
28
 
27
29
FL_Counter::FL_Counter(Uint32 start)
38
40
{
39
41
}
40
42
 
 
43
void FL_Counter::syncToId(Uint32 id)
 
44
{
 
45
  if (id > d_curID)
 
46
    d_curID = id;
 
47
}
 
48
 
41
49
Uint32 FL_Counter::getNextId()
42
50
{
43
51
  Uint32 ret = d_curID;
49
57
{
50
58
    bool retval =true;
51
59
 
52
 
    retval &= helper->openTag("counter");
 
60
    retval &= helper->openTag(FL_Counter::d_tag);
53
61
    retval &= helper->saveData("curID", d_curID);
54
62
    retval &= helper->closeTag();
55
63