transport.h
AwakeMUD-0.6Beta/src/transport.h · 900 B
From the archive AwakeMUD-0.60_Beta.tgz
Download the archive « Back to the archive contents
// file: transport.h
// author: Andrew Hynek
// purpose: contains defines and structs for transportation system
// Copyright (c) 1998 by Andrew Hynek
#ifndef _transport_h_
#define _transport_h_
#define ELEVATOR_FILE "etc/elevator"
#define FIRST_CAB 600
#define LAST_CAB 610
#define CMD_NONE 0
#define CMD_DEST 1
#define CMD_YES 2
#define CMD_NO 3
#define ACT_AWAIT_CMD 0
#define ACT_REPLY_DEST 1
#define ACT_AWAIT_YESNO 2
#define ACT_REPLY_NOTOK 3
#define ACT_REPLY_TOOBAD 4
#define ACT_DRIVING 5
struct dest_data {
char *keyword, *str;
int vnum;
sh_int dist, dir;
};
struct floor_data {
int vnum;
sh_int doors;
};
struct elevator_data {
int room;
sh_int columns, time_left, dir, destination, num_floors, start_floor;
struct floor_data *floor;
elevator_data() :
floor(NULL) {}
};
#endif