src/comsys.h File Reference

#include "commac.h"
#include "myfifo.h"

Include dependency graph for comsys.h:

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

Go to the source code of this file.

Data Structures

struct  chanentry
struct  comuser
struct  channel
struct  chmsg

Defines

#define CHAN_NAME_LEN   50
#define CHANNEL_JOIN   0x001
#define CHANNEL_TRANSMIT   0x002
#define CHANNEL_RECIEVE   0x004
#define CHANNEL_PL_MULT   0x001
#define CHANNEL_OBJ_MULT   0x010
#define CHANNEL_LOUD   0x100
#define CHANNEL_PUBLIC   0x200
#define CHANNEL_TRANSPARENT   0x400
#define UNDEAD(x)

Typedefs

typedef chanentry CHANENT

Functions

int In_IC_Loc (dbref player)

Variables

int num_channels
int max_channels


Define Documentation

#define CHAN_NAME_LEN   50

Definition at line 19 of file comsys.h.

#define CHANNEL_JOIN   0x001

Definition at line 57 of file comsys.h.

Referenced by do_addcom(), do_chanlist(), do_chanstatus(), do_editchannel(), do_listchannels(), and do_test_access().

#define CHANNEL_LOUD   0x100

Definition at line 63 of file comsys.h.

Referenced by do_chanlist(), do_chanstatus(), do_chloud(), do_chsquelch(), do_comconnectraw_notify(), do_comdisconnectraw_notify(), and do_listchannels().

#define CHANNEL_OBJ_MULT   0x010

Definition at line 62 of file comsys.h.

Referenced by do_chanstatus(), do_editchannel(), do_listchannels(), and do_test_access().

#define CHANNEL_PL_MULT   0x001

Definition at line 61 of file comsys.h.

Referenced by do_chanstatus(), do_editchannel(), do_listchannels(), and do_test_access().

#define CHANNEL_PUBLIC   0x200

Definition at line 64 of file comsys.h.

Referenced by do_chanlist(), do_chanstatus(), do_chclose(), do_chopen(), and do_listchannels().

#define CHANNEL_RECIEVE   0x004

Definition at line 59 of file comsys.h.

Referenced by do_chanstatus(), do_comprintf(), do_comsend(), do_editchannel(), do_listchannels(), and do_test_access().

#define CHANNEL_TRANSMIT   0x002

Definition at line 58 of file comsys.h.

Referenced by do_chanstatus(), do_editchannel(), do_listchannels(), do_processcom(), and do_test_access().

#define CHANNEL_TRANSPARENT   0x400

Definition at line 65 of file comsys.h.

Referenced by do_channelwho(), do_chopaque(), do_chtransparent(), and do_comwho().

#define UNDEAD ( x   ) 

Value:

(((!God(Owner(x))) || !(Going(x))) && \
            ((Typeof(x) != TYPE_PLAYER) || (Connected(x))))

Definition at line 67 of file comsys.h.

Referenced by do_channelwho(), and do_joinchannel().


Typedef Documentation

typedef struct chanentry CHANENT

Definition at line 13 of file comsys.h.


Function Documentation

int In_IC_Loc ( dbref  player  ) 

Definition at line 780 of file command.c.

00781 {
00782         dbref d = Location(player);
00783         int z = 0;
00784 
00785         while (isPlayer(d)) {
00786                 int od = d;
00787 
00788                 if((d = Location(d)) == od)
00789                         break;
00790                 if(z++ >= 100)
00791                         break;
00792         }
00793         if(mudconf.btech_ooc_comsys && !Gagged(player))
00794                 return 0;
00795         else if(In_Character(d) || Gagged(player))
00796                 return 1;
00797         return 0;
00798 }                                                               /* end In_IC_Loc() */


Variable Documentation

int max_channels

Definition at line 52 of file comsys.h.

int num_channels

Definition at line 51 of file comsys.h.

Referenced by do_channelnuke(), do_createchannel(), do_destroychannel(), load_comsystem(), mmdb_db_read(), and save_comsystem().


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