40 coord operator + (coord other);
41 coord operator - (coord other);
43 coord operator * (integer fac);
44 coord operator / (integer fac);
79 coord(
int x,
int y,
int z);
81 coord3d operator - (coord other);
83 coord3d operator - (coord other);
85 coord3d operator * (integer fac);
86 coord3d operator / (integer fac);
114 static const dir none;
115 static const dir north;
116 static const dir east;
117 static const dir northeast;
118 static const dir south;
119 static const dir northsouth;
120 static const dir southeast;
121 static const dir northsoutheast;
122 static const dir west;
123 static const dir northwest;
124 static const dir eastwest;
125 static const dir northeastwest;
126 static const dir southwest;
127 static const dir northsouthwest;
128 static const dir southeastwest;
129 static const dir all;
184 static const slope flat;
dir coord_to_dir(coord dir)
integer z
z-coordinate - height
static bool is_straight(dir d)
static bool is_twoway(dir d)
static bool is_curve(dir d)
static bool is_threeway(dir d)
static bool is_single(dir d)
static slope to_slope(dir d)
static dir backward(dir d)
static const slope southeast
SE corner.
static const slope all_up_slope
used for terraforming tools
static const slope raised
special meaning: used as slope of bridgeheads
static const slope northwest
NW corner.
static dir to_dir(slope s)
static const slope south
South slope.
static const slope northeast
NE corner.
static const slope west
West slope.
static const slope north
North slope.
static const slope southwest
SW corner.
static const slope east
East slope.
static const slope all_down_slope
used for terraforming tools
integer ticks
current time in ticks
integer ticks_per_month
length of one in-game month in ticks
integer next_month_ticks
new month will start at this time
integer month
month in 0..11
integer raw
raw integer value of date