Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

enum.h

00001 /***************************************************************************
00002                         enum.h  -  description
00003                             -------------------
00004     begin                : may 8th, 2006
00005     copyright            : (C) 2003-2006 by Duong-Khang NGUYEN
00006     email                : neoneurone @ users sourceforge net
00007     
00008     $Id: enum.h 26 2006-07-23 22:06:30Z neoneurone $
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   any later version.                                                    *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef _OPENCITY_ENUM_H_
00021 #define _OPENCITY_ENUM_ 1
00022 
00025     enum OPENCITY_ERR_CODE {
00026         OC_ERR_FREE = 0,        
00027         OC_ERR_SOMETHING,       
00028         OC_ERR_INVALID,         
00029         OC_ERR_FILE             
00030     };
00031 
00032     enum OPENCITY_MAP_VARIATION {
00033         OC_MAP_UP = 1,
00034         OC_MAP_DOWN = -1
00035     };
00036 
00039     enum OPENCITY_DIRECTION {
00040         OC_DIR_N  = 0,          
00041         OC_DIR_NE,              
00042         OC_DIR_E,               
00043         OC_DIR_SE,              
00044         OC_DIR_S,               
00045         OC_DIR_SW,              
00046         OC_DIR_W,               
00047         OC_DIR_NW,              
00048         OC_DIR_UNDEFINED        
00049     };
00050 
00053     enum OPENCITY_CITY_LAYER {
00054         BUILDING_LAYER = 0,     
00055         WATER_LAYER,            
00056         GAS_LAYER,              
00057         SUBWAY_LAYER            
00058     };
00059 
00060     enum OPENCITY_CITY_SPEED {
00061         LOW_SPEED = 0,
00062         NORMAL_SPEED,
00063         FAST_SPEED,
00064         LAST_SPEED
00065     };
00066 
00067     enum OPENCITY_CITY_KEY {
00068         KEY_UP = 0,
00069         KEY_DOWN,
00070         KEY_LEFT,
00071         KEY_RIGHT,
00072         KEY_PAGEUP,
00073         KEY_PAGEDOWN,
00074         KEY_ALT,
00075         KEY_INSERT,
00076         KEY_DELETE,
00077         KEY_NUMBER
00078     };
00079 
00080 // OpenCity's code for tool
00081     enum OPENCITY_TOOL_CODE {
00082         OC_NONE = 0,
00083         OC_DESTROY = 1,
00084         OC_DEZONE = 10,
00085         OC_ZONE_RES = 11,
00086         OC_ZONE_COM = 12,
00087         OC_ZONE_IND = 13,
00088         OC_HEIGHT_UP = 20,
00089         OC_HEIGHT_DOWN = 21,
00090         OC_BUILD_ROAD = 30,
00091         OC_BUILD_ELINE = 40,
00092         OC_BUILD_EPLANT = 50,
00093         OC_BUILD_PARK = 60,
00094         OC_BUILD_FLORA,
00095         OC_BUILD_FIRE = 70,
00096         OC_BUILD_POLICE = 80,
00097         OC_BUILD_HOSPITAL = 90,
00098         OC_BUILD_MILITARY = 100,
00099         OC_BUILD_EDUCATION = 110,
00100         OC_BUILD_AGENT_POLICE = 200,
00101         OC_BUILD_AGENT_DEMONSTRATOR = 201,
00102         OC_BUILD_AGENT_ROBBER = 202,
00103         OC_BUILD_TEST_BUILDING,
00104         OC_QUERY
00105     };
00106 
00107 // OpenCity's codes for structures
00108 // See the notes above the GRAPHIC_CODE
00109     enum OPENCITY_STRUCTURE_CODE {
00110         OC_STRUCTURE_UNDEFINED = 0,
00111         OC_STRUCTURE_TEST,
00112         OC_STRUCTURE_ANY,
00113         OC_STRUCTURE_PART,
00114         OC_STRUCTURE_RES = 10,
00115         OC_STRUCTURE_COM,
00116         OC_STRUCTURE_IND,
00117         OC_STRUCTURE_PARK,
00118         OC_STRUCTURE_FLORA,
00119         OC_STRUCTURE_ROAD = 20,
00120         OC_STRUCTURE_ELECTRIC = 30,
00121         OC_STRUCTURE_ELINE,
00122         OC_STRUCTURE_EPLANT_COAL,
00123         OC_STRUCTURE_FIREDEPT,
00124         OC_STRUCTURE_POLICEDEPT,
00125         OC_STRUCTURE_HOSPITALDEPT,
00126         OC_STRUCTURE_MILITARYDEPT,
00127         OC_STRUCTURE_EDUCATIONDEPT
00128     };
00129 
00133     enum OPENCITY_STRUCTURE_TYPE {
00134         OC_TYPE_UNUSED,
00135         OC_TYPE_RESIDENCE,
00136         OC_TYPE_COMMERCE,
00137         OC_TYPE_INDUSTRY,
00138         OC_TYPE_WATER,
00139         OC_TYPE_ELECTRICITY,
00140         OC_TYPE_GAS,
00141         OC_TYPE_PATH,
00142         OC_TYPE_GOVERNMENT,
00143         OC_TYPE_TREE
00144     };
00145 
00154     enum OPENCITY_GRAPHIC_CODE {
00155         OC_EMPTY = 0,
00156         OC_TEST_BUILDING = 1,           // Used by the graphists for testing their works
00157 
00158         OC_RES_ZONE0 = 10,
00159         OC_RES_ZONE1,
00160         OC_RES_ZONE2,
00161         OC_RES_ZONE3,
00162         OC_RES_ZONE4,
00163         OC_RES_ZONE5,
00164         OC_RES_ZONE6,
00165         OC_RES_ZONE7,
00166         OC_RES_ZONE8,
00167         OC_RES_ZONE9,
00168 
00169         OC_COM_ZONE0 = 20,
00170         OC_COM_ZONE1,
00171         OC_COM_ZONE2,
00172         OC_COM_ZONE3,
00173         OC_COM_ZONE4,
00174         OC_COM_ZONE5,
00175         OC_COM_ZONE6,
00176         OC_COM_ZONE7,
00177         OC_COM_ZONE8,
00178         OC_COM_ZONE9,
00179 
00180         OC_IND_ZONE0 = 30,
00181         OC_IND_ZONE1,
00182         OC_IND_ZONE2,
00183         OC_IND_ZONE3,
00184         OC_IND_ZONE4,
00185         OC_IND_ZONE5,
00186         OC_IND_ZONE6,
00187         OC_IND_ZONE7,
00188         OC_IND_ZONE8,
00189         OC_IND_ZONE9,
00190 
00191         OC_TERRAIN_PLANE = 100,
00192 /*not used
00193         OC_TERRAIN_N,
00194         OC_TERRAIN_NE,
00195         OC_TERRAIN_E,
00196         OC_TERRAIN_SE,
00197         OC_TERRAIN_S,
00198         OC_TERRAIN_SW,
00199         OC_TERRAIN_W,
00200         OC_TERRAIN_NW,
00201         OC_TERRAIN_SE3,
00202         OC_TERRAIN_NW3,
00203         OC_TERRAIN_SW3,
00204         OC_TERRAIN_NE3,
00205 */
00206 
00207         OC_ROAD_O_N = 150,
00208         OC_ROAD_O_E,     // +1
00209         OC_ROAD_O_S,
00210         OC_ROAD_O_W,
00211         OC_ROAD_S_N,
00212         OC_ROAD_W_E,     // +5
00213         OC_ROAD_N_E,
00214         OC_ROAD_N_W,
00215         OC_ROAD_S_E,
00216         OC_ROAD_S_W,
00217         OC_ROAD_S_N_E,   // +10
00218         OC_ROAD_S_W_E,
00219         OC_ROAD_S_N_W,
00220         OC_ROAD_N_W_E,
00221         OC_ROAD_S_N_W_E,
00222 
00223         OC_ELINE_O_N = 170,
00224         OC_ELINE_O_E,
00225         OC_ELINE_O_S,
00226         OC_ELINE_O_W,
00227         OC_ELINE_S_N,
00228         OC_ELINE_W_E,
00229         OC_ELINE_N_E,
00230         OC_ELINE_N_W,
00231         OC_ELINE_S_E,
00232         OC_ELINE_S_W,
00233         OC_ELINE_S_N_E,
00234         OC_ELINE_S_W_E,
00235         OC_ELINE_S_N_W,
00236         OC_ELINE_N_W_E,
00237         OC_ELINE_S_N_W_E,
00238 
00239         OC_WPIPE_O_N = 190,
00240         OC_WPIPE_O_E,     // +1
00241         OC_WPIPE_O_S,
00242         OC_WPIPE_O_W,
00243         OC_WPIPE_S_N,
00244         OC_WPIPE_W_E,     // +5
00245         OC_WPIPE_N_E,
00246         OC_WPIPE_N_W,
00247         OC_WPIPE_S_E,
00248         OC_WPIPE_S_W,
00249         OC_WPIPE_S_N_E,   // +10
00250         OC_WPIPE_S_W_E,
00251         OC_WPIPE_S_N_W,
00252         OC_WPIPE_N_W_E,
00253         OC_WPIPE_S_N_W_E,
00254 
00255         OC_GPIPE_O_N = 210,
00256         OC_GPIPE_O_E,     // +1
00257         OC_GPIPE_O_S,
00258         OC_GPIPE_O_W,
00259         OC_GPIPE_S_N,
00260         OC_GPIPE_W_E,     // +5
00261         OC_GPIPE_N_E,
00262         OC_GPIPE_N_W,
00263         OC_GPIPE_S_E,
00264         OC_GPIPE_S_W,
00265         OC_GPIPE_S_N_E,   // +10
00266         OC_GPIPE_S_W_E,
00267         OC_GPIPE_S_N_W,
00268         OC_GPIPE_N_W_E,
00269         OC_GPIPE_S_N_W_E,
00270 
00271         OC_EPLANT_COAL_BOX = 300,   // to 319
00272         OC_EPLANT_GAS,
00273         OC_EPLANT_OIL,
00274 
00275         OC_PARK0 = 320,
00276 //      OC_PARK_MEDIUM = 330,
00277 //      OC_PARK_BIG = 340,
00278 
00279         OC_TREE_BEGIN = 330,
00280         OC_TREE_FIR = 330,
00281         OC_TREE_007,
00282         OC_TREE_PEKINGWILLOW,
00283         OC_TREE_PINE1,
00284         OC_TREE_PINE2,
00285         OC_TREE_END = 334,
00286 
00287         OC_FIRE_DEPT = 350,
00288         OC_POLICE_DEPT = 360,
00289         OC_HOSPITAL_DEPT = 370,
00290         OC_MILITARY_DEPT = 380,
00291         OC_EDUCATION_DEPT = 390,
00292 
00293         OC_VEHICLE_STD = 400,
00294         OC_VEHICLE_FX = 430,
00295         OC_VEHICLE_PICKUP = 440,
00296         OC_VEHICLE_ROBBER = 441,
00297         OC_VEHICLE_FIRE = 450,
00298         OC_VEHICLE_POLICE = 460,
00299         OC_VEHICLE_HOSPITAL = 470,
00300         OC_VEHICLE_MILITARY = 480,
00301         OC_VEHICLE_EDUCATION = 490,
00302 
00303         OC_VEHICLE_BUS = 491,
00304         OC_VEHICLE_SPORT = 492,
00305 
00306         OC_GRAPHIC_CODE_MAX
00307     };
00308 
00311     enum OPENCITY_SOUND_EFFECT {
00312         OC_SOUND_ELINE,
00313         OC_SOUND_EPLANT,
00314         OC_SOUND_RCI,
00315         OC_SOUND_ROAD
00316     };
00317 
00320     enum OPENCITY_PROPERTY_CODE {
00321         OC_BUILD_COST,              
00322         OC_DESTROY_COST,            
00323         OC_MAINTENANCE_COST,        
00324         OC_INCOME,                  
00325         OC_CODE_TO_TYPE             
00326     };
00327 
00328 #endif
00329 
00330 
00331 
00332 
00333 
00334 
00335 
00336 
00337 
00338 
00339 
00340 
00341 
00342 
00343 
00344 
00345 
00346 
00347 
00348 
00349 
00350 
00351 
00352 
00353 
00354 
00355 
00356 
00357 
00358 
00359 
00360 
00361 
00362 
00363 
00364 

Generated on Sat Nov 11 10:21:09 2006 for OpenCity by  doxygen 1.4.2