Removed that logo from this bramch aswell..
[dbw.git] / src / CTrain.h
blobdd2e1b83a22b0331ae58eeb9e9d9f58b7c246612
1 /*
2 Copyright © 2004 Parallel Realities
3 Copyright © 2007-2008 Kővágó Zoltán <DirtY.iCE.hu@gmail.com>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #ifndef CTRAIN_H
23 #define CTRAIN_H
25 #include "CGameObject.h"
26 #include "CSprite.h"
28 class Train : public GameObject {
30 private:
32 float dx, dy;
34 int pause, think;
36 public:
38 char name[50];
40 int type;
42 bool active;
44 float x, y;
46 bool waitAtStart;
48 int startX, startY, endX, endY;
50 int height, width;
52 Sprite *sprite;
54 Train();
55 float getDX();
56 float getDY();
57 bool isReady();
58 bool isMoving();
59 bool waitsForPlayer();
60 void setName(char *name);
61 void set(int startX, int startY, int endX, int endY, int pause, bool fromStart);
62 bool openClose();
63 void move();
65 int getPause();
69 #endif //CTRAIN_H