/* Copyright (C) 2015 Parallel Realities 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. */ #define PI 3.14159265358979323846 #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) #define STRNCPY(dest, src, n) strncpy(dest, src, n); dest[n - 1] = '\0' #define TO_RAIDANS(angleDegrees) (angleDegrees * PI / 180.0) #define TO_DEGREES(angleRadians) (angleRadians * 180.0 / PI) #define SCREEN_WIDTH 1280 #define SCREEN_HEIGHT 720 #define MAX_KEYBOARD_KEYS 350 #define LOGIC_RATE 16 #define FPS (1000 / LOGIC_RATE) #define MAX_NAME_LENGTH 32 #define MAX_DESCRIPTION_LENGTH 512 #define MAX_FILENAME_LENGTH 1024 #define NUM_TEXTURE_BUCKETS 32 #define MAX_STARS 500 #define MAX_FONTS 32 #define NUM_TEXT_BUCKETS 64 #define MAX_FIGHTER_GUNS 12 #define BF_NONE 0 #define BF_ENGINE (2 << 0) #define BF_SYSTEM_DAMAGE (2 << 1) enum { TA_LEFT, TA_RIGHT, TA_CENTER }; enum { ALIVE_ALIVE, ALIVE_DYING, ALIVE_DEAD, ALIVE_DISABLED }; enum { SIDE_NONE, SIDE_ALLIES, SIDE_PANDORAN, SIDE_PIRATE, SIDE_CSN, SIDE_INF, SIDE_UNF }; enum { BT_NONE, BT_PARTICLE, BT_PLASMA, BT_LASER, BT_MAG, BT_ROCKET, BT_MISSILE, BT_FF, BT_MAX }; enum { MISSILE_ROCKET, MISSILE_MISSILE, MISSILE_FF, MISSILE_MAX }; enum { EFFECT_LINE, EFFECT_TEXTURE, EFFECT_HALO }; enum { SND_PARTICLE, SND_PLASMA, SND_MAG, SND_ARMOUR_HIT, SND_SHIELD_HIT, SND_EXPLOSION_1, SND_EXPLOSION_2, SND_EXPLOSION_3, SND_EXPLOSION_4, SND_GUI_CLICK, SND_GUI_SELECT, SND_GUI_CLOSE, SND_GUI_DENIED, SND_MAX }; enum { OS_INCOMPLETE, OS_COMPLETE, OS_FAILED, OS_CONDITION }; enum { MS_START, MS_IN_PROGRESS, MS_PAUSED, MS_COMPLETE, MS_FAILED }; enum { WT_BUTTON, WT_SELECT }; enum { CHALLENGE_ARMOUR, CHALLENGE_TIME, CHALLENGE_ACCURACY, CHALLENGE_NO_LOSSES, CHALLENGE_1_LOSS, CHALLENGE_LOSSES, CHALLENGE_PLAYER_KILLS };