initial commit, lordsawar source, slightly modified
[lordsawar] / src / Location.cpp
1 // Copyright (C) 2000, 2001, 2003 Michael Bartl
2 // Copyright (C) 2000, 2001, 2002, 2004, 2005 Ulf Lorenz
3 // Copyright (C) 2006 Andrea Paternesi
4 // Copyright (C) 2006, 2007, 2008 Ben Asselstine
5 //
6 //  This program is free software; you can redistribute it and/or modify
7 //  it under the terms of the GNU General Public License as published by
8 //  the Free Software Foundation; either version 3 of the License, or
9 //  (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU Library General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 
19 //  02110-1301, USA.
20
21 #include "Location.h"
22 #include "army.h"
23 #include "player.h"
24 #include "playerlist.h"
25 #include "stacklist.h"
26 #include "FogMap.h"
27
28 #include "xmlhelper.h"
29
30 Location::Location(Vector<int> pos, guint32 size)
31     :UniquelyIdentified(), LocationBox(pos, size)
32 {
33 }
34
35 Location::Location(const Location& loc)
36   :UniquelyIdentified(loc), LocationBox(loc)
37 {
38 }
39
40 Location::Location(const Location& loc, Vector<int> pos)
41   :UniquelyIdentified(loc), LocationBox(loc, pos)
42 {
43 }
44
45 Location::Location(XML_Helper* helper, guint32 size)
46     :UniquelyIdentified(helper), LocationBox(helper)
47 {
48     d_size = size;
49 }
50
51 Location::~Location()
52 {
53 }
54