Group_B_VirtualEscapeRoom
Public Attributes | List of all members
object Struct Reference

Main game object. More...

#include <object.h>

Public Attributes

const char * description
 Short text description of object Description of object in the current stage of game. More...
 
const char * tag
 Tag for object Used to look up objects in the global list of objects. More...
 
type_t type
 Type of object Used to determine the type of an object, such as location, usable_objects, etc. More...
 
state_t state
 State of object Used to keep track of state, such as whether a door is open, a puzzle is compelte, etc. More...
 
const char * detailed_description
 Long text description of object Used to describe the object in more detail, when inspecting an object. More...
 
struct objectlocation
 Location of object Location of object as another object. More...
 

Detailed Description

Main game object.

Used for any entity in the game, including locations

Member Data Documentation

◆ description

const char* object::description

Short text description of object Description of object in the current stage of game.

◆ detailed_description

const char* object::detailed_description

Long text description of object Used to describe the object in more detail, when inspecting an object.

◆ location

struct object* object::location

Location of object Location of object as another object.

◆ state

state_t object::state

State of object Used to keep track of state, such as whether a door is open, a puzzle is compelte, etc.

◆ tag

const char* object::tag

Tag for object Used to look up objects in the global list of objects.

◆ type

type_t object::type

Type of object Used to determine the type of an object, such as location, usable_objects, etc.


The documentation for this struct was generated from the following file: