File diff r4911:1934a0c6e865 → r4912:d420151de4c6
functions.h
Show inline comments
 
@@ -119,49 +119,49 @@ void DrawTextEffects(DrawPixelInfo *dpi)
 

	
 
void InitTextMessage(void);
 
void DrawTextMessage(void);
 
void CDECL AddTextMessage(uint16 color, uint8 duration, const char *message, ...);
 
void UndrawTextMessage(void);
 

	
 
bool AddAnimatedTile(TileIndex tile);
 
void DeleteAnimatedTile(TileIndex tile);
 
void AnimateAnimatedTiles(void);
 
void InitializeAnimatedTiles(void);
 

	
 
/* tunnelbridge_cmd.c */
 
bool CheckBridge_Stuff(byte bridge_type, uint bridge_len);
 
uint32 GetBridgeLength(TileIndex begin, TileIndex end);
 
int CalcBridgeLenCostFactor(int x);
 

	
 
/* misc_cmd.c */
 
void PlaceTreesRandomly(void);
 

	
 
void InitializeLandscapeVariables(bool only_constants);
 

	
 
/* misc.c */
 
bool IsCustomName(StringID id);
 
void DeleteName(StringID id);
 
char *GetName(int id, char *buff);
 
char *GetName(char *buff, StringID id, const char* last);
 

	
 
// AllocateNameUnique also tests if the name used is not used anywere else
 
//  and if it is used, it returns an error.
 
#define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true)
 
#define AllocateName(name, skip) RealAllocateName(name, skip, false)
 
StringID RealAllocateName(const char *name, byte skip, bool check_double);
 

	
 
/* misc functions */
 
void MarkTileDirty(int x, int y);
 
void MarkTileDirtyByTile(TileIndex tile);
 
void InvalidateWindow(WindowClass cls, WindowNumber number);
 
void InvalidateWindowWidget(WindowClass cls, WindowNumber number, byte widget_index);
 
void InvalidateWindowClasses(WindowClass cls);
 
void InvalidateWindowClassesData(WindowClass cls);
 
void DeleteWindowById(WindowClass cls, WindowNumber number);
 
void DeleteWindowByClass(WindowClass cls);
 

	
 
void SetObjectToPlaceWnd(CursorID icon, byte mode, Window *w);
 
void SetObjectToPlace(CursorID icon, byte mode, WindowClass window_class, WindowNumber window_num);
 

	
 
void ResetObjectToPlace(void);
 

	
 
bool ScrollWindowTo(int x, int y, Window * w);