Removed some stupid .part file and added such files to .gitignore
[mirrors/Programs.git] / c / ninvaders-0.1.1 / view.h
... / ...
CommitLineData
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
52void graphicEngineInit();
53
54void aliensClear(int x, int y, int wid, int hgt);
55void aliensDisplay(int x, int y, int wid, int hgt);
56void aliensMissileClear(int x, int y);
57void aliensMissileDisplay(int x, int y);
58void aliensRefresh(int level, int *pAliens);
59void battleFieldClear();
60void bunkersClear();
61void bunkersClearElement(int x, int y);
62void bunkersDisplay(int *pBunker);
63void gameOverDisplay();
64void playerClear(int x, int y);
65void playerDisplay(int x, int y);
66void playerExplosionDisplay(int x, int y);
67void playerMissileClear(int x, int y);
68void playerMissileDisplay(int x, int y);
69void titleScreenClear();
70void titleScreenDisplay();
71void ufoClear(int x, int y);
72void ufoDisplay(int x, int y);
73void ufoRefresh();
74
75void statusDisplay(int level, int score, int lives);
76void refreshScreen();
77
78#endif
This page took 0.53814 seconds and 4 git commands to generate.