disable the unrecognized nls and x flags
[AROS-Contrib.git] / Games / XInvaders3D / game.h
blobea93ae7a80f0b748858a83844774d6a6ebb75848
1 /*------------------------------------------------------------------
2 game.h: Game main header
4 XINVADERS 3D - 3d Shoot'em up
5 Copyright (C) 2000 Don Llopis
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 ------------------------------------------------------------------*/
22 #ifndef GAME_MAIN_HEADER
23 #define GAME_MAIN_HEADER
25 /*------------------------------------------------------------------
27 * Standard Includes
29 ------------------------------------------------------------------*/
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <memory.h>
34 #include <time.h>
35 #include <math.h>
37 /*------------------------------------------------------------------
39 * Vector, Matrix, and Camera functions
41 ------------------------------------------------------------------*/
42 #include "vec4x1.h"
43 #include "mat4x4.h"
44 #include "camera.h"
46 /*------------------------------------------------------------------
48 * System specific Functions, Graphics primitives, and Timming
50 ------------------------------------------------------------------*/
52 #include "system.h"
54 /*------------------------------------------------------------------
56 * Game Defines
58 ------------------------------------------------------------------*/
60 #include "defines.h"
62 /*------------------------------------------------------------------
64 * Object Managment Struct & Funtions : object.c
66 ------------------------------------------------------------------*/
68 #include "object.h"
70 /*------------------------------------------------------------------
72 * Game-Logic Funtions : game.c
74 ------------------------------------------------------------------*/
76 extern void Game_main ( void );
78 /* initialization functions */
79 extern int Game_init ( float, float );
80 extern void Game_init_vars ( int );
81 extern void Game_init_keys ( void );
83 /* Game action function(s) */
84 extern void (*Game_actionfn)();
85 extern void Game_newlevel ( void );
86 extern void Game_gameover ( void );
87 extern void Game_paused_toggle ( void );
88 extern void Game_paused ( void );
89 extern void Game_reset ( void );
91 extern void Game_menu ( void );
92 extern void Game_ready ( void );
93 extern void Game_run ( void );
94 extern void Game_overlay ( void );
96 /* misc game related functions */
97 extern void Object_update_zone ( OBJECT *obj );
99 /*------------------------------------------------------------------
101 * Player's Functions : player.c
103 ------------------------------------------------------------------*/
104 extern void Player_init ( void );
105 extern void Player_blink ( OBJECT *, MATRIX4 );
106 extern void Player_draw ( OBJECT *, MATRIX4 );
107 extern void Player_update ( OBJECT * );
109 extern void Player_missile_update ( OBJECT * );
110 extern void Player_missile_draw ( OBJECT *, MATRIX4 );
112 /*------------------------------------------------------------------
114 * Aliens' Functions : aliens.c
116 ------------------------------------------------------------------*/
117 extern void Aliens_init ( void );
118 extern void Aliens_move ( void );
119 extern void Aliens_update ( OBJECT * );
120 extern void Aliens_draw ( OBJECT *, MATRIX4 );
121 extern void Alien_missile_draw ( OBJECT *, MATRIX4 );
122 extern void Ufo_spawn ( void );
123 extern void Ufo_draw ( OBJECT *, MATRIX4 );
125 /*------------------------------------------------------------------
127 * Special-Effects Functions : effects.c
129 ------------------------------------------------------------------*/
130 /* stars */
131 extern void Stars_init ( void );
132 extern void Stars_draw ( MATRIX4 );
134 /* explosions */
135 extern void Explosions_add ( OBJECT * );
136 extern void Explosions_clear ( void );
137 extern void Explosions_draw ( MATRIX4 );
138 extern int Explosions_count ( void );
140 /* jump-gate */
141 extern void Jumpgate_init ( void );
142 extern void Jumpgate_open ( VECTOR4, int );
143 extern void Jumpgate_animate ( MATRIX4 );
145 /* one-up */
146 extern void One_up_init ( void );
147 extern void One_up_add ( OBJECT * );
148 extern void One_up_draw ( MATRIX4 );
150 /*------------------------------------------------------------------
152 * Game Variables
154 ------------------------------------------------------------------*/
156 #include "externs.h"
158 #endif