101 #define AllocateName(name, skip) RealAllocateName(name, skip, false) |
101 #define AllocateName(name, skip) RealAllocateName(name, skip, false) |
102 StringID RealAllocateName(const char *name, byte skip, bool check_double); |
102 StringID RealAllocateName(const char *name, byte skip, bool check_double); |
103 void ConvertNameArray(); |
103 void ConvertNameArray(); |
104 |
104 |
105 /* misc functions */ |
105 /* misc functions */ |
|
106 /** |
|
107 * Mark a tile given by its coordinate dirty for repaint. |
|
108 * |
|
109 * @ingroup dirty |
|
110 */ |
106 void MarkTileDirty(int x, int y); |
111 void MarkTileDirty(int x, int y); |
|
112 |
|
113 /** |
|
114 * Mark a tile given by its index dirty for repaint. |
|
115 * |
|
116 * @ingroup dirty |
|
117 */ |
107 void MarkTileDirtyByTile(TileIndex tile); |
118 void MarkTileDirtyByTile(TileIndex tile); |
108 void InvalidateWindow(WindowClass cls, WindowNumber number); |
119 void InvalidateWindow(WindowClass cls, WindowNumber number); |
109 void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
120 void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index); |
110 void InvalidateWindowClasses(WindowClass cls); |
121 void InvalidateWindowClasses(WindowClass cls); |
111 void InvalidateWindowClassesData(WindowClass cls); |
122 void InvalidateWindowClassesData(WindowClass cls); |
122 bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); |
133 bool ScrollMainWindowToTile(TileIndex tile, bool instant = false); |
123 bool ScrollMainWindowTo(int x, int y, bool instant = false); |
134 bool ScrollMainWindowTo(int x, int y, bool instant = false); |
124 void DrawSprite(SpriteID img, SpriteID pal, int x, int y); |
135 void DrawSprite(SpriteID img, SpriteID pal, int x, int y); |
125 bool EnsureNoVehicle(TileIndex tile); |
136 bool EnsureNoVehicle(TileIndex tile); |
126 bool EnsureNoVehicleOnGround(TileIndex tile); |
137 bool EnsureNoVehicleOnGround(TileIndex tile); |
|
138 |
|
139 /** |
|
140 * Mark all viewports dirty for repaint. |
|
141 * |
|
142 * @ingroup dirty |
|
143 */ |
127 void MarkAllViewportsDirty(int left, int top, int right, int bottom); |
144 void MarkAllViewportsDirty(int left, int top, int right, int bottom); |
128 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); |
145 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost); |
129 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); |
146 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost); |
130 |
147 |
131 bool CheckIfAuthorityAllows(TileIndex tile); |
148 bool CheckIfAuthorityAllows(TileIndex tile); |