Debian Codegraph @

src/lincity/lin-city.hpp

raw symbols SCIP
1 /* ---------------------------------------------------------------------- *
2 * src/lincity/lin-city.hpp
3 * This file is part of Lincity-NG.
4 *
5 * Copyright (C) 1995-1997 I J Peters
6 * Copyright (C) 1997-2005 Greg Sharp
7 * Copyright (C) 2000-2004 Corey Keasling
8 * Copyright (C) 2022-2025 David Bears <[email protected]>
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 along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 ** ---------------------------------------------------------------------- */
24
25 #ifndef __lin_city_h__
26 #define __lin_city_h__cxx . . $ `src/lincity/lin-city.hpp:26:9`!
27
28 #define RESULTS_FILENAMEcxx . . $ `src/lincity/lin-city.hpp:28:9`! "results.txt"
29
30 #if defined (_MSC_VER)
31 # define snprintf _snprintf
32 #endif
33
34 /* AL1 : unused in 2.x
35 #define USE_X11_PIXMAPS
36 */
37
38 #ifndef TRUE
39 # define TRUEcxx . . $ `src/lincity/lin-city.hpp:39:12`! 1
40 #endif
41 #ifndef FALSE
42 # define FALSEcxx . . $ `src/lincity/lin-city.hpp:42:12`! 0
43 #endif
44
45 // MapTile flags
46 #define FLAG_POWER_CABLES_0cxx . . $ `src/lincity/lin-city.hpp:46:9`! (0x00000001) // TODO: use extraFrame instead
47 #define FLAG_POWER_CABLES_90cxx . . $ `src/lincity/lin-city.hpp:47:9`! (0x00000002) // TODO: use extraFrame instead
48 #define FLAG_MARKET_COVERcxx . . $ `src/lincity/lin-city.hpp:48:9`! (0x00010000)
49 #define FLAG_MARKET_COVER_CHECKcxx . . $ `src/lincity/lin-city.hpp:49:9`! (0x00020000)
50 #define FLAG_FIRE_COVERcxx . . $ `src/lincity/lin-city.hpp:50:9`! (0x00040000)
51 #define FLAG_FIRE_COVER_CHECKcxx . . $ `src/lincity/lin-city.hpp:51:9`! (0x00080000)
52 #define FLAG_HEALTH_COVERcxx . . $ `src/lincity/lin-city.hpp:52:9`! (0x00100000)
53 #define FLAG_HEALTH_COVER_CHECKcxx . . $ `src/lincity/lin-city.hpp:53:9`! (0x00200000)
54 #define FLAG_CRICKET_COVERcxx . . $ `src/lincity/lin-city.hpp:54:9`! (0x00400000)
55 #define FLAG_CRICKET_COVER_CHECKcxx . . $ `src/lincity/lin-city.hpp:55:9`! (0x00800000)
56 #define FLAG_IS_LAKEcxx . . $ `src/lincity/lin-city.hpp:56:9`! (0x01000000)
57 #define FLAG_IS_RIVERcxx . . $ `src/lincity/lin-city.hpp:57:9`! (0x02000000)
58 #define FLAG_HAS_UNDERGROUND_WATERcxx . . $ `src/lincity/lin-city.hpp:58:9`! (0x20000000)
59
60 // Construction flags
61 #define FLAG_FEDcxx . . $ `src/lincity/lin-city.hpp:61:9`! (0x00000020) // TODO: move to residence.h
62 #define FLAG_EMPLOYEDcxx . . $ `src/lincity/lin-city.hpp:62:9`! (0x00000040) // TODO: move to residence.h
63 #define FLAG_IS_TRANSPORTcxx . . $ `src/lincity/lin-city.hpp:63:9`! (0x00000080) // TODO: volatile
64 #define FLAG_NEVER_EVACUATEcxx . . $ `src/lincity/lin-city.hpp:64:9`! (0x00000100) // TODO: volatile
65 #define FLAG_EVACUATEcxx . . $ `src/lincity/lin-city.hpp:65:9`! (0x00000200)
66 #define FLAG_HAD_POWERcxx . . $ `src/lincity/lin-city.hpp:66:9`! (0x01000000) // TODO: move to residence.h
67 #define FLAG_TRANSPARENTcxx . . $ `src/lincity/lin-city.hpp:67:9`! (0x08000000) // TODO: volatile
68
69 //volatile flags from savegames are ignorred, and will be reset at loading
70 #define VOLATILE_FLAGScxx . . $ `src/lincity/lin-city.hpp:70:9`! (FLAG_POWER_CABLES_0 | FLAG_POWER_CABLES_90 )
71
72 //#define SHUFFLE_MAPPOINT_COUNT 4
73
74 // TODO: move SIM_DELAY_* to lincity-ng directory
75 #define SIM_DELAY_PAUSEcxx . . $ `src/lincity/lin-city.hpp:75:9`! -1
76 #define SIM_DELAY_FASTcxx . . $ `src/lincity/lin-city.hpp:76:9`! 0
77 #define SIM_DELAY_MEDcxx . . $ `src/lincity/lin-city.hpp:77:9`! 20
78 #define SIM_DELAY_SLOWcxx . . $ `src/lincity/lin-city.hpp:78:9`! 60
79
80 #define ANIMATE_DELAYcxx . . $ `src/lincity/lin-city.hpp:80:9`! 100
81
82 // Used to find a threshold time that is not close to an animate target time.
83 // This helps animation keep a consistent speed with varying fps.
84 #define ANIM_THRESHOLDcxx . . $ `src/lincity/lin-city.hpp:84:9`!(millis) (((millis) + ANIMATE_DELAY / 2) \
85 / ANIMATE_DELAY * ANIMATE_DELAY - ANIMATE_DELAY / 2)
86 /* #define ANIM_THRESHOLD(millis) \
87 (millis - (millis + ANIMATE_DELAY / 2) % ANIMATE_DELAY) */
88
89 #define MIN_RES_POPULATIONcxx . . $ `src/lincity/lin-city.hpp:89:9`! 10
90
91 /*
92 tech-level/TECH_LEVEL_LOSS is lost every month when
93 above TECH_LEVEL_LOSS_START
94 */
95 #define MAX_TECH_LEVELcxx . . $ `src/lincity/lin-city.hpp:95:9`! 1000000
96 #define TECH_LEVEL_LOSS_STARTcxx . . $ `src/lincity/lin-city.hpp:96:9`! 11000
97 #define TECH_LEVEL_LOSScxx . . $ `src/lincity/lin-city.hpp:97:9`! 500
98 #define TECH_LEVEL_UNAIDEDcxx . . $ `src/lincity/lin-city.hpp:98:9`! 2
99
100 #endif /* __lin_city_h__ */
101
102 /** @file lincity/lin-city.h */