1 /* $Id: item.h,v 5.0 2001/04/07 20:00:59 dik Exp $ 2 * 3 * XPilot, a multiplayer gravity war game. Copyright (C) 1991-2001 by 4 * 5 * Bj�rn Stabell <bjoern@xpilot.org> 6 * Ken Ronny Schouten <ken@xpilot.org> 7 * Bert Gijsbers <bert@xpilot.org> 8 * Dick Balaska <dick@xpilot.org> 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 */ 24 25 #ifndef ITEM_H 26 #define ITEM_H 27 28 enum Item { 29 ITEM_FUEL = 0, 30 ITEM_WIDEANGLE = 1, 31 ITEM_REARSHOT = 2, 32 ITEM_AFTERBURNER = 3, 33 ITEM_CLOAK = 4, 34 ITEM_SENSOR = 5, 35 ITEM_TRANSPORTER = 6, 36 ITEM_TANK = 7, 37 ITEM_MINE = 8, 38 ITEM_MISSILE = 9, 39 ITEM_ECM = 10, 40 ITEM_LASER = 11, 41 ITEM_EMERGENCY_THRUST = 12, 42 ITEM_TRACTOR_BEAM = 13, 43 ITEM_AUTOPILOT = 14, 44 ITEM_EMERGENCY_SHIELD = 15, 45 ITEM_DEFLECTOR = 16, 46 ITEM_HYPERJUMP = 17, 47 ITEM_PHASING = 18, 48 ITEM_MIRROR = 19, 49 ITEM_ARMOR = 20, 50 NUM_ITEMS = 21 51 }; 52 53 #define ITEM_BIT_FUEL (1U << ITEM_FUEL) 54 #define ITEM_BIT_WIDEANGLE (1U << ITEM_WIDEANGLE) 55 #define ITEM_BIT_REARSHOT (1U << ITEM_REARSHOT) 56 #define ITEM_BIT_AFTERBURNER (1U << ITEM_AFTERBURNER) 57 #define ITEM_BIT_CLOAK (1U << ITEM_CLOAK) 58 #define ITEM_BIT_SENSOR (1U << ITEM_SENSOR) 59 #define ITEM_BIT_TRANSPORTER (1U << ITEM_TRANSPORTER) 60 #define ITEM_BIT_TANK (1U << ITEM_TANK) 61 #define ITEM_BIT_MINE (1U << ITEM_MINE) 62 #define ITEM_BIT_MISSILE (1U << ITEM_MISSILE) 63 #define ITEM_BIT_ECM (1U << ITEM_ECM) 64 #define ITEM_BIT_LASER (1U << ITEM_LASER) 65 #define ITEM_BIT_EMERGENCY_THRUST (1U << ITEM_EMERGENCY_THRUST) 66 #define ITEM_BIT_TRACTOR_BEAM (1U << ITEM_TRACTOR_BEAM) 67 #define ITEM_BIT_AUTOPILOT (1U << ITEM_AUTOPILOT) 68 #define ITEM_BIT_EMERGENCY_SHIELD (1U << ITEM_EMERGENCY_SHIELD) 69 #define ITEM_BIT_DEFLECTOR (1U << ITEM_DEFLECTOR) 70 #define ITEM_BIT_HYPERJUMP (1U << ITEM_HYPERJUMP) 71 #define ITEM_BIT_PHASING (1U << ITEM_PHASING) 72 #define ITEM_BIT_MIRROR (1U << ITEM_MIRROR) 73 #define ITEM_BIT_ARMOR (1U << ITEM_ARMOR) 74 75 /* Each item is ITEM_SIZE x ITEM_SIZE */ 76 #define ITEM_SIZE 16 77 78 #define ITEM_TRIANGLE_SIZE (5*ITEM_SIZE/7 + 1) 79 80 #endif /* ITEM_H */ 81