Group_B_VirtualEscapeRoom
Classes | Macros | Typedefs | Enumerations | Variables
object.h File Reference

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 []
 

Detailed Description

Functions for executing puzzles.

Macro Definition Documentation

◆ blue_lock

#define blue_lock   (objs + 31)

◆ clock

#define clock   (objs + 6)

◆ clock_hint

#define clock_hint   (objs + 23)

◆ clock_puzzle

#define clock_puzzle   (objs + 18)

◆ code_hint

#define code_hint   (objs + 34)

◆ code_puzzle

#define code_puzzle   (objs + 33)

◆ cupboard

#define cupboard   (objs + 35)

◆ cupboard_hint

#define cupboard_hint   (objs + 37)

◆ cupboard_puzzle

#define cupboard_puzzle   (objs + 36)

◆ end_of_objs

#define end_of_objs   (objs + 41)

◆ gold_door

#define gold_door   (objs + 15)

◆ gold_key

#define gold_key   (objs + 14)

◆ graffiti

#define graffiti   (objs + 26)

◆ graffiti_hint

#define graffiti_hint   (objs + 28)

◆ graffiti_puzzle

#define graffiti_puzzle   (objs + 27)

◆ jigsaw_puzzle

#define jigsaw_puzzle   (objs + 7)

◆ letter

#define letter   (objs + 5)

◆ manual

#define manual   (objs + 32)

◆ old_piano

#define old_piano   (objs + 10)

◆ paper_hint

#define paper_hint   (objs + 24)

◆ paper_puzzle

#define paper_puzzle   (objs + 20)

◆ phone

#define phone   (objs + 38)

◆ phone_hint

#define phone_hint   (objs + 40)

◆ phone_puzzle

#define phone_puzzle   (objs + 39)

◆ piano_hint

#define piano_hint   (objs + 29)

◆ piano_puzzle

#define piano_puzzle   (objs + 21)

◆ pirate_chest

#define pirate_chest   (objs + 11)

◆ player

#define player   (objs + 3)

◆ riddle_hint

#define riddle_hint   (objs + 30)

◆ riddle_puzzle

#define riddle_puzzle   (objs + 22)

◆ ruby_door

#define ruby_door   (objs + 17)

◆ ruby_key

#define ruby_key   (objs + 16)

◆ sheet_music

#define sheet_music   (objs + 9)

◆ silver_door

#define silver_door   (objs + 13)

◆ silver_key

#define silver_key   (objs + 12)

◆ slider_hint

#define slider_hint   (objs + 25)

◆ sliding_puzzle

#define sliding_puzzle   (objs + 19)

◆ stage1

#define stage1   (objs + 0)

◆ stage2

#define stage2   (objs + 1)

◆ stage3

#define stage3   (objs + 2)

◆ table

#define table   (objs + 4)

◆ treasure_bag

#define treasure_bag   (objs + 8)

Typedef Documentation

◆ OBJECT_t

typedef struct object OBJECT_t

Main game object.

Used for any entity in the game, including locations

◆ state_t

typedef enum state state_t

Game object state.

Used to indicate state of any game object, including stages, puzzles, and hints

◆ type_t

typedef enum type type_t

Game object type.

Used to indicate what type a game object is, such as location, usable_object, etc.

Enumeration Type Documentation

◆ state

enum state

Game object state.

Used to indicate state of any game object, including stages, puzzles, and hints

Enumerator
closed 
open 
confined 
unrestricted 
unsolved 
solved 
hidden 
revealed 
used 
unused 
regular 

◆ type

enum type

Game object type.

Used to indicate what type a game object is, such as location, usable_object, etc.

Enumerator
location 
visible_object 
hidden_object 
usable_object 
puzzle 
hint 
actor 

Variable Documentation

◆ objs

OBJECT_t objs[]
extern