~ubuntu-branches/ubuntu/maverick/lordsawar/maverick

« back to all changes in this revision

Viewing changes to src/temple.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2010-04-10 09:29:33 UTC
  • mfrom: (1.1.9 upstream) (5.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100410092933-23uq4dxig30kmtcw
Tags: 0.1.8-1
* New upstream release.
* Add misc:Depends for -data package.
* Bump Standards Version to 3.8.4. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
std::string Temple::d_tag = "temple";
28
28
 
29
 
Temple::Temple(Vector<int> pos, std::string name, int type)
30
 
:NamedLocation(pos, Temple::getWidth(), name,
 
29
Temple::Temple(Vector<int> pos, guint32 width, std::string name, int type)
 
30
:NamedLocation(pos, width, name,
31
31
               name + _(" can bless your armies or give you quests.")), 
32
32
    d_type(type)
33
33
{
40
40
        }
41
41
}
42
42
 
43
 
Temple::Temple(XML_Helper* helper)
44
 
    :NamedLocation(helper, Temple::getWidth())
 
43
Temple::Temple(XML_Helper* helper, guint32 width)
 
44
    :NamedLocation(helper, width)
45
45
{
46
46
    //mark the location on the game map as occupied by a temple
47
47
    helper->getData(d_type, "type");
58
58
{
59
59
}
60
60
 
 
61
Temple::Temple(const Temple& t, Vector<int> pos)
 
62
  :NamedLocation(t, pos), d_type(t.d_type)
 
63
{
 
64
}
 
65
 
61
66
Temple::~Temple()
62
67
{
63
68
}