CSPL Constants | |
CSPL Constants Definitions In CSPL.h I've defined a lot of constants, some of which we already met such as YES_BTN,NO_BTN or ACTIVATE_UNIT, In this section I'll write down all constants currently inserted in CSPL.h: 1 REQUEST ANSWER CONSTANTSYES_BTN : returned by RequestCSPL function, this value means that user pressed "yes" button in RequestCSPL messageboxNO_BTN : returned by RequestCSPL function, this value means that user pressed "no" button in RequestCSPL messagebox 2 CIVILIZATIONS CONSTANTSCIV_WHITE : Used to indicate the first civ (white) in a CSPL programCIV_GREEN : Used to indicate the second civ (green) in a CSPL program CIV_BLUE : Used to indicate the third civ (blue) in a CSPL program CIV_YELLOW : Used to indicate the fourth civ (yellow) in a CSPL program CIV_CYAN : Used to indicate the fifth civ (cyan) in a CSPL program CIV_ORANGE : Used to indicate the sixth civ (orange) in a CSPL program CIV_PURPLE : Used to indicate the seventh civ (purple) in a CSPL program CIV_RED : Used to indicate the eight civ (red - barbarians) in a CSPL program 3 MAP IDENTIFIER CONSTANTSMAP_0 : Used to indicate the first map in a CSPL programMAP_1 : Used to indicate the second map in CSPL program MAP_2 : Used to indicate the third map in CSPL program MAP_3 : Used to indicate the fourth map in CSPL program 4 TERRAIN TYPE CONSTANTSTERRAIN_OCEAN : Used to represent ocean terrain type in a Tile objectTERRAIN_DESERT : Used to represent desert terrain type in a Tile object TERRAIN_PLAINS : Used to represent plains terrain type in a Tile object TERRAIN_GRASSLAND : Used to represent grassland terrain type in a Tile object TERRAIN_FOREST : Used to represent forest terrain type in a Tile object TERRAIN_HILLS : Used to represent hills terrain type in a Tile object TERRAIN_MOUNTAINS : Used to represent mountains terrain type in a Tile object TERRAIN_TUNDRA : Used to represent tundra terrain type in a Tile object TERRAIN_GLACIER : Used to represent glacier terrain type in a Tile object TERRAIN_SWAMP : Used to represent swamp terrain type in a Tile object TERRAIN_JUNGLE : Used to represent jungle terrain type in a Tile object TERRAIN_NORESOURCE : Used to deactivate resources in a particular Tile object TERRAIN_RIVER : Used to represent that a river is present in a Tile object 5 WONDER IDENTIFIER CONSTANTSID_WOND_PYRAMIDS : Used to represent Pyramids in Wonder Thread functionsID_WOND_HANGINGARDEN : Used to represent Hanging Garden in Wonder Thread functions ID_WOND_COLOSSUS : Used to represent Colossus in Wonder Thread functions ID_WOND_LIGHTHOUSE : Used to represent Lighthouse in Wonder Thread functions ID_WOND_GREATLIBRARY : Used to represent Great Library in Wonder Thread functions ID_WOND_ORACLE : Used to represent Oracle in Wonder Thread functions ID_WOND_GREATWALL : Used to represent Great Wall in Wonder Thread functions ID_WOND_SUNTZU : Used to represent Sun Tzu's War Academy in Wonder Thread functions ID_WOND_KINGRICHARD : Used to represent King Richard's Crusade in Wonder Thread functions ID_WOND_MARCOPOLO : Used to represent Marco Polo's Embassy in Wonder Thread functions ID_WOND_MICHELANGELO : Used to represent Michelangelo's Chapel in Wonder Thread functions ID_WOND_COPERNICUSOBS : Used to represent Copernicus' Observatory in Wonder Thread functions ID_WOND_MAGELLAN : Used to represent Magellan's Expedition in Wonder Thread functions ID_WOND_SHAKESPEARE : Used to represent Shakespeare Theatre in Wonder Thread functions ID_WOND_LEONARDO : Used to represent Leonardo Workshop in Wonder Thread functions ID_WOND_JSBACH : Used to represent J.S.Bach's Cathedral in Wonder Thread functions ID_WOND_NEWTONCOLLEGE : Used to represent Newton's College in Wonder Thread functions ID_WOND_ADAMSMITH : Used to represent Adam Smith's Trading Co. in Wonder Thread functions ID_WOND_DARWINVOYAGE : Used to represent Darwin's Voyage in Wonder Thread functions ID_WOND_STATUELIBERTY : Used to represent Statue of Liberty in Wonder Thread functions ID_WOND_EIFFELTWR : Used to represent Eiffel Tower in Wonder Thread functions ID_WOND_WOMENSUFFRAGE : Used to represent Women's Suffrage in Wonder Thread functions ID_WOND_HOOVERDAM : Used to represent Hoover Dam in Wonder Thread functions ID_WOND_MANHATTANPRJ : Used to represent Manhattan Project in Wonder Thread functions ID_WOND_UN : Used to represent United Nations in Wonder Thread functions ID_WOND_APOLLO : Used to represent Apollo Program in Wonder Thread functions ID_WOND_SETI : Used to represent SETI Program in Wonder Thread functions ID_WOND_CURECANCER : Used to represent Cure for Cancer in Wonder Thread functions 6 BARBARIAN LEVEL CONSTANTSBA_RAGING : Used to represent Raging Hordes in barbarian activity levelBA_RESTLESS : Used to represent Restless Tribes in barbarian activity level BA_ROVING : Used to represent Roving Bands in barbarian activity level BA_VILLAGES : Used to represent Villages Only in barbarian activity level 7 DIFFICULTY LEVEL CONSTANTSDIF_DEITY : Used to represent Deity difficulty levelDIF_EMPEROR : Used to represent Emperor difficulty level DIF_KING : Used to represent King difficulty level DIF_PRINCE : Used to represent Prince difficulty level DIF_WARLORD : Used to represent Warlord difficulty level DIF_CHIEFTAIN : Used to represent Chieftain difficulty level 8 UNIT IDENTIFIER CONSTANTSUNIT_SETTLER : Used to represent settler unit in unit functionsUNIT_ENGINEER : Used to represent engineer unit in unit functions UNIT_WARRIOR : Used to represent warrior unit in unit functions UNIT_PHALANX : Used to represent phalanx unit in unit functions UNIT_ARCHERS : Used to represent archers unit in unit functions UNIT_LEGION : Used to represent legion unit in unit functions UNIT_PIKEMEN : Used to represent pikemen unit in unit functions UNIT_MUSKETEERS : Used to represent musketeers unit in unit functions UNIT_FANATICS : Used to represent fanatics unit in unit functions UNIT_PARTISANS : Used to represent partisans unit in unit functions UNIT_ALPINE : Used to represent alpine unit in unit functions UNIT_RIFLEMEN : Used to represent riflemen unit in unit functions UNIT_MARINES : Used to represent marines unit in unit functions UNIT_PARATRP : Used to represent paratrooper unit in unit functions UNIT_MECHINF : Used to represent mech. infantry unit in unit functions UNIT_HORSEMEN : Used to represent horsemen unit in unit functions UNIT_CHARIOT : Used to represent chariot unit in unit functions UNIT_ELEPHANT : Used to represent elephant unit in unit functions UNIT_CRUSADERS : Used to represent crusaders unit in unit functions UNIT_KNIGHTS : Used to represent knights unit in unit functions UNIT_DRAGOON : Used to represent dragoon unit in unit functions UNIT_CAVALRY : Used to represent cavalry unit in unit functions UNIT_ARMOR : Used to represent armor unit in unit functions UNIT_CATAPULT : Used to represent catapult unit in unit functions UNIT_CANNON : Used to represent cannon unit in unit functions UNIT_ARTILLERY : Used to represent artillery unit in unit functions UNIT_HOWITZER : Used to represent howitzer unit in unit functions UNIT_FIGHTER : Used to represent fighter unit in unit functions UNIT_BOMBER : Used to represent bomber unit in unit functions UNIT_HELICPT : Used to represent helicopter unit in unit functions UNIT_STLFTR : Used to represent stealth fighter unit in unit functions UNIT_STLBMBR : Used to represent stealth bomber unit in unit functions UNIT_TRIREME : Used to represent trireme unit in unit functions UNIT_CARAVEL : Used to represent caravel unit in unit functions UNIT_GALLEON : Used to represent galleon unit in unit functions UNIT_FRIGATE : Used to represent frigate unit in unit functions UNIT_IRONCLAD : Used to represent ironclad unit in unit functions UNIT_DESTROYER : Used to represent destroyer unit in unit functions UNIT_CRUISER : Used to represent cruiser unit in unit functions UNIT_AEGIS : Used to represent AEGIS cruiser unit in unit functions UNIT_BTLSHIP : Used to represent battleship unit in unit functions UNIT_SUB : Used to represent submarine unit in unit functions UNIT_CARRIER : Used to represent carrier unit in unit functions UNIT_TRANSPORT : Used to represent transport unit in unit functions UNIT_CRUISE : Used to represent cruise missile unit in unit functions UNIT_NUCLEAR : Used to represent nuclear missile unit in unit functions UNIT_DIPLOMAT : Used to represent diplomat unit in unit functions UNIT_SPY : Used to represent spy unit in unit functions UNIT_CARAVAN : Used to represent caravan unit in unit functions UNIT_FREIGHT : Used to represent freight unit in unit functions UNIT_EXPLORER : Used to represent explorer unit in unit functions UNIT_EXTLAND : Used to represent extra land unit in unit functions UNIT_EXTSHIP : Used to represent extra ship unit in unit functions UNIT_EXTAIR : Used to represent extra air unit in unit functions UNIT_A : Used to represent extra a unit in unit functions UNIT_B : Used to represent extra b unit in unit functions UNIT_C : Used to represent extra c unit in unit functions UNIT_D : Used to represent extra d unit in unit functions UNIT_E : Used to represent extra e unit in unit functions UNIT_F : Used to represent extra f unit in unit functions UNIT_G : Used to represent extra g unit in unit functions UNIT_H : Used to represent extra h unit in unit functions UNIT_I : Used to represent extra i unit in unit functions UNIT_J : Used to represent extra j unit in unit functions UNIT_K : Used to represent extra k unit in unit functions UNIT_L : Used to represent extra l unit in unit functions UNIT_M : Used to represent extra m unit in unit functions UNIT_N : Used to represent extra n unit in unit functions UNIT_O : Used to represent extra o unit in unit functions UNIT_P : Used to represent extra p unit in unit functions UNIT_Q : Used to represent extra q unit in unit functions UNIT_R : Used to represent extra r unit in unit functions UNIT_S : Used to represent extra s unit in unit functions UNIT_T : Used to represent extra t unit in unit functions UNIT_U : Used to represent extra u unit in unit functions UNIT_V : Used to represent extra v unit in unit functions UNIT_W : Used to represent extra w unit in unit functions UNIT_X : Used to represent extra x unit in unit functions UNIT_Y : Used to represent extra y unit in unit functions UNIT_Z : Used to represent extra z unit in unit functions 9 TRADE GOODS CONSTANTSTRADE_HIDES : Used to represent hides in caravan unit structureTRADE_WOOL : Used to represent wool in caravan unit structure TRADE_BEADS : Used to represent beads in caravan unit structure TRADE_CLOTH : Used to represent cloth in caravan unit structure TRADE_SALT : Used to represent salt in caravan unit structure TRADE_COAL : Used to represent coal in caravan unit structure TRADE_COPPER : Used to represent copper in caravan unit structure TRADE_DYE : Used to represent dye in caravan unit structure TRADE_WINE : Used to represent wine in caravan unit structure TRADE_SILK : Used to represent silk in caravan unit structure TRADE_SILVER : Used to represent silver in caravan unit structure TRADE_SPICE : Used to represent spice in caravan unit structure TRADE_GEMS : Used to represent gems in caravan unit structure TRADE_GOLD : Used to represent gold in caravan unit structure TRADE_OIL : Used to represent oil in caravan unit structure TRADE_URANIUM : Used to represent uranium in caravan unit structure TRADE_FOOD : Used to represent food in caravan unit structure 10 ACTIVATE THREAD CONSTANTSACTIVATE_UNIT : Used to activate unit thread in CSPL initializationACTIVATE_CITY : Used to activate city thread in CSPL initialization ACTIVATE_CIV : Used to activate civilizations thread in CSPL initialization ACTIVATE_WONDER : Used to activate wonder thread in CSPL initialization ACTIVATE_GLOBAL : Used to activate global thread in CSPL initialization ACTIVATE_MAP : Used to activate map thread in CSPL initialization ACTIVATE_ATTACK : Used to activate attack thread in CSPL initialization 11 BUILD IMPROVEMENTS CONSTANTSBUILD_PALACE : Used in city object to represent palace in productionBUILD_BARRACKS : Used in city object to represent barracks in production BUILD_GRANARY : Used in city object to represent granary in production BUILD_TEMPLE : Used in city object to represent temple in production BUILD_MARKETPLACE : Used in city object to represent marketplace in production BUILD_LIBRARY : Used in city object to represent library in production BUILD_COURTHOUSE : Used in city object to represent courthouse in production BUILD_CITYWALLS : Used in city object to represent city walls in production BUILD_ACQUEDUCT : Used in city object to represent aqueduct in production BUILD_BANK : Used in city object to represent bank in production BUILD_CATHEDRAL : Used in city object to represent cathedral in production BUILD_UNIVERSITY : Used in city object to represent university in production BUILD_MASSTRANSIT : Used in city object to represent mass transit in production BUILD_COLOSSEUM : Used in city object to represent colosseum in production BUILD_FACTORY : Used in city object to represent factory in production BUILD_MFGPLANT : Used in city object to represent manufacturing plant in production BUILD_SDI : Used in city object to represent SDI defense in production BUILD_RECYCLCTR : Used in city object to represent recycling center in production BUILD_PWRPLANT : Used in city object to represent power plant in production BUILD_HYDROPLANT : Used in city object to represent hydro plant in production BUILD_NUCLPLANT : Used in city object to represent nuclear plant in production BUILD_STOCKEXC : Used in city object to represent stock exchange in production BUILD_SEWER : Used in city object to represent sewer system in production BUILD_SUPERMKT : Used in city object to represent supermarket in production BUILD_HIGHWAYS : Used in city object to represent superhighways in production BUILD_RESLAB : Used in city object to represent research lab in production BUILD_SAMBATTERY : Used in city object to represent SAM missile battery in production BUILD_CFORTRESS : Used in city object to represent coastal fortress in production BUILD_SOLARPLANT : Used in city object to represent solar plant in production BUILD_HARBOR : Used in city object to represent harbor in production BUILD_OFFSHORE : Used in city object to represent offshore platform in production BUILD_AIRPORT : Used in city object to represent airport in production BUILD_POLICE : Used in city object to represent police in production BUILD_PORT : Used in city object to represent port in production BUILD_TRANSPORTER : Used in city object to represent transporter in production BUILD_STRUCTURAL : Used in city object to represent SS Structural in production BUILD_COMPONENT : Used in city object to represent SS Component in production BUILD_MODULE : Used in city object to represent SS Module in production BUILD_CAPITALIZATION: Used in city object to represent (Capitalization) in production BUILD_PYRAMIDS : Used in city object to represent Pyramids in production BUILD_HANGINGARDEN : Used in city object to represent Hanging Garden in production BUILD_COLOSSUS : Used in city object to represent Colossus in production BUILD_LIGHTHOUSE : Used in city object to represent Lighthouse in production BUILD_GREATLIBRARY : Used in city object to represent Great Library in production BUILD_ORACLE : Used in city object to represent Oracle in production BUILD_GREATWALL : Used in city object to represent Great Wall in production BUILD_SUNTZU : Used in city object to represent Sun Tzu's War Academy in production BUILD_KINGRICHARD : Used in city object to represent King Richard's Crusade in production BUILD_MARCOPOLO : Used in city object to represent Marco Polo's embassy in production BUILD_MICHELANGELO : Used in city object to represent Michelangelo's Chapel in production BUILD_COPERNICUSOBS : Used in city object to represent Copernicus' Observatory in production BUILD_MAGELLAN : Used in city object to represent Magellan's expedition in production BUILD_SHAKESPEARE : Used in city object to represent Shakespeare's Theatre in production BUILD_LEONARDO : Used in city object to represent Leonardo's Workshop in production BUILD_JSBACH : Used in city object to represent J.S.Bach's Cathedral in production BUILD_NEWTONCOLLEGE : Used in city object to represent Newton's College in production BUILD_ADAMSMITH : Used in city object to represent Adam Smith's Trading Co. in production BUILD_DARWINVOYAGE : Used in city object to represent Darwin's Voyage in production BUILD_STATUELIBERTY : Used in city object to represent Statue of Liberty in production BUILD_EIFFELTWR : Used in city object to represent Eiffel Tower in production BUILD_WOMENSUFFRAGE : Used in city object to represent Women Suffrage in production BUILD_HOOVERDAM : Used in city object to represent Hoover Dam in production BUILD_MANHATTANPRJ : Used in city object to represent Manhattan Project in production BUILD_UN : Used in city object to represent United Nations in production BUILD_APOLLO : Used in city object to represent Apollo Program in production BUILD_SETI : Used in city object to represent SETI Program in production BUILD_CURECANCER : Used in city object to represent Cure for Cancer in production 12 CITY IMPROVEMENTS CONSTANTSIMPROVE_PALACE : Used in city object to represent palace presenceIMPROVE_BARRACKS : Used in city object to represent barracks presence IMPROVE_GRANARY : Used in city object to represent granary presence IMPROVE_TEMPLE : Used in city object to represent temple presence IMPROVE_MARKETPLACE : Used in city object to represent marketplace presence IMPROVE_LIBRARY : Used in city object to represent library presence IMPROVE_COURTHOUSE : Used in city object to represent courthouse presence IMPROVE_CITYWALLS : Used in city object to represent city walls presence IMPROVE_ACQUEDUCT : Used in city object to represent aqueduct presence IMPROVE_BANK : Used in city object to represent bank presence IMPROVE_CATHEDRAL : Used in city object to represent cathedral presence IMPROVE_UNIVERSITY : Used in city object to represent university presence IMPROVE_MASSTRANSIT : Used in city object to represent mass transit presence IMPROVE_COLOSSEUM : Used in city object to represent colosseum presence IMPROVE_FACTORY : Used in city object to represent factory presence IMPROVE_MFGPLANT : Used in city object to represent manufacturing plant presence IMPROVE_SDI : Used in city object to represent SDI defense presence IMPROVE_RECYCLCTR : Used in city object to represent recycling center presence IMPROVE_PWRPLANT : Used in city object to represent power plant presence IMPROVE_HYDROPLANT : Used in city object to represent hydro plant presence IMPROVE_NUCLPLANT : Used in city object to represent nuclear plant presence IMPROVE_STOCKEXC : Used in city object to represent stock exchange presence IMPROVE_SEWER : Used in city object to represent sewer system presence IMPROVE_SUPERMKT : Used in city object to represent supermarket presence IMPROVE_HIGHWAYS : Used in city object to represent superhighways presence IMPROVE_RESLAB : Used in city object to represent research lab presence IMPROVE_SAMBATTERY : Used in city object to represent SAM missile battery presence IMPROVE_CFORTRESS : Used in city object to represent coastal fortress presence IMPROVE_SOLARPLANT : Used in city object to represent solar plant presence IMPROVE_HARBOR : Used in city object to represent harbor presence IMPROVE_OFFSHORE : Used in city object to represent offshore platform presence IMPROVE_AIRPORT : Used in city object to represent airport presence IMPROVE_POLICE : Used in city object to represent police presence IMPROVE_PORT : Used in city object to represent port presence IMPROVE_TRANSPORTER : Used in city object to represent transporter presence |