1 /*
2    Copyright (C) 2000 Xavier Hosxe <xhosxe@free.fr>
3 
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (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.  See the
12   GNU General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 */
18 
19 #ifndef __PIEGE__
20 #define __PIEGE__
21 
22 
23 #include <stdlib.h>
24 #include <stdio.h>
25 
26 #include "sprite.hpp"
27 #include "list.hpp"
28 #include "explosion.hpp"
29 #include "spirale.hpp"
30 
31 class Piege : public Sprite {
32 public:
33     Piege(List *list, int speed, float x);
34     void draw();
35     void drawShadowable();
36     void move();
37     void collision(Sprite *);
38 
getX()39     float getX() { return x_+spotX_; }
getY()40     float getY() { return .5; }
getZ()41     float getZ() { return z_+spotZ_; }
42 
43 
44 protected:
45     int state_;
46     float spotX_,spotY_,spotZ_;
47     float spotdX_,spotdZ_;
48     float tetay_;
49     float tuching_;
50     Sprite* toFollow_;
51     float lightelse_;
52 	float period_;
53     int ringing_;
54     int elapsedTime_;
55 };
56 
57 
58 
59 
60 class Poto : public Sprite {
61 public:
62     Poto(Sprite *lamp);
63     void draw();
64     void drawShadowable();
65     void move();
66     void collision(Sprite *);
67 
68 };
69 
70 #endif
71 
72 
73 
74