ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: GAMES/MINE/STATE.CC

Source reference: GAMES/MINE/STATE.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path GAMES/MINE/STATE.CC
Lines 53
Bytes 742
SHA-256 7f5f49641ec671413253a6529041662e4bced631dabb834905cf5bd24d23df12
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
— No C-like function definition detected by the scanner.

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

struct Flags {
    unsigned ground : 1;
    unsigned water : 1;
    unsigned bow : 1;
    unsigned alive : 1;
};

struct Actor {
    float x;
    float y;
    float z;
    float vx;
    float vy;
    float vz;
    float yaw;
    float pitch;
    int kind;
    int state;
    int timer;
    struct Flags bits;
};

struct Actor g_act[16];
struct Actor g_snap;
int g_phase;
int g_built;
int g_mode;
int g_hand;
int g_inv[16];
int g_wood;
int g_pearl;
int g_arrows;
int g_bias;
int g_rain;
int g_charge;
int g_charging;
int g_toast;
int g_note;
int g_look;
int g_pmx;
int g_pmy;
int g_scene;
int g_phys;
int g_break;
float g_v[24];
float g_mat[16];
char g_sav[48];
char g_spr[64];
char g_tile[32];
char g_pal[768];
char g_pcm[64];
char g_num[8];

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-7f5f49641ec67141 Reviewed source: da3df29cb397 Class: generated-source-reference