]> git.mxchange.org Git - quix0rs-blobwars.git/blob - src/CTrain.h
Use UNIX line endings everywhere.
[quix0rs-blobwars.git] / src / CTrain.h
1 /*
2 Copyright (C) 2004 Parallel Realities
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19 */
20
21 class Train : public GameObject {
22
23         private:
24
25                 float dx, dy;
26
27                 int pause, think;
28
29         public:
30
31                 char name[50];
32
33                 int type;
34
35                 bool active;
36
37                 float x, y;
38                 
39                 bool waitAtStart;
40                 
41                 int startX, startY, endX, endY;
42
43                 int height, width;
44                 
45                 Sprite *sprite;
46
47         Train();
48         float getDX();
49         float getDY();
50         bool isReady();
51         bool isMoving();
52         bool waitsForPlayer();
53         void setName(const char *name);
54         void set(int startX, int startY, int endX, int endY, int pause, bool fromStart);
55         bool openClose();
56         void move();
57         
58         int getPause();
59
60 };