1 /*
2  * Holotz's Castle
3  * Copyright (C) 2004 Juan Carlos Seijo P�rez
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the Free
7  * Software Foundation; either version 2 of the License, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc., 59
17  * Temple Place, Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Juan Carlos Seijo P�rez
20  * jacob@mainreactor.net
21  */
22 
23 /** Defines an enemy ball.
24  * @file    HCEnemyBall.h
25  * @author  Juan Carlos Seijo P�rez
26  * @date    27/05/2004
27  * @version 0.0.1 - 27/05/2004 - First version.
28  */
29 
30 #ifndef _HCENEMYBALL_INCLUDED
31 #define _HCENEMYBALL_INCLUDED
32 
33 #include <HCEnemy.h>
34 #include <HCLevel.h>
35 
36 /** Enemy with the logic of a ball. Only falls, goes left or
37  * right.
38  */
39 class HCEnemyBall : public HCEnemy
40 {
41  public:
42 	/** Creates an enemy ball.
43 	 */
44 	HCEnemyBall();
45 
46 	/** Updates collisions with the map and modifies the state and veloccity according
47 	 * to the result of the collision tests.
48 	 */
49 	virtual void UpdateCollisions();
50 
51 	/** Destroys the object and allows scalar destruction.
52 	 */
~HCEnemyBall()53 	virtual ~HCEnemyBall() {}
54 };
55 
56 #endif // _HCENEMYBALL_INCLUDED
57