src/include/enum.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  *  Wormux is a convivial mass murder game.
00003  *  Copyright (C) 2001-2004 Lawrence Azzoug.
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
00018  ******************************************************************************
00019  * Wormux enums ... 
00020  *****************************************************************************/
00021 
00022 #ifndef WORMUX_ENUM_H
00023 #define WORMUX_ENUM_H
00024 //-----------------------------------------------------------------------------
00025 
00026 typedef enum
00027 {
00028   WEAPON_BAZOOKA,
00029   WEAPON_AUTOMATIC_BAZOOKA,
00030   WEAPON_RIOT_BOMB,
00031   WEAPON_GRENADE,
00032   WEAPON_HOLLY_GRENADE,
00033   WEAPON_CLUSTER_BOMB,
00034 
00035   WEAPON_GUN,
00036   WEAPON_SHOTGUN,
00037   WEAPON_SUBMACHINE_GUN,
00038   WEAPON_BASEBALL,
00039 
00040   WEAPON_DYNAMITE,
00041   WEAPON_MINE,
00042 
00043   WEAPON_SUPERTUX,
00044   WEAPON_AIR_ATTACK,
00045   WEAPON_ANVIL,
00046   WEAPON_GNU,
00047   WEAPON_POLECAT,
00048   WEAPON_BOUNCE_BALL,
00049 
00050   WEAPON_TELEPORTATION,
00051   WEAPON_NINJA_ROPE,
00052   WEAPON_LOWGRAV,
00053   WEAPON_SUICIDE,
00054   WEAPON_SKIP_TURN,
00055   WEAPON_JETPACK,
00056   WEAPON_PARACHUTE,
00057   WEAPON_AIR_HAMMER,
00058   WEAPON_CONSTRUCT,
00059   WEAPON_SNIPE_RIFLE,
00060   WEAPON_BLOWTORCH,
00061   WEAPON_SYRINGE
00062 } Weapon_type;
00063 
00064 //-----------------------------------------------------------------------------
00065 
00066 typedef enum
00067 {
00068   // Game action.
00069   ACTION_MOVE_LEFT,
00070   ACTION_MOVE_RIGHT,
00071   ACTION_UP,
00072   ACTION_DOWN,
00073   ACTION_JUMP,
00074   ACTION_HIGH_JUMP,
00075   ACTION_BACK_JUMP,
00076   ACTION_SHOOT,
00077   ACTION_CHANGE_WEAPON,
00078   ACTION_WIND,
00079   ACTION_NEXT_CHARACTER,
00080   ACTION_CHANGE_CHARACTER,
00081   ACTION_CHANGE_TEAM,
00082   ACTION_SET_SKIN,
00083   ACTION_SYNC_BEGIN,
00084   ACTION_SYNC_END,
00085   ACTION_EXPLOSION,
00086   ACTION_SUPERTUX_STATE,
00087   ACTION_WEAPON_1,
00088   ACTION_WEAPON_2,
00089   ACTION_WEAPON_3,
00090   ACTION_WEAPON_4,
00091   ACTION_WEAPON_5,
00092   ACTION_WEAPON_6,
00093   ACTION_WEAPON_7,
00094   ACTION_WEAPON_8,
00095   ACTION_WEAPON_9,
00096   ACTION_WEAPON_MORE,
00097   ACTION_WEAPON_LESS,
00098   ACTION_SET_TARGET,
00099   ACTION_SET_TIMEOUT,
00100   ACTION_CONSTRUCTION_UP,
00101   ACTION_CONSTRUCTION_DOWN,
00102   ACTION_SET_CHARACTER_ENERGY,
00103   ACTION_WEAPON_STOP_USE,
00104   ACTION_SCROLL_LEFT,
00105   ACTION_SCROLL_RIGHT,
00106   ACTION_SCROLL_UP,
00107   ACTION_SCROLL_DOWN,
00108 
00109   // Game initialisation
00110   ACTION_SET_GAME_MODE,
00111   ACTION_SET_MAP,
00112   ACTION_CLEAR_TEAMS,
00113   ACTION_NEW_TEAM,
00114   ACTION_DEL_TEAM,
00115   ACTION_SET_CHARACTER_PHYSICS,
00116   ACTION_SET_CHARACTER_DIRECTION,
00117   ACTION_CHANGE_STATE,
00118   ACTION_ASK_VERSION,
00119   ACTION_ASK_TEAM,
00120   ACTION_SEND_VERSION,
00121   ACTION_SEND_TEAM,
00122   ACTION_SEND_RANDOM,
00123   ACTION_CHAT_MESSAGE,
00124   ACTION_NICKNAME,
00125 
00126   // Out of game actions (local only).
00127   ACTION_QUIT,
00128   ACTION_WEAPONS1,
00129   ACTION_WEAPONS2,
00130   ACTION_WEAPONS3,
00131   ACTION_WEAPONS4,
00132   ACTION_WEAPONS5,
00133   ACTION_WEAPONS6,
00134   ACTION_WEAPONS7,
00135   ACTION_WEAPONS8,
00136   ACTION_PAUSE,
00137   ACTION_FULLSCREEN,
00138   ACTION_TOGGLE_INTERFACE,
00139   ACTION_CENTER,
00140   ACTION_TOGGLE_WEAPONS_MENUS,
00141   ACTION_MAX,
00142   ACTION_CHAT
00143 } Action_t;
00144 
00145 //-----------------------------------------------------------------------------
00146 
00147 typedef enum
00148 {
00149   KEY_PRESSED,
00150   KEY_RELEASED,
00151   KEY_REFRESH
00152 } Key_Event_t ;
00153 
00154 //-----------------------------------------------------------------------------
00155 
00156 typedef enum
00157 {
00158   DIRECTION_LEFT = -1,
00159   DIRECTION_RIGHT = 1
00160 } Direction_t;
00161 
00162 //-----------------------------------------------------------------------------
00163 
00164 #endif

Generated on Mon Jan 1 13:10:57 2007 for Wormux by  doxygen 1.4.7