summaryrefslogtreecommitdiff
path: root/noncore/games/parashoot/base.cpp
Unidiff
Diffstat (limited to 'noncore/games/parashoot/base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/parashoot/base.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/noncore/games/parashoot/base.cpp b/noncore/games/parashoot/base.cpp
index c03802f..cdf1dfa 100644
--- a/noncore/games/parashoot/base.cpp
+++ b/noncore/games/parashoot/base.cpp
@@ -1,36 +1,36 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20#include "codes.h" 20#include "codes.h"
21#include "base.h" 21#include "base.h"
22#include "man.h" 22#include "man.h"
23 23
24#include <qpe/resource.h> 24#include <qtopia/resource.h>
25 25
26#include <qregexp.h> 26#include <qregexp.h>
27 27
28int damage; 28int damage;
29 29
30Base::Base(QCanvas* canvas) : 30Base::Base(QCanvas* canvas) :
31 QCanvasSprite(0, canvas), 31 QCanvasSprite(0, canvas),
32 kaboom("landmine"), 32 kaboom("landmine"),
33 ohdear("crmble01") 33 ohdear("crmble01")
34{ 34{
35 basearray = new QCanvasPixmapArray(); 35 basearray = new QCanvasPixmapArray();
36 QString b0 = Resource::findPixmap("parashoot/b0001"); 36 QString b0 = Resource::findPixmap("parashoot/b0001");
@@ -60,12 +60,18 @@ bool Base::baseDestroyed()
60{ 60{
61 return (damage >= 3); 61 return (damage >= 3);
62} 62}
63 63
64Base::~Base() 64Base::~Base()
65{ 65{
66} 66}
67 67
68int Base::rtti() const 68int Base::rtti() const
69{ 69{
70 return base_rtti; 70 return base_rtti;
71} 71}
72
73void
74Base::reposition(void)
75{
76 move(2, canvas()->height()-50);
77}