1 /* 2 * XGalaga-SDL - a SDL port of XGalaga, clone of the game Galaga 3 * Copyright (c) 1995-1998 Joe Rumsey (mrogre@mediaone.net) 4 * Copyright (c) 2010 Frank Zago 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 * 02110-1301, USA. 20 */ 21 22 struct W_Image { 23 int width, height; 24 int frames; /* nviews for ships */ 25 char *filename; /* filename without .xpm/.xbm extension*/ 26 SDL_Surface *surface; /* ptr to SDL surface */ 27 }; 28 29 enum { 30 I_FIRST, 31 32 I_AL = I_FIRST, 33 I_ALIEN1, 34 I_ALIEN10, 35 I_ALIEN11, 36 I_ALIEN12, 37 I_ALIEN13, 38 I_ALIEN14, 39 I_ALIEN15, 40 I_ALIEN16, 41 I_ALIEN17, 42 I_ALIEN2, 43 I_ALIEN3, 44 I_ALIEN4, 45 I_ALIEN5, 46 I_ALIEN6, 47 I_ALIEN7, 48 I_ALIEN8, 49 I_ALIEN9, 50 I_ETORP, 51 I_EXPLOSION, 52 I_EXTRA, 53 I_MINISHIP, 54 I_MTORP, 55 I_PAUSE, 56 I_PLAYER1, 57 I_PLAYER2, 58 I_PLAYER3, 59 I_PR_SMART, 60 I_PR_DOUB, 61 I_PR_EXTRABULLET, 62 I_PR_LEMON, 63 I_PR_SHIELD, 64 I_PR_SING, 65 I_PR_SPEED, 66 I_PR_TRIP, 67 I_S1000, 68 I_S2000, 69 I_S4000, 70 I_S500, 71 I_SHIELD, 72 I_TITLE, 73 74 #ifndef ORIGINAL_XGALAGA 75 I_PR_SPREAD, 76 I_PR_MACHINE, 77 #endif 78 79 F_REG_GREEN, 80 F_REG_CYAN, 81 F_REG_YELLOW, 82 F_REG_RED, 83 F_REG_GREY, 84 F_BIG_RED, 85 86 I_LAST = F_BIG_RED, 87 }; 88