File indexing completed on 2024-04-28 04:04:39

0001 /*
0002     This file is part of the game 'KTron'
0003 
0004     SPDX-FileCopyrightText: 1998-2000 Matthias Kiefer <matthias.kiefer@gmx.de>
0005     SPDX-FileCopyrightText: 2005 Benjamin C. Meyer <ben at meyerhome dot net>
0006     SPDX-FileCopyrightText: 2008-2009 Stas Verberkt <legolas at legolasweb dot nl>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 
0010 */
0011   
0012 #include "object.h"
0013 
0014 Object::Object()
0015 {
0016     m_objectType = ObjectType::Object;
0017 }
0018 
0019 Object::Object(ObjectType::Type t)
0020 {
0021     m_objectType = t;
0022 }
0023 
0024 QString Object::getSVGName() const
0025 {
0026     return m_svgName;
0027 }
0028 
0029 void Object::setSVGName(const QString &name) {
0030     m_svgName = name;
0031 }
0032 
0033 int Object::getX() const
0034 {
0035     return m_xCoordinate;
0036 }
0037 
0038 int Object::getY() const
0039 {
0040     return m_yCoordinate;
0041 }
0042 
0043 void Object::setCoordinates(int x, int y)
0044 {
0045     m_xCoordinate = x;
0046     m_yCoordinate = y;
0047 }
0048 
0049 ObjectType::Type Object::getObjectType() const
0050 {
0051     return m_objectType;
0052 }