Alchemy
Loading...
Searching...
No Matches

overlay_object.h

Go to the documentation of this file.
1#ifndef ALCHEMY_OVERLAY_OBJECT_H
2#define ALCHEMY_OVERLAY_OBJECT_H
3
4/// @file
5/// Overlay objects and their records.
6
7#include "types.h"
8#include "static_assert.h"
9
13};
14
15/// A field object as a Mercury Lighthouse beacon spark sees it: its position
16/// and target, its angle round the flame and the flame it is linked to.
19 u16 angle; ///< 1/65536 turns
20 s32 coordinate08; ///< 16.16 fixed-point pixels
22 s32 coordinate10; ///< 16.16 fixed-point pixels
23 u8 unk14[0x1c];
26 s32 coordinate38; ///< 16.16 fixed-point pixels
28 s32 coordinate40; ///< 16.16 fixed-point pixels
29 u8 unk44[0x0c];
37 u16 angle64; ///< 1/65536 turns
40};
41
55
56#endif
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
Definition stddef.h:19
A field object as a Mercury Lighthouse beacon spark sees it: its position and target,...
s32 coordinate08
16.16 fixed-point pixels
s32 coordinate10
16.16 fixed-point pixels
struct OverlayObject * linkedObject
u16 angle64
1/65536 turns
struct OverlayObjectRecord * record
u16 angle
1/65536 turns
s32 coordinate38
16.16 fixed-point pixels
s32 coordinate40
16.16 fixed-point pixels
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned short u16
Definition types.h:13
unsigned char u8
Definition types.h:11