zdrojak gamebook ogb gbook.wz.cz
[mirrors/Programs.git] / c / ninvaders-0.1.1 / player.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 #ifndef PLAYER
26 #define PLAYER
27
28 #include "view.h"
29
30
31 void playerReset();
32
33 void playerMoveLeft();
34 void playerMoveRight();
35 void playerTurboOn();
36 void playerTurboOff();
37 int playerHitCheck(int hostileShotX, int hostileShotY);
38 void playerLaunchMissile();
39 int playerMoveMissile();
40 void playerExplode();
41
42 // methods that handle graphic display, from view.c
43 extern void playerInit();
44 extern void playerDisplay(int x, int y);
45 extern void playerClear(int x, int y);
46 extern void playerMissileInit();
47 extern void playerMissileDisplay(int x, int y);
48 extern void playerMissileClear(int x, int y);
49 extern void playerExplosionDisplay(int x, int y);
50 extern void bunkersClearElement(int x, int y);
51
52 extern void doScoring(int alienType);
53
54 #endif
55
This page took 0.447233 seconds and 4 git commands to generate.