SVN_SILENT Move ObstacleType within Obstacle.
[kdegames.git] / ktron / obstacle.cpp
blobe271c0833e7b06679afb1889bdb51ab6071d17b2
1 /**********************************************************************************
2 This file is part of the game 'KTron'
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>
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.
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.
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.
22 *******************************************************************************/
24 #include "obstacle.h"
26 Obstacle::Obstacle() : Object(ObjectType::Obstacle)
28 setSVGName("bush");
32 // Getters / Setters
35 void Obstacle::setType(Obstacle::Type t)
37 type = t;
39 switch (type)
41 default:
42 case Obstacle::Bush:
43 setSVGName("bush");
44 break;
48 Obstacle::Type Obstacle::getType()
50 return type;