src/hcode/include/glue.h File Reference

#include "config.h"
#include "glue_types.h"

Include dependency graph for glue.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CommandsStruct
struct  SpecialObjectStruct

Defines

#define VERIFY   0
#define SAVE   1
#define LOAD   2
#define XCODE_VERSION   2
#define SPECIAL_FREE   0
#define SPECIAL_ALLOC   1
#define GFLAG_ALL   0
#define GFLAG_MECH   1
#define GFLAG_GROUNDVEH   2
#define GFLAG_AERO   4
#define GFLAG_DS   8
#define GFLAG_VTOL   16
#define GFLAG_NAVAL   32
#define GFLAG_BSUIT   64
#define GFLAG_MW   128
#define Have_MechPower(a, b)   (((Powers2((Owner(a))) & (b)) || Wizard(Owner(a))) && Inherits((a)))

Functions

void send_channel (char *, const char *,...)


Define Documentation

#define GFLAG_AERO   4

Definition at line 39 of file glue.h.

#define GFLAG_ALL   0

Definition at line 36 of file glue.h.

#define GFLAG_BSUIT   64

Definition at line 43 of file glue.h.

#define GFLAG_DS   8

Definition at line 40 of file glue.h.

#define GFLAG_GROUNDVEH   2

Definition at line 38 of file glue.h.

#define GFLAG_MECH   1

Definition at line 37 of file glue.h.

#define GFLAG_MW   128

Definition at line 44 of file glue.h.

#define GFLAG_NAVAL   32

Definition at line 42 of file glue.h.

#define GFLAG_VTOL   16

Definition at line 41 of file glue.h.

#define Have_MechPower ( a,
 )     (((Powers2((Owner(a))) & (b)) || Wizard(Owner(a))) && Inherits((a)))

Definition at line 48 of file glue.h.

Referenced by DoSpecialObjectHelp(), and HandledCommand_sub().

#define LOAD   2

Definition at line 29 of file glue.h.

#define SAVE   1

Definition at line 28 of file glue.h.

#define SPECIAL_ALLOC   1

Definition at line 34 of file glue.h.

#define SPECIAL_FREE   0

Definition at line 33 of file glue.h.

#define VERIFY   0

Definition at line 27 of file glue.h.

#define XCODE_VERSION   2

Definition at line 31 of file glue.h.

Referenced by load_xcode(), and SaveSpecialObjects().


Function Documentation

void send_channel ( char *  ,
const char *  ,
  ... 
)

Definition at line 46 of file comsys.c.

00047 {
00048         struct channel *ch;
00049         char buf[LBUF_SIZE];
00050         char data[LBUF_SIZE];
00051         char *newline;
00052         va_list ap;
00053 
00054         if(!(ch = select_channel(chan)))
00055                 return;
00056         va_start(ap, format);
00057         vsnprintf(data, LBUF_SIZE, format, ap);
00058         va_end(ap);
00059 
00060         snprintf(buf, LBUF_SIZE-1, "[%s] %s", chan, data);
00061         while ((newline = strchr(buf, '\n')))
00062                 *newline = ' ';
00063         do_comsend(ch, buf);
00064 }


Generated on Mon May 28 04:25:44 2007 for BattletechMUX by  doxygen 1.4.7