/*
No Copyright

The person who associated a work with this deed has dedicated the work to the
public domain by waiving all of his or her rights to the work worldwide under
copyright law, including all related and neighboring rights, to the extent
allowed by law.

You can copy, modify, distribute and perform the work, even for commercial
purposes, all without asking permission.

See https://creativecommons.org/share-your-work/public-domain/cc0/ for more
information on the license.


This file is part of the Zork inspired text adventure, made by Tom Blauwendraat.

More info on the project:
https://www.geekabit.nl/projects/some-gifts-for-me/#zork-inspired-text-adventure
*/


typedef struct world {
  int startloc;
  char welcome[512];
} world;

typedef struct location {
  int number;
  char text[512];
  int north, south, east, west;
  int up, down;
  int obj1, obj2;
} location;

typedef struct object {
  int number;
  char prefix[10];
  char name[80];
  char appearance[512];
  int pickup;
} object;

int do_command(char *cmd);
void location_look(int loc);
void go_north(int loc);
void go_south(int loc);
void go_west(int loc);
void go_east(int loc);
void go_down(int loc);
void go_up(int loc);
void go_location(int loc);
void exit_game(void);
void beginworld();
void command_loop();
void spell_directions(int loc);
int spell_items(int loc);
void item_look(char *itemstr);


// end of file
