Added experimental makepkg-update-checksums.sh
[mirrors/Programs.git] / c / ninvaders-0.1.1 / view.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 <ncurses.h>
26 #include <unistd.h>
27 #include <signal.h>
28
29 #ifndef VIEW
30 #define VIEW
31
32 #include "globals.h"
33
34 #define SCREENHEIGHT 24
35 #define SCREENWIDTH 80
36
37 #define PLAYERWIDTH 5
38 #define PLAYERPOSY (SCREENHEIGHT-2)
39
40 #define BUNKERWIDTH 80
41 #define BUNKERHEIGHT 4
42 #define BUNKERX 0
43 #define BUNKERY (SCREENHEIGHT-8)
44
45 #define ALIENS_MAX_NUMBER_X 10
46 #define ALIENS_MAX_NUMBER_Y 5
47
48 #define UFOWIDTH 5
49 #define UFOPOSY 0
50
51
52 void graphicEngineInit();
53
54 void aliensClear(int x, int y, int wid, int hgt);
55 void aliensDisplay(int x, int y, int wid, int hgt);
56 void aliensMissileClear(int x, int y);
57 void aliensMissileDisplay(int x, int y);
58 void aliensRefresh(int level, int *pAliens);
59 void battleFieldClear();
60 void bunkersClear();
61 void bunkersClearElement(int x, int y);
62 void bunkersDisplay(int *pBunker);
63 void gameOverDisplay();
64 void playerClear(int x, int y);
65 void playerDisplay(int x, int y);
66 void playerExplosionDisplay(int x, int y);
67 void playerMissileClear(int x, int y);
68 void playerMissileDisplay(int x, int y);
69 void titleScreenClear();
70 void titleScreenDisplay();
71 void ufoClear(int x, int y);
72 void ufoDisplay(int x, int y);
73 void ufoRefresh();
74
75 void statusDisplay(int level, int score, int lives);
76 void refreshScreen();
77
78 #endif
This page took 1.11038 seconds and 4 git commands to generate.