mirror of https://github.com/OpenTTD/OpenTTD
(svn r14823) -Document: some variables/structs (Alberth)
parent
2a47aaf4a8
commit
702c372744
|
@ -17,9 +17,9 @@
|
||||||
#include "rail_gui.h"
|
#include "rail_gui.h"
|
||||||
#include "saveload.h"
|
#include "saveload.h"
|
||||||
|
|
||||||
Year _cur_year;
|
Year _cur_year; ///< Current year, starting at 0
|
||||||
Month _cur_month;
|
Month _cur_month; ///< Current month (0..11)
|
||||||
Date _date;
|
Date _date; ///< Current date in days (day counter)
|
||||||
DateFract _date_fract;
|
DateFract _date_fract;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -46,10 +46,14 @@ typedef int32 Year;
|
||||||
typedef uint8 Month;
|
typedef uint8 Month;
|
||||||
typedef uint8 Day;
|
typedef uint8 Day;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Data structure to convert between Date and triplet (year, month, and day).
|
||||||
|
* @see ConvertDateToYMD(), ConvertYMDToDate()
|
||||||
|
*/
|
||||||
struct YearMonthDay {
|
struct YearMonthDay {
|
||||||
Year year;
|
Year year; ///< Year (0...)
|
||||||
Month month; ///< 0 - 11
|
Month month; ///< Month (0..11)
|
||||||
Day day; ///< 1 - 31
|
Day day; ///< Day (1..31)
|
||||||
};
|
};
|
||||||
|
|
||||||
static const Year INVALID_YEAR = -1;
|
static const Year INVALID_YEAR = -1;
|
||||||
|
|
|
@ -52,8 +52,8 @@ void BuildOilRig(TileIndex tile);
|
||||||
static byte _industry_sound_ctr;
|
static byte _industry_sound_ctr;
|
||||||
static TileIndex _industry_sound_tile;
|
static TileIndex _industry_sound_tile;
|
||||||
|
|
||||||
int _total_industries; //general counter
|
int _total_industries; ///< General counter
|
||||||
uint16 _industry_counts[NUM_INDUSTRYTYPES]; // Number of industries per type ingame
|
uint16 _industry_counts[NUM_INDUSTRYTYPES]; ///< Number of industries per type ingame
|
||||||
|
|
||||||
IndustrySpec _industry_specs[NUM_INDUSTRYTYPES];
|
IndustrySpec _industry_specs[NUM_INDUSTRYTYPES];
|
||||||
IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
|
IndustryTileSpec _industry_tile_specs[NUM_INDUSTRYTILES];
|
||||||
|
|
Loading…
Reference in New Issue