Commit | Line | Data |
---|---|---|
21c4e167 H |
1 | /** |
2 | * nInvaders - a space invaders clone for ncurses | |
3 | * Copyright (C) 2002-2003 Dettus | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License as published by | |
7 | * the Free Software Foundation; either version 2 of the License, or | |
8 | * (at your option) any later version. | |
9 | * | |
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. See the | |
13 | * 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 | * homepage: http://ninvaders.sourceforge.net | |
20 | * mailto: ninvaders-devel@lists.sourceforge.net | |
21 | * | |
22 | */ | |
23 | ||
24 | ||
25 | #include "view.h" | |
26 | ||
27 | #ifndef UFO | |
28 | #define UFO | |
29 | ||
30 | typedef struct Ufo Ufo; | |
31 | ||
32 | struct Ufo { | |
33 | int posX; // horizontal position of aliens | |
34 | int posY; // vertical position of aliens | |
35 | }; | |
36 | ||
37 | Ufo ufo; | |
38 | ||
39 | void ufoReset(); | |
40 | int ufoShowUfo(); | |
41 | void ufoMoveLeft(); | |
42 | int ufoHitCheck(int shotX, int shotY); | |
43 | ||
44 | // methods that handle graphic display, from view.c | |
45 | extern void ufoDisplay(int x, int y); | |
46 | extern void ufoRefresh(); | |
47 | extern void ufoClear(int x, int y); | |
48 | ||
49 | #endif |