Shiptest 13 - Modules - TypesDefine Details

code/__DEFINES/maths.dm

TOBITSHIFTGets shift x that would be required the bitflag (1<<x)
MANHATTAN_DISTANCETaxicab distance--gets you the actual time it takes to get from one turf to another due to how we calculate diagonal movement
LOGISTIC_FUNCTIONA function that exponentially approaches a maximum value of L k is the rate at which is approaches L, x_0 is the point where the function = 0
FORCE_BOOLEANMake sure something is a boolean TRUE/FALSE 1/0 value, since things like bitfield & bitflag doesn't always give 1s and 0s.
TILES_TO_PIXELSGives the number of pixels in an orthogonal line of tiles.

Define Details

FORCE_BOOLEAN

Make sure something is a boolean TRUE/FALSE 1/0 value, since things like bitfield & bitflag doesn't always give 1s and 0s.

LOGISTIC_FUNCTION

A function that exponentially approaches a maximum value of L k is the rate at which is approaches L, x_0 is the point where the function = 0

MANHATTAN_DISTANCE

Taxicab distance--gets you the actual time it takes to get from one turf to another due to how we calculate diagonal movement

TILES_TO_PIXELS

Gives the number of pixels in an orthogonal line of tiles.

TOBITSHIFT

Gets shift x that would be required the bitflag (1<<x)