functions.h
changeset 1328 eacd8225ed42
parent 1317 3c90086ff34f
child 1329 6988419aa6f0
equal deleted inserted replaced
1327:6e507eb10edd 1328:eacd8225ed42
   157 
   157 
   158 void InitializeLandscapeVariables(bool only_constants);
   158 void InitializeLandscapeVariables(bool only_constants);
   159 
   159 
   160 /* misc.c */
   160 /* misc.c */
   161 void DeleteName(StringID id);
   161 void DeleteName(StringID id);
   162 byte *GetName(int id, byte *buff);
   162 char *GetName(int id, char *buff);
   163 
   163 
   164 // AllocateNameUnique also tests if the name used is not used anywere else
   164 // AllocateNameUnique also tests if the name used is not used anywere else
   165 //  and if it is used, it returns an error.
   165 //  and if it is used, it returns an error.
   166 #define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true)
   166 #define AllocateNameUnique(name, skip) RealAllocateName(name, skip, true)
   167 #define AllocateName(name, skip) RealAllocateName(name, skip, false)
   167 #define AllocateName(name, skip) RealAllocateName(name, skip, false)
   168 StringID RealAllocateName(const byte *name, byte skip, bool check_double);
   168 StringID RealAllocateName(const char *name, byte skip, bool check_double);
   169 void ConvertDayToYMD(YearMonthDay *ymd, uint16 date);
   169 void ConvertDayToYMD(YearMonthDay *ymd, uint16 date);
   170 uint ConvertYMDToDay(uint year, uint month, uint day);
   170 uint ConvertYMDToDay(uint year, uint month, uint day);
   171 uint ConvertIntDate(uint date);
   171 uint ConvertIntDate(uint date);
   172 void CSleep(int milliseconds);
   172 void CSleep(int milliseconds);
   173 
   173