#include <globals.h>
Public Member Functions | |
| Global (uint16 num) | |
| virtual int16 | get ()=0 |
| virtual int16 | set (int16 val)=0 |
| virtual uint16 | getNum () const |
| virtual void | setRaw (int16 val)=0 |
The original game uses a struct here with 3 entries:
The original also creates a lookup table to do O(1) lookups of each global, but there are only ~20 of them so we just iterate through each time.