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 "obstacle.h" 0013 0014 Obstacle::Obstacle() : Object(ObjectType::Obstacle) 0015 { 0016 setSVGName(QStringLiteral( "bush" )); 0017 } 0018 0019 // 0020 // Getters / Setters 0021 // 0022 0023 void Obstacle::setType(Obstacle::Type t) 0024 { 0025 m_type = t; 0026 0027 switch (m_type) 0028 { 0029 default: 0030 case Obstacle::Bush: 0031 setSVGName(QStringLiteral( "bush" )); 0032 break; 0033 } 0034 } 0035 0036 Obstacle::Type Obstacle::getType() const 0037 { 0038 return m_type; 0039 } 0040