btmux/autom4te.cache/
btmux/doc/.svn/
btmux/event/.svn/
btmux/game/.svn/
btmux/game/bin/.svn/
btmux/game/data/.svn/
btmux/game/logs/.svn/
btmux/game/maps/
btmux/game/maps/.svn/
btmux/game/maps/.svn/prop-base/
btmux/game/maps/.svn/props/
btmux/game/maps/.svn/text-base/
btmux/game/maps/.svn/wcprops/
btmux/game/mechs/
btmux/game/mechs/.svn/
btmux/game/mechs/.svn/prop-base/
btmux/game/mechs/.svn/props/
btmux/game/mechs/.svn/text-base/
btmux/game/mechs/.svn/wcprops/
btmux/game/text/.svn/
btmux/include/.svn/
btmux/misc/
btmux/misc/.svn/
btmux/misc/.svn/prop-base/
btmux/misc/.svn/props/
btmux/misc/.svn/text-base/
btmux/misc/.svn/wcprops/
btmux/python/
btmux/python/.svn/
btmux/python/.svn/prop-base/
btmux/python/.svn/props/
btmux/python/.svn/text-base/
btmux/python/.svn/wcprops/
btmux/src/.svn/prop-base/
btmux/src/.svn/props/
btmux/src/.svn/text-base/
btmux/src/.svn/wcprops/
btmux/src/hcode/.svn/
btmux/src/hcode/btech/
btmux/src/hcode/btech/.svn/
btmux/src/hcode/btech/.svn/prop-base/
btmux/src/hcode/btech/.svn/props/
btmux/src/hcode/btech/.svn/text-base/
btmux/src/hcode/btech/.svn/wcprops/
btmux/src/hcode/include/.svn/
/* comsys.h */

/* $Id: comsys.h,v 1.1 2005/06/13 20:50:46 murrayma Exp $ */

#include "commac.h"
#ifdef CHANNEL_HISTORY
#include "myfifo.h"
#endif
#ifndef __COMSYS_H__
#define __COMSYS_H__

typedef struct chanentry CHANENT;
struct chanentry {
    char *channame;
    struct channel *chan;
};

#define CHAN_NAME_LEN 50
struct comuser {
    dbref who;
    int on;
    char *title;
    struct comuser *on_next;
};

struct channel {
    char name[CHAN_NAME_LEN];
    int type;
    int temp1;
    int temp2;
    int charge;
    int charge_who;
    int amount_col;
    int num_users;
    int max_users;
    int chan_obj;
    struct comuser **users;
    struct comuser *on_users;	/* Linked list of who is on */
#ifdef CHANNEL_HISTORY
    myfifo *last_messages;
#endif
    int num_messages;
};

typedef struct {
    time_t time;
    char *msg;
} chmsg;

int num_channels;
int max_channels;

/* some extern functions. */
extern int In_IC_Loc(dbref player);

#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) (((!God(Owner(x))) || !(Going(x))) && \
	    ((Typeof(x) != TYPE_PLAYER) || (Connected(x))))

/* explanation of logic... If it's not owned by god, and it's either not a
player, or a connected player, it's good... If it is owned by god, then if
it's going, assume it's already gone, no matter what it is. :) */
#endif				/* __COMSYS_H__ */