1 | /********************************************************************************** |
2 | This file is part of the game 'KTron' |
3 | |
4 | Copyright (C) 1998-2000 by Matthias Kiefer <matthias.kiefer@gmx.de> |
5 | Copyright (C) 2005 Benjamin C. Meyer <ben at meyerhome dot net> |
6 | Copyright (C) 2008-2009 Stas Verberkt <legolas at legolasweb dot nl> |
7 | |
8 | This program is free software; you can redistribute it and/or modify |
9 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2 of the License, or |
11 | (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
21 | |
22 | *******************************************************************************/ |
23 | |
24 | #include "object.h" |
25 | |
26 | Object::Object() |
27 | { |
28 | m_objectType = ObjectType::Object; |
29 | } |
30 | |
31 | Object::Object(ObjectType::Type t) |
32 | { |
33 | m_objectType = t; |
34 | } |
35 | |
36 | QString Object::getSVGName() { |
37 | return m_svgName; |
38 | } |
39 | |
40 | void Object::setSVGName(QString name) { |
41 | m_svgName = name; |
42 | } |
43 | |
44 | int Object::getX() |
45 | { |
46 | return m_xCoordinate; |
47 | } |
48 | |
49 | int Object::getY() |
50 | { |
51 | return m_yCoordinate; |
52 | } |
53 | |
54 | void Object::setCoordinates(int x, int y) |
55 | { |
56 | m_xCoordinate = x; |
57 | m_yCoordinate = y; |
58 | } |
59 | |
60 | ObjectType::Type Object::getObjectType() |
61 | { |
62 | return m_objectType; |
63 | } |
64 | |