Group_B_VirtualEscapeRoom
|
Functions for executing puzzles. More...
Go to the source code of this file.
Classes | |
struct | object |
Main game object. More... | |
Macros | |
#define | stage1 (objs + 0) |
#define | stage2 (objs + 1) |
#define | stage3 (objs + 2) |
#define | player (objs + 3) |
#define | table (objs + 4) |
#define | letter (objs + 5) |
#define | clock (objs + 6) |
#define | jigsaw_puzzle (objs + 7) |
#define | treasure_bag (objs + 8) |
#define | sheet_music (objs + 9) |
#define | old_piano (objs + 10) |
#define | pirate_chest (objs + 11) |
#define | silver_key (objs + 12) |
#define | silver_door (objs + 13) |
#define | gold_key (objs + 14) |
#define | gold_door (objs + 15) |
#define | ruby_key (objs + 16) |
#define | ruby_door (objs + 17) |
#define | clock_puzzle (objs + 18) |
#define | sliding_puzzle (objs + 19) |
#define | paper_puzzle (objs + 20) |
#define | piano_puzzle (objs + 21) |
#define | riddle_puzzle (objs + 22) |
#define | clock_hint (objs + 23) |
#define | paper_hint (objs + 24) |
#define | slider_hint (objs + 25) |
#define | graffiti (objs + 26) |
#define | graffiti_puzzle (objs + 27) |
#define | graffiti_hint (objs + 28) |
#define | piano_hint (objs + 29) |
#define | riddle_hint (objs + 30) |
#define | blue_lock (objs + 31) |
#define | manual (objs + 32) |
#define | code_puzzle (objs + 33) |
#define | code_hint (objs + 34) |
#define | cupboard (objs + 35) |
#define | cupboard_puzzle (objs + 36) |
#define | cupboard_hint (objs + 37) |
#define | phone (objs + 38) |
#define | phone_puzzle (objs + 39) |
#define | phone_hint (objs + 40) |
#define | end_of_objs (objs + 41) |
Typedefs | |
typedef enum type | type_t |
Game object type. More... | |
typedef enum state | state_t |
Game object state. More... | |
typedef struct object | OBJECT_t |
Main game object. More... | |
Enumerations | |
enum | type { location = 0, visible_object = 1, hidden_object = 2, usable_object = 3, puzzle = 4, hint = 5, actor = 6 } |
Game object type. More... | |
enum | state { closed = 0, open = 1, confined = 2, unrestricted = 3, unsolved = 4, solved = 5, hidden = 6, revealed = 7, used = 8, unused =9, regular = 10 } |
Game object state. More... | |
Variables | |
OBJECT_t | objs [] |
Functions for executing puzzles.
#define blue_lock (objs + 31) |
#define clock (objs + 6) |
#define clock_hint (objs + 23) |
#define clock_puzzle (objs + 18) |
#define code_hint (objs + 34) |
#define code_puzzle (objs + 33) |
#define cupboard (objs + 35) |
#define cupboard_hint (objs + 37) |
#define cupboard_puzzle (objs + 36) |
#define end_of_objs (objs + 41) |
#define gold_door (objs + 15) |
#define gold_key (objs + 14) |
#define graffiti (objs + 26) |
#define graffiti_hint (objs + 28) |
#define graffiti_puzzle (objs + 27) |
#define jigsaw_puzzle (objs + 7) |
#define letter (objs + 5) |
#define manual (objs + 32) |
#define old_piano (objs + 10) |
#define paper_hint (objs + 24) |
#define paper_puzzle (objs + 20) |
#define phone (objs + 38) |
#define phone_hint (objs + 40) |
#define phone_puzzle (objs + 39) |
#define piano_hint (objs + 29) |
#define piano_puzzle (objs + 21) |
#define pirate_chest (objs + 11) |
#define player (objs + 3) |
#define riddle_hint (objs + 30) |
#define riddle_puzzle (objs + 22) |
#define ruby_door (objs + 17) |
#define ruby_key (objs + 16) |
#define sheet_music (objs + 9) |
#define silver_door (objs + 13) |
#define silver_key (objs + 12) |
#define slider_hint (objs + 25) |
#define sliding_puzzle (objs + 19) |
#define stage1 (objs + 0) |
#define stage2 (objs + 1) |
#define stage3 (objs + 2) |
#define table (objs + 4) |
#define treasure_bag (objs + 8) |
Main game object.
Used for any entity in the game, including locations
Game object state.
Used to indicate state of any game object, including stages, puzzles, and hints
Game object type.
Used to indicate what type a game object is, such as location
, usable_object
, etc.
enum state |
enum type |
|
extern |