File: mudtypes.h

package info (click to toggle)
aime 0.60.3-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,016 kB
  • ctags: 5,217
  • sloc: cpp: 77,611; ansic: 3,765; sh: 2,996; makefile: 234; sed: 93
file content (46 lines) | stat: -rw-r--r-- 1,245 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _MUDTYPES_H_
#define _MUDTYPES_H_

#include "linkedlist.h"

class Code;
class Specials;
class MudObject;

struct in_params;
struct special_env;

class params;


#define MAXNAMELEN     80   /* max length a mudobject name can have */
#define MAXFILENAMELEN 60   /* max length of a filename that we will allow */
#define MAXTITLELEN    80
#define MAX_COM_LEN    600  /* max length for communications */
#define MAX_VERB_LEN   16   /* max length a command (verb) can be */
#define MAXPROMPTLEN   100  /* max length of a user prompt */
#define MAX_MUTEX_SEC  3    /* max seconds we try to lock a mutex */

#define CPP  "/usr/lib/cpp -P -traditional -I../src"  /* C preprocessor */

#define END_TABLE      -1   /* signifies the end of a table */

//the ifdef that follows is for use by compiler that don't have bool builtin.
//Uncomment DEF in the Makefile to define BOOL_COMPAT. 
#ifdef BOOL_COMPAT
typedef enum { false, true } bool;
#endif

enum load_type { None, Header, Full };

class Individual;
class Parse;
typedef void (*Cmd_Func)(Parse *, MudObject *); 
typedef params *(*Spec_Func)(LinkedList<params> *, Specials *, Individual *, 
			     in_params *, special_env *, int *);
typedef int (*Inp_Func)(MudObject *, char *); 


#endif