mux/src/command.h File Reference

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

Go to the source code of this file.

Data Structures

struct  CMDENT_NO_ARG
struct  CMDENT_ONE_ARG
struct  CMDENT_ONE_ARG_CMDARG
struct  CMDENT_TWO_ARG
struct  CMDENT_TWO_ARG_CMDARG
struct  CMDENT_TWO_ARG_ARGV
struct  CMDENT_TWO_ARG_ARGV_CMDARG
struct  addedentry
struct  CMDENT

Defines

#define CMD_NO_ARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int)
#define CMD_ONE_ARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, char *)
#define CMD_ONE_ARG_CMDARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int)
#define CMD_TWO_ARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, int, char *, char *)
#define CMD_TWO_ARG_CMDARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *, char*[], int)
#define CMD_TWO_ARG_ARGV(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int)
#define CMD_TWO_ARG_ARGV_CMDARG(name)   extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int, char*[], int)
#define CS_NO_ARGS   0x0000
#define CS_ONE_ARG   0x0001
#define CS_TWO_ARG   0x0002
#define CS_NARG_MASK   0x0003
#define CS_ARGV   0x0004
#define CS_INTERP   0x0010
#define CS_NOINTERP   0x0020
#define CS_CAUSE   0x0040
#define CS_UNPARSE   0x0080
#define CS_CMDARG   0x0100
#define CS_STRIP   0x0200
#define CS_STRIP_AROUND   0x0400
#define CS_ADDED   0x0800
#define CS_LEADIN   0x1000
#define CS_NOSQUISH   0x4000
#define CA_PUBLIC   0x00000000
#define CA_GOD   0x00000001
#define CA_WIZARD   0x00000002
#define CA_BUILDER   0x00000004
#define CA_IMMORTAL   0x00000008
#define CA_STAFF   0x00000010
#define CA_HEAD   0x00000020
#define CA_ADMIN   0x00000080
#define CA_ROBOT   0x00000100
#define CA_ANNOUNCE   0x00000200
#define CA_UNINS   0x00000400
#define CA_MUSTBE_MASK   (CA_GOD|CA_WIZARD|CA_BUILDER|CA_IMMORTAL|CA_STAFF|CA_HEAD|CA_ADMIN|CA_ROBOT|CA_ANNOUNCE|CA_UNINS)
#define CA_NO_HAVEN   0x00001000
#define CA_NO_ROBOT   0x00002000
#define CA_NO_SLAVE   0x00004000
#define CA_NO_SUSPECT   0x00008000
#define CA_NO_GUEST   0x00010000
#define CA_NO_UNINS   0x00020000
#define CA_CANTBE_MASK   (CA_NO_HAVEN|CA_NO_ROBOT|CA_NO_SLAVE|CA_NO_SUSPECT|CA_NO_GUEST|CA_NO_UNINS)
#define CA_MARKER0   0x00002000
#define CA_MARKER1   0x00004000
#define CA_MARKER2   0x00008000
#define CA_MARKER3   0x00010000
#define CA_MARKER4   0x00020000
#define CA_MARKER5   0x00040000
#define CA_MARKER6   0x00080000
#define CA_MARKER7   0x00100000
#define CA_MARKER8   0x00200000
#define CA_MARKER9   0x00400000
#define CA_GBL_BUILD   0x00800000
#define CA_GBL_INTERP   0x01000000
#define CA_DISABLED   0x02000000
#define CA_STATIC   0x04000000
#define CA_NO_DECOMP   0x08000000
#define CA_LOCATION   0x10000000
#define CA_CONTENTS   0x20000000
#define CA_PLAYER   0x40000000
#define CF_DARK   0x80000000
#define SW_MULTIPLE   0x80000000
#define SW_GOT_UNIQUE   0x40000000
#define SW_NOEVAL   0x20000000

Typedefs

typedef addedentry ADDENT

Functions

 CMD_TWO_ARG (do_cemit)
 CMD_TWO_ARG (do_chboot)
 CMD_TWO_ARG (do_editchannel)
 CMD_ONE_ARG (do_checkchannel)
 CMD_ONE_ARG (do_createchannel)
 CMD_ONE_ARG (do_destroychannel)
 CMD_TWO_ARG (do_edituser)
 CMD_ONE_ARG (do_chanlist)
 CMD_TWO_ARG (do_chopen)
 CMD_ONE_ARG (do_channelwho)
 CMD_TWO_ARG (do_addcom)
 CMD_ONE_ARG (do_allcom)
 CMD_ONE_ARG (do_comlist)
 CMD_TWO_ARG (do_comtitle)
 CMD_ONE_ARG (do_delcom)
 CMD_TWO_ARG (do_mail)
 CMD_TWO_ARG (do_malias)
 CMD_ONE_ARG (do_prepend)
 CMD_ONE_ARG (do_postpend)
 CMD_ONE_ARG_CMDARG (do_apply_marked)
 CMD_TWO_ARG (do_admin)
 CMD_TWO_ARG (do_alias)
 CMD_TWO_ARG (do_attribute)
 CMD_ONE_ARG (do_boot)
 CMD_TWO_ARG (do_chown)
 CMD_TWO_ARG (do_chownall)
 CMD_TWO_ARG (do_chzone)
 CMD_TWO_ARG (do_clone)
 CMD_NO_ARG (do_comment)
 CMD_TWO_ARG_ARGV (do_cpattr)
 CMD_TWO_ARG (do_create)
 CMD_ONE_ARG (do_cut)
 CMD_NO_ARG (do_dbck)
 CMD_TWO_ARG (do_decomp)
 CMD_ONE_ARG (do_destroy)
 CMD_TWO_ARG_ARGV (do_dig)
 CMD_ONE_ARG (do_doing)
 CMD_TWO_ARG_CMDARG (do_dolist)
 CMD_ONE_ARG (do_drop)
 CMD_NO_ARG (do_dump)
 CMD_TWO_ARG_ARGV (do_edit)
 CMD_ONE_ARG (do_enter)
 CMD_ONE_ARG (do_entrances)
 CMD_ONE_ARG (do_examine)
 CMD_ONE_ARG (do_find)
 CMD_TWO_ARG (do_fixdb)
 CMD_TWO_ARG_CMDARG (do_force)
 CMD_ONE_ARG_CMDARG (do_force_prefixed)
 CMD_TWO_ARG (do_forwardlist)
 CMD_TWO_ARG (do_function)
 CMD_ONE_ARG (do_get)
 CMD_TWO_ARG (do_give)
 CMD_ONE_ARG (do_global)
 CMD_ONE_ARG (do_halt)
 CMD_ONE_ARG (do_help)
 CMD_TWO_ARG_ARGV_CMDARG (do_if)
 CMD_NO_ARG (do_inventory)
 CMD_TWO_ARG (do_prog)
 CMD_ONE_ARG (do_quitprog)
 CMD_TWO_ARG (do_kill)
 CMD_ONE_ARG (do_last)
 CMD_NO_ARG (do_leave)
 CMD_TWO_ARG (do_link)
 CMD_ONE_ARG (do_list)
 CMD_ONE_ARG (do_list_file)
 CMD_TWO_ARG (do_lock)
 CMD_TWO_ARG (do_log)
 CMD_ONE_ARG (do_look)
 CMD_NO_ARG (do_markall)
 CMD_ONE_ARG (do_motd)
 CMD_ONE_ARG (do_move)
 CMD_TWO_ARG_ARGV (do_mvattr)
 CMD_TWO_ARG (do_name)
 CMD_TWO_ARG (do_newpassword)
 CMD_TWO_ARG (do_notify)
 CMD_TWO_ARG_ARGV (do_open)
 CMD_TWO_ARG (do_page)
 CMD_TWO_ARG (do_parent)
 CMD_TWO_ARG (do_password)
 CMD_TWO_ARG (do_pcreate)
 CMD_TWO_ARG (do_pemit)
 CMD_ONE_ARG (do_poor)
 CMD_TWO_ARG (do_power)
 CMD_ONE_ARG (do_ps)
 CMD_ONE_ARG (do_queue)
 CMD_TWO_ARG (do_quota)
 CMD_NO_ARG (do_readcache)
 CMD_NO_ARG (do_restart)
 CMD_NO_ARG (do_backup)
 CMD_ONE_ARG (do_say)
 CMD_NO_ARG (do_score)
 CMD_ONE_ARG (do_search)
 CMD_TWO_ARG (do_set)
 CMD_TWO_ARG (do_setattr)
 CMD_TWO_ARG (do_setvattr)
 CMD_ONE_ARG (do_shout)
 CMD_ONE_ARG (do_shutdown)
 CMD_ONE_ARG (do_stats)
 CMD_ONE_ARG (do_sweep)
 CMD_TWO_ARG_ARGV_CMDARG (do_switch)
 CMD_TWO_ARG (do_teleport)
 CMD_ONE_ARG (do_think)
 CMD_NO_ARG (do_timecheck)
 CMD_ONE_ARG (do_timewarp)
 CMD_TWO_ARG (do_toad)
 CMD_TWO_ARG_ARGV (do_trigger)
 CMD_ONE_ARG (do_unlock)
 CMD_ONE_ARG (do_unlink)
 CMD_ONE_ARG (do_use)
 CMD_NO_ARG (do_version)
 CMD_NO_ARG (do_report)
 CMD_TWO_ARG_ARGV (do_verb)
 CMD_TWO_ARG_CMDARG (do_wait)
 CMD_ONE_ARG (do_wipe)
 CMD_NO_ARG (do_dbclean)
 CMD_TWO_ARG (do_addcommand)
 CMD_TWO_ARG (do_delcommand)
 CMD_ONE_ARG (do_listcommands)
 CMD_ONE_ARG (do_break)
 CMD_TWO_ARG_ARGV (do_icmd)
 CMD_ONE_ARG (do_hook)
 CMD_TWO_ARG (do_flag)
 CMD_ONE_ARG (do_train)
 CMD_TWO_ARG (do_moniker)
void commands_no_arg_add (CMDENT_NO_ARG cmdent[])
void commands_one_arg_add (CMDENT_ONE_ARG cmdent[])
void commands_one_arg_cmdarg_add (CMDENT_ONE_ARG_CMDARG cmdent[])
void commands_two_arg_add (CMDENT_TWO_ARG cmdent[])
void commands_two_arg_cmdarg_add (CMDENT_TWO_ARG_CMDARG cmdent[])
void commands_two_arg_argv_add (CMDENT_TWO_ARG_ARGV cmdent[])
void commands_two_arg_argv_cmdarg_add (CMDENT_TWO_ARG_ARGV_CMDARG cmdent[])
void init_cmdtab (void)

Variables

NAMETAB access_nametab []
NAMETAB attraccess_nametab []
NAMETAB indiv_attraccess_nametab []
NAMETAB lock_sw []
NAMETAB logoptions_nametab []
NAMETAB logdata_nametab []
NAMETAB list_names []


Define Documentation

#define CA_ADMIN   0x00000080

Definition at line 304 of file command.h.

Referenced by check_access(), convert_flags(), decode_flags(), flag_description(), FUNCTION(), and has_flag().

#define CA_ANNOUNCE   0x00000200

Definition at line 306 of file command.h.

Referenced by check_access().

#define CA_BUILDER   0x00000004

Definition at line 299 of file command.h.

Referenced by check_access().

#define CA_CANTBE_MASK   (CA_NO_HAVEN|CA_NO_ROBOT|CA_NO_SLAVE|CA_NO_SUSPECT|CA_NO_GUEST|CA_NO_UNINS)

Definition at line 316 of file command.h.

Referenced by check_access().

#define CA_CONTENTS   0x20000000

Definition at line 336 of file command.h.

#define CA_DISABLED   0x02000000

Definition at line 331 of file command.h.

Referenced by check_access().

#define CA_GBL_BUILD   0x00800000

Definition at line 329 of file command.h.

Referenced by check_command(), and process_cmdent().

#define CA_GBL_INTERP   0x01000000

Definition at line 330 of file command.h.

Referenced by process_cmdent().

#define CA_GOD   0x00000001

Definition at line 297 of file command.h.

Referenced by check_access(), convert_flags(), decode_flags(), display_flagtab(), display_powertab(), flag_description(), FUNCTION(), has_flag(), has_power(), and powers_list().

#define CA_HEAD   0x00000020

Definition at line 302 of file command.h.

Referenced by check_access().

#define CA_IMMORTAL   0x00000008

Definition at line 300 of file command.h.

Referenced by check_access().

#define CA_LOCATION   0x10000000

Definition at line 335 of file command.h.

#define CA_MARKER0   0x00002000

Definition at line 318 of file command.h.

#define CA_MARKER1   0x00004000

Definition at line 319 of file command.h.

#define CA_MARKER2   0x00008000

Definition at line 320 of file command.h.

#define CA_MARKER3   0x00010000

Definition at line 321 of file command.h.

#define CA_MARKER4   0x00020000

Definition at line 322 of file command.h.

#define CA_MARKER5   0x00040000

Definition at line 323 of file command.h.

#define CA_MARKER6   0x00080000

Definition at line 324 of file command.h.

#define CA_MARKER7   0x00100000

Definition at line 325 of file command.h.

#define CA_MARKER8   0x00200000

Definition at line 326 of file command.h.

#define CA_MARKER9   0x00400000

Definition at line 327 of file command.h.

#define CA_MUSTBE_MASK   (CA_GOD|CA_WIZARD|CA_BUILDER|CA_IMMORTAL|CA_STAFF|CA_HEAD|CA_ADMIN|CA_ROBOT|CA_ANNOUNCE|CA_UNINS)

Definition at line 308 of file command.h.

Referenced by check_access().

#define CA_NO_DECOMP   0x08000000

Definition at line 333 of file command.h.

Referenced by decompile_flags(), decompile_powers(), and do_decomp().

#define CA_NO_GUEST   0x00010000

Definition at line 314 of file command.h.

Referenced by check_access(), and init_cmdtab().

#define CA_NO_HAVEN   0x00001000

Definition at line 310 of file command.h.

Referenced by check_access().

#define CA_NO_ROBOT   0x00002000

Definition at line 311 of file command.h.

Referenced by check_access().

#define CA_NO_SLAVE   0x00004000

Definition at line 312 of file command.h.

Referenced by check_access(), and init_cmdtab().

#define CA_NO_SUSPECT   0x00008000

Definition at line 313 of file command.h.

Referenced by check_access().

#define CA_NO_UNINS   0x00020000

Definition at line 315 of file command.h.

Referenced by check_access().

#define CA_PLAYER   0x40000000

Definition at line 337 of file command.h.

#define CA_PUBLIC   0x00000000

Definition at line 296 of file command.h.

Referenced by add_helpfile(), do_command(), do_function(), and flag_description().

#define CA_ROBOT   0x00000100

Definition at line 305 of file command.h.

Referenced by check_access().

#define CA_STAFF   0x00000010

Definition at line 301 of file command.h.

Referenced by check_access(), convert_flags(), decode_flags(), flag_description(), FUNCTION(), and has_flag().

#define CA_STATIC   0x04000000

Definition at line 332 of file command.h.

Referenced by CF_HAND(), and check_access().

#define CA_UNINS   0x00000400

Definition at line 307 of file command.h.

Referenced by check_access().

#define CA_WIZARD   0x00000002

Definition at line 298 of file command.h.

Referenced by check_access(), convert_flags(), decode_flags(), display_flagtab(), display_powertab(), flag_description(), FUNCTION(), has_flag(), has_power(), init_cmdtab(), and powers_list().

#define CF_DARK   0x80000000

Definition at line 338 of file command.h.

Referenced by list_cmdaccess(), list_cmdswitches(), and list_cmdtable().

#define CMD_NO_ARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int)

Definition at line 9 of file command.h.

#define CMD_ONE_ARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, char *)

Definition at line 10 of file command.h.

#define CMD_ONE_ARG_CMDARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int)

Definition at line 11 of file command.h.

#define CMD_TWO_ARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, int, char *, char *)

Definition at line 12 of file command.h.

#define CMD_TWO_ARG_ARGV ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int)

Definition at line 14 of file command.h.

#define CMD_TWO_ARG_ARGV_CMDARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *[], int, char*[], int)

Definition at line 15 of file command.h.

#define CMD_TWO_ARG_CMDARG ( name   )     extern void name(dbref executor, dbref caller, dbref enactor, int, char *, char *, char*[], int)

Definition at line 13 of file command.h.

#define CS_ADDED   0x0800

Definition at line 290 of file command.h.

Referenced by dbclean_RenumberAttributes(), do_addcommand(), do_delcommand(), do_listcommands(), and process_cmdent().

#define CS_ARGV   0x0004

Definition at line 282 of file command.h.

Referenced by process_cmdent().

#define CS_CAUSE   0x0040

Definition at line 285 of file command.h.

#define CS_CMDARG   0x0100

Definition at line 287 of file command.h.

Referenced by process_cmdent().

#define CS_INTERP   0x0010

Definition at line 283 of file command.h.

Referenced by process_cmdent().

#define CS_LEADIN   0x1000

Definition at line 291 of file command.h.

Referenced by do_addcommand(), and process_cmdent().

#define CS_NARG_MASK   0x0003

Definition at line 281 of file command.h.

Referenced by process_cmdent().

#define CS_NO_ARGS   0x0000

Definition at line 278 of file command.h.

Referenced by process_cmdent().

#define CS_NOINTERP   0x0020

Definition at line 284 of file command.h.

Referenced by process_cmdent().

#define CS_NOSQUISH   0x4000

Definition at line 292 of file command.h.

Referenced by process_command().

#define CS_ONE_ARG   0x0001

Definition at line 279 of file command.h.

Referenced by add_helpfile(), do_addcommand(), and process_cmdent().

#define CS_STRIP   0x0200

Definition at line 288 of file command.h.

Referenced by process_cmdent().

#define CS_STRIP_AROUND   0x0400

Definition at line 289 of file command.h.

Referenced by process_cmdent().

#define CS_TWO_ARG   0x0002

Definition at line 280 of file command.h.

Referenced by init_cmdtab(), and process_cmdent().

#define CS_UNPARSE   0x0080

Definition at line 286 of file command.h.

Referenced by process_cmdent().

#define SW_GOT_UNIQUE   0x40000000

Definition at line 341 of file command.h.

Referenced by CF_HAND(), and process_cmdent().

#define SW_MULTIPLE   0x80000000

Definition at line 340 of file command.h.

Referenced by CF_HAND(), do_hook(), process_cmdent(), and process_command().

#define SW_NOEVAL   0x20000000

Definition at line 342 of file command.h.

Referenced by process_cmdent().


Typedef Documentation

typedef struct addedentry ADDENT

Definition at line 235 of file command.h.


Function Documentation

CMD_NO_ARG ( do_dbclean   ) 

CMD_NO_ARG ( do_report   ) 

CMD_NO_ARG ( do_version   ) 

CMD_NO_ARG ( do_timecheck   ) 

CMD_NO_ARG ( do_score   ) 

CMD_NO_ARG ( do_backup   ) 

CMD_NO_ARG ( do_restart   ) 

CMD_NO_ARG ( do_readcache   ) 

CMD_NO_ARG ( do_markall   ) 

CMD_NO_ARG ( do_leave   ) 

CMD_NO_ARG ( do_inventory   ) 

CMD_NO_ARG ( do_dump   ) 

CMD_NO_ARG ( do_dbck   ) 

CMD_NO_ARG ( do_comment   ) 

CMD_ONE_ARG ( do_train   ) 

CMD_ONE_ARG ( do_hook   ) 

CMD_ONE_ARG ( do_break   ) 

CMD_ONE_ARG ( do_listcommands   ) 

CMD_ONE_ARG ( do_wipe   ) 

CMD_ONE_ARG ( do_use   ) 

CMD_ONE_ARG ( do_unlink   ) 

CMD_ONE_ARG ( do_unlock   ) 

CMD_ONE_ARG ( do_timewarp   ) 

CMD_ONE_ARG ( do_think   ) 

CMD_ONE_ARG ( do_sweep   ) 

CMD_ONE_ARG ( do_stats   ) 

CMD_ONE_ARG ( do_shutdown   ) 

CMD_ONE_ARG ( do_shout   ) 

CMD_ONE_ARG ( do_search   ) 

CMD_ONE_ARG ( do_say   ) 

CMD_ONE_ARG ( do_queue   ) 

CMD_ONE_ARG ( do_ps   ) 

CMD_ONE_ARG ( do_poor   ) 

CMD_ONE_ARG ( do_move   ) 

CMD_ONE_ARG ( do_motd   ) 

CMD_ONE_ARG ( do_look   ) 

CMD_ONE_ARG ( do_list_file   ) 

CMD_ONE_ARG ( do_list   ) 

CMD_ONE_ARG ( do_last   ) 

CMD_ONE_ARG ( do_quitprog   ) 

CMD_ONE_ARG ( do_help   ) 

CMD_ONE_ARG ( do_halt   ) 

CMD_ONE_ARG ( do_global   ) 

CMD_ONE_ARG ( do_get   ) 

CMD_ONE_ARG ( do_find   ) 

CMD_ONE_ARG ( do_examine   )