| 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 <stdio.h> |
| 26 | #include <stdlib.h> |
| 27 | #include "view.h" |
| 28 | #include "globals.h" |
| 29 | |
| 30 | |
| 31 | #ifndef NINVADERS |
| 32 | #define NINVADERS |
| 33 | |
| 34 | #define UFO_ALIEN_TYPE 0 |
| 35 | #define RED_ALIEN_TYPE 1 |
| 36 | #define GREEN_ALIEN_TYPE 2 |
| 37 | #define BLUE_ALIEN_TYPE 3 |
| 38 | |
| 39 | int main(int argv, char **argc); // hey! it has to start somewhere! |
| 40 | |
| 41 | extern void render(void); |
| 42 | |
| 43 | void game_over(int a); |
| 44 | void drawscore(); |
| 45 | |
| 46 | void doScoring(int alienType); |
| 47 | |
| 48 | // todo: let's try to not having to declare these "public" |
| 49 | int weite; |
| 50 | int level; |
| 51 | int skill_level; |
| 52 | |
| 53 | // included from globals.h |
| 54 | extern void doSleep(); |
| 55 | extern void showUsage(); |
| 56 | extern void showVersion(); |
| 57 | extern void showGplShort(); |
| 58 | extern void showGpl(); |
| 59 | |
| 60 | #endif |