123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- /*
- Copyright (C) 2004 Michael Liebscher
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
- /*
- * wolf_local.h: Wolfenstein3-D init.
- *
- * Author: Michael Liebscher <johnnycanuck@users.sourceforge.net>
- * Date: 2004
- *
- * Acknowledgement:
- * Portion of this code was derived from Wolfenstein3-D, and was originally
- * written by Id Software, Inc.
- *
- */
- /*
- Notes:
- This module is implemented by wolf_main.c
- */
- #ifndef __WOLF_LOCAL_H__
- #define __WOLF_LOCAL_H__
- #include "filesystem.h"
- #include "arch.h"
- #include "cvar.h"
- // Game Version
- #define WOLFENSTEINWL6 0x00
- #define SPEAROFDESTINY 0x01
- #define TILEGLOBAL 0x10000
- #define HALFTILE 0x8000
- #define TILESHIFT 16
- #define MINDIST (0x5800)
- typedef enum difficulty_e
- {
- gd_baby,
- gd_easy,
- gd_medium,
- gd_hard
- } difficulty_t;
- //
- // this structure is cleared as each map is entered
- //
- typedef struct
- {
- int framenum;
- float time;
- char level_name[ MAX_OSPATH ]; // the descriptive name (Outer Base, etc)
- char mapname[ MAX_OSPATH ]; // the server name (base1, etc)
- char nextmap[ MAX_OSPATH ]; // go here when fraglimit is hit
- // intermission state
- W32 levelCompleted; // in case the game was saved at the intermission
-
- W32 floornum;
- float fpartime;
- char spartime[6];
-
- W32 total_secrets;
- W32 found_secrets;
- W32 total_treasure;
- W32 found_treasure;
- W32 total_monsters;
- W32 killed_monsters;
-
- } level_locals_t;
- extern level_locals_t levelstate;
- typedef struct
- {
- W32 total_secrets;
- W32 found_secrets;
- W32 total_treasure;
- W32 found_treasure;
- W32 total_monsters;
- W32 killed_monsters;
- W32 time;
- } LRstruct;
- extern LRstruct LevelRatios;
- extern cvar_t *g_version;
- extern cvar_t *episode;
- extern cvar_t *skill;
- extern int tics;
- W32 floornumber;
- extern void Game_Init( void );
- extern void Game_Reset( void );
- extern void ProcessGuards( void );
- #define WL6SPRITESDIRNAME "sprites"
- #define SODSPRITESDIRNAME "sodsprites"//"sprites" //gsh was originally "sodsprites"
- extern char *spritelocation;
- #endif /* __WOLF_LOCAL_H__ */
|