00001
00008 #if !defined(_BUILD_H_)
00009 #define _BUILD_H_
00010
00011 #include <zakdef.h>
00012 #include <sections.h>
00013 #include <compilerpragmas.h>
00014
00015 #if defined(__cplusplus)
00016 extern "C" {
00017 #endif
00018
00025 typedef enum BuildCode {
00026 Be_Bulldozer = 0,
00027 Be_Zone_Residential,
00028 Be_Zone_Commercial,
00029 Be_Zone_Industrial,
00030 Be_Road,
00031 Be_Rail,
00032 Be_Power_Plant,
00033 Be_Nuclear_Plant,
00034 Be_Power_Line,
00035 Be_Water_Pump,
00036 Be_Water_Pipe,
00037 Be_Tree,
00038 Be_Water,
00039 Be_Fire_Station,
00040 Be_Police_Station,
00041 Be_Military_Base,
00042 Be_Query,
00043
00044
00045 Be_Defence_Fire,
00046 Be_Defence_Police,
00047 Be_Defence_Military,
00048 Be_Extra,
00049 Be_OOB
00050 } BuildCode;
00051
00053 #define BUILD_COST_BULLDOZER 5
00054
00055 #define BUILD_COST_ZONE 50
00056
00057 #define BUILD_COST_ROAD 20
00058
00059 #define BUILD_COST_POWER_PLANT 3000
00060
00061 #define BUILD_COST_NUCLEAR_PLANT 10000
00062
00063 #define BUILD_COST_POWER_LINE 5
00064
00065 #define BUILD_COST_TREE 10
00066
00067 #define BUILD_COST_WATER 200
00068
00069 #define BUILD_COST_BRIDGE 100
00070
00072 #define BUILD_COST_RAIL 25
00073
00074 #define BUILD_COST_RAILTUNNEL 125
00075
00077 #define BUILD_COST_FIRE_STATION 700
00078
00079 #define BUILD_COST_POLICE_STATION 500
00080
00081 #define BUILD_COST_MILITARY_BASE 10000
00082
00083 #define BUILD_COST_WATER_PIPE 20
00084
00085 #define BUILD_COST_WATER_PUMP 3000
00086
00093 EXPORT int Build_Bulldoze(UInt16 xpos, UInt16 ypos, welem_t _unused) \
00094 BUILD_SECTION;
00101 EXPORT int BuildSomething(UInt16 xpos, UInt16 ypos) BUILD_SECTION;
00109 EXPORT void Build_Destroy(UInt16 xpos, UInt16 ypos) BUILD_SECTION;
00111 EXPORT void CreateFullRiver(void) BUILD_SECTION;
00113 EXPORT void CreateForests(void) BUILD_SECTION;
00115 EXPORT void RemoveAllDefence(void) BUILD_SECTION;
00116
00117 #if defined(__cplusplus)
00118 }
00119 #endif
00120
00121 #endif