Skip to Content
The Alchemy Project

struct FIELD_COORDINATE

A field coordinate, read whole or as its fraction and its whole pixels. More…

Declared in field_coordinate.h.

Fields

NameDescription
struct { Uint16decimal, integer, part ; Sint16 integer; } part[0]1/65536 pixels
FIXEDfixed16.16 fixed-point pixels

Description

A field coordinate, read whole or as its fraction and its whole pixels. The halves are a zero-length array over the whole, not a union: a union member may alias anything, and the game's code reads coordinates as plain words.

struct FIELD_COORDINATE

Referenced by fdMapGridCheckCollision(), fdTryJumpForward(), offsetof, scAltmillerCaveHopOverPuddle(), scKolimaForestHopTo(), scLogRoomsATryJumpTo(), scMercuryLighthouseHopAcrossPool() and scValeCaveLeapOffRidingLog().

Definition at line 13 of file field_coordinate.h.

Fields in detail

decimal, integer, part

struct { Uint16 decimal; Sint16 integer; } part[0]

1/65536 pixels

fixed

FIXED fixed

16.16 fixed-point pixels