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 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 |
#define CA_BUILDER 0x00000004 |
#define CA_CANTBE_MASK (CA_NO_HAVEN|CA_NO_ROBOT|CA_NO_SLAVE|CA_NO_SUSPECT|CA_NO_GUEST|CA_NO_UNINS) |
#define CA_DISABLED 0x02000000 |
#define CA_GBL_BUILD 0x00800000 |
#define CA_GBL_INTERP 0x01000000 |
#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 |
#define CA_IMMORTAL 0x00000008 |
#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_DECOMP 0x08000000 |
Definition at line 333 of file command.h.
Referenced by decompile_flags(), decompile_powers(), and do_decomp().
#define CA_NO_GUEST 0x00010000 |
#define CA_NO_HAVEN 0x00001000 |
#define CA_NO_ROBOT 0x00002000 |
#define CA_NO_SLAVE 0x00004000 |
#define CA_NO_SUSPECT 0x00008000 |
#define CA_NO_UNINS 0x00020000 |
#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 |
#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 |
#define CA_UNINS 0x00000400 |
#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 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 |
#define CS_CMDARG 0x0100 |
#define CS_INTERP 0x0010 |
#define CS_LEADIN 0x1000 |
#define CS_NARG_MASK 0x0003 |
#define CS_NO_ARGS 0x0000 |
#define CS_NOINTERP 0x0020 |
#define CS_NOSQUISH 0x4000 |
#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 |
#define CS_STRIP_AROUND 0x0400 |
#define CS_TWO_ARG 0x0002 |
#define CS_UNPARSE 0x0080 |
#define SW_GOT_UNIQUE 0x40000000 |
#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 |
typedef struct addedentry ADDENT |
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 | ) |
CMD_ONE_ARG | ( | do_entrances | ) |
CMD_ONE_ARG | ( | do_enter | ) |
CMD_ONE_ARG | ( | do_drop | ) |
CMD_ONE_ARG | ( | do_doing | ) |
CMD_ONE_ARG | ( | do_destroy | ) |
CMD_ONE_ARG | ( | do_cut | ) |
CMD_ONE_ARG | ( | do_boot | ) |
CMD_ONE_ARG | ( | do_postpend | ) |
CMD_ONE_ARG | ( | do_prepend | ) |
CMD_ONE_ARG | ( | do_delcom | ) |
CMD_ONE_ARG | ( | do_comlist | ) |
CMD_ONE_ARG | ( | do_allcom | ) |
CMD_ONE_ARG | ( | do_channelwho | ) |
CMD_ONE_ARG | ( | do_chanlist | ) |
CMD_ONE_ARG | ( | do_destroychannel | ) |
CMD_ONE_ARG | ( | do_createchannel | ) |
CMD_ONE_ARG | ( | do_checkchannel | ) |
CMD_ONE_ARG_CMDARG | ( | do_force_prefixed | ) |
CMD_ONE_ARG_CMDARG | ( | do_apply_marked | ) |
CMD_TWO_ARG | ( | do_moniker | ) |
CMD_TWO_ARG | ( | do_flag | ) |
CMD_TWO_ARG | ( | do_delcommand | ) |
CMD_TWO_ARG | ( | do_addcommand | ) |
CMD_TWO_ARG | ( | do_toad | ) |
CMD_TWO_ARG | ( | do_teleport | ) |
CMD_TWO_ARG | ( | do_setvattr | ) |
CMD_TWO_ARG | ( | do_setattr | ) |
CMD_TWO_ARG | ( | do_set | ) |
CMD_TWO_ARG | ( | do_quota | ) |
CMD_TWO_ARG | ( | do_power | ) |
CMD_TWO_ARG | ( | do_pemit | ) |
CMD_TWO_ARG | ( | do_pcreate | ) |
CMD_TWO_ARG | ( | do_password | ) |
CMD_TWO_ARG | ( | do_parent | ) |
CMD_TWO_ARG | ( | do_page | ) |
CMD_TWO_ARG | ( | do_notify | ) |
CMD_TWO_ARG | ( | do_newpassword | ) |
CMD_TWO_ARG | ( | do_name | ) |
CMD_TWO_ARG | ( | do_log | ) |
CMD_TWO_ARG | ( | do_lock | ) |
CMD_TWO_ARG | ( | do_link | ) |
CMD_TWO_ARG | ( | do_kill | ) |
CMD_TWO_ARG | ( | do_prog | ) |
CMD_TWO_ARG | ( | do_give | ) |
CMD_TWO_ARG | ( | do_function | ) |
CMD_TWO_ARG | ( | do_forwardlist | ) |
CMD_TWO_ARG | ( | do_fixdb | ) |
CMD_TWO_ARG | ( | do_decomp | ) |
CMD_TWO_ARG | ( | do_create | ) |
CMD_TWO_ARG | ( | do_clone | ) |
CMD_TWO_ARG | ( | do_chzone | ) |
CMD_TWO_ARG | ( | do_chownall | ) |
CMD_TWO_ARG | ( | do_chown | ) |
CMD_TWO_ARG | ( | do_attribute | ) |
CMD_TWO_ARG | ( | do_alias | ) |
CMD_TWO_ARG | ( | do_admin | ) |
CMD_TWO_ARG | ( | do_malias | ) |
CMD_TWO_ARG | ( | do_mail | ) |
CMD_TWO_ARG | ( | do_comtitle | ) |
CMD_TWO_ARG | ( | do_addcom | ) |
CMD_TWO_ARG | ( | do_chopen | ) |
CMD_TWO_ARG | ( | do_edituser | ) |
CMD_TWO_ARG | ( | do_editchannel | ) |
CMD_TWO_ARG | ( | do_chboot | ) |
CMD_TWO_ARG | ( | do_cemit | ) |
CMD_TWO_ARG_ARGV | ( | do_icmd | ) |
CMD_TWO_ARG_ARGV | ( | do_verb | ) |
CMD_TWO_ARG_ARGV | ( | do_trigger | ) |
CMD_TWO_ARG_ARGV | ( | do_open | ) |
CMD_TWO_ARG_ARGV | ( | do_mvattr | ) |
CMD_TWO_ARG_ARGV | ( | do_edit | ) |
CMD_TWO_ARG_ARGV | ( | do_dig | ) |
CMD_TWO_ARG_ARGV | ( | do_cpattr | ) |
CMD_TWO_ARG_ARGV_CMDARG | ( | do_switch | ) |
CMD_TWO_ARG_ARGV_CMDARG | ( | do_if | ) |
CMD_TWO_ARG_CMDARG | ( | do_wait | ) |
CMD_TWO_ARG_CMDARG | ( | do_force | ) |
CMD_TWO_ARG_CMDARG | ( | do_dolist | ) |
void commands_no_arg_add | ( | CMDENT_NO_ARG | cmdent[] | ) |
Definition at line 753 of file command.cpp.
References CMDENT_NO_ARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00754 { 00755 CMDENT_NO_ARG *cp0a; 00756 for (cp0a = cmdent; cp0a->cmdname; cp0a++) 00757 { 00758 if (!hashfindLEN(cp0a->cmdname, strlen(cp0a->cmdname), 00759 &mudstate.command_htab)) 00760 { 00761 hashaddLEN(cp0a->cmdname, strlen(cp0a->cmdname), cp0a, 00762 &mudstate.command_htab); 00763 } 00764 } 00765 }
void commands_one_arg_add | ( | CMDENT_ONE_ARG | cmdent[] | ) |
Definition at line 767 of file command.cpp.
References CMDENT_ONE_ARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00768 { 00769 CMDENT_ONE_ARG *cp1a; 00770 for (cp1a = cmdent; cp1a->cmdname; cp1a++) 00771 { 00772 if (!hashfindLEN(cp1a->cmdname, strlen(cp1a->cmdname), 00773 &mudstate.command_htab)) 00774 { 00775 hashaddLEN(cp1a->cmdname, strlen(cp1a->cmdname), cp1a, 00776 &mudstate.command_htab); 00777 } 00778 } 00779 }
void commands_one_arg_cmdarg_add | ( | CMDENT_ONE_ARG_CMDARG | cmdent[] | ) |
Definition at line 781 of file command.cpp.
References CMDENT_ONE_ARG_CMDARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00782 { 00783 CMDENT_ONE_ARG_CMDARG *cp1ac; 00784 for (cp1ac = cmdent; cp1ac->cmdname; cp1ac++) 00785 { 00786 if (!hashfindLEN(cp1ac->cmdname, strlen(cp1ac->cmdname), 00787 &mudstate.command_htab)) 00788 { 00789 hashaddLEN(cp1ac->cmdname, strlen(cp1ac->cmdname), cp1ac, 00790 &mudstate.command_htab); 00791 } 00792 } 00793 }
void commands_two_arg_add | ( | CMDENT_TWO_ARG | cmdent[] | ) |
Definition at line 795 of file command.cpp.
References CMDENT_TWO_ARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00796 { 00797 CMDENT_TWO_ARG *cp2a; 00798 for (cp2a = cmdent; cp2a->cmdname; cp2a++) 00799 { 00800 if (!hashfindLEN(cp2a->cmdname, strlen(cp2a->cmdname), 00801 &mudstate.command_htab)) 00802 { 00803 hashaddLEN(cp2a->cmdname, strlen(cp2a->cmdname), cp2a, 00804 &mudstate.command_htab); 00805 } 00806 } 00807 }
void commands_two_arg_argv_add | ( | CMDENT_TWO_ARG_ARGV | cmdent[] | ) |
Definition at line 809 of file command.cpp.
References CMDENT_TWO_ARG_ARGV::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00810 { 00811 CMDENT_TWO_ARG_ARGV *cp2aa; 00812 for (cp2aa = cmdent; cp2aa->cmdname; cp2aa++) 00813 { 00814 if (!hashfindLEN(cp2aa->cmdname, strlen(cp2aa->cmdname), 00815 &mudstate.command_htab)) 00816 { 00817 hashaddLEN(cp2aa->cmdname, strlen(cp2aa->cmdname), cp2aa, 00818 &mudstate.command_htab); 00819 } 00820 } 00821 }
void commands_two_arg_argv_cmdarg_add | ( | CMDENT_TWO_ARG_ARGV_CMDARG | cmdent[] | ) |
Definition at line 837 of file command.cpp.
References CMDENT_TWO_ARG_ARGV_CMDARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00838 { 00839 CMDENT_TWO_ARG_ARGV_CMDARG *cp2aac; 00840 for (cp2aac = cmdent; cp2aac->cmdname; cp2aac++) 00841 { 00842 if (!hashfindLEN(cp2aac->cmdname, strlen(cp2aac->cmdname), 00843 &mudstate.command_htab)) 00844 { 00845 hashaddLEN(cp2aac->cmdname, strlen(cp2aac->cmdname), cp2aac, 00846 &mudstate.command_htab); 00847 } 00848 } 00849 }
void commands_two_arg_cmdarg_add | ( | CMDENT_TWO_ARG_CMDARG | cmdent[] | ) |
Definition at line 823 of file command.cpp.
References CMDENT_TWO_ARG_CMDARG::cmdname, statedata::command_htab, hashaddLEN(), hashfindLEN(), and mudstate.
Referenced by local_startup().
00824 { 00825 CMDENT_TWO_ARG_CMDARG *cp2ac; 00826 for (cp2ac = cmdent; cp2ac->cmdname; cp2ac++) 00827 { 00828 if (!hashfindLEN(cp2ac->cmdname, strlen(cp2ac->cmdname), 00829 &mudstate.command_htab)) 00830 { 00831 hashaddLEN(cp2ac->cmdname, strlen(cp2ac->cmdname), cp2ac, 00832 &mudstate.command_htab); 00833 } 00834 } 00835 }
void init_cmdtab | ( | void | ) |
Definition at line 851 of file command.cpp.
References AF_MDARK, AF_NOCMD, AF_WIZARD, CA_NO_GUEST, CA_NO_SLAVE, CA_WIZARD, CMDENT_TWO_ARG::callseq, CMDENT_TWO_ARG::cmdname, statedata::command_htab, CS_TWO_ARG, do_setattr(), CMDENT_TWO_ARG::extra, attr::flags, CMDENT_TWO_ARG::handler, hashaddLEN(), CMDENT_TWO_ARG::hookmask, ISOUTOFMEMORY, MakeCanonicalAttributeCommand(), MEMALLOC, mudstate, attr::name, attr::number, CMDENT_TWO_ARG::perms, StringClone(), and CMDENT_TWO_ARG::switches.
Referenced by main().
00852 { 00853 ATTR *ap; 00854 00855 // Load attribute-setting commands. 00856 // 00857 for (ap = attr; ap->name; ap++) 00858 { 00859 if (ap->flags & AF_NOCMD) 00860 { 00861 continue; 00862 } 00863 00864 int nBuffer; 00865 bool bValid; 00866 char *cbuff = MakeCanonicalAttributeCommand(ap->name, &nBuffer, &bValid); 00867 if (!bValid) 00868 { 00869 continue; 00870 } 00871 00872 CMDENT_TWO_ARG *cp2a; 00873 cp2a = (CMDENT_TWO_ARG *)MEMALLOC(sizeof(CMDENT_TWO_ARG)); 00874 ISOUTOFMEMORY(cp2a); 00875 cp2a->cmdname = StringClone(cbuff); 00876 cp2a->perms = CA_NO_GUEST | CA_NO_SLAVE; 00877 cp2a->switches = NULL; 00878 if (ap->flags & (AF_WIZARD | AF_MDARK)) 00879 { 00880 cp2a->perms |= CA_WIZARD; 00881 } 00882 cp2a->extra = ap->number; 00883 cp2a->callseq = CS_TWO_ARG; 00884 cp2a->hookmask = 0; 00885 cp2a->handler = do_setattr; 00886 hashaddLEN(cp2a->cmdname, nBuffer, cp2a, &mudstate.command_htab); 00887 } 00888 00889 // Load the builtin commands 00890 // 00891 commands_no_arg_add(command_table_no_arg); 00892 commands_one_arg_add(command_table_one_arg); 00893 commands_one_arg_cmdarg_add(command_table_one_arg_cmdarg); 00894 commands_two_arg_add(command_table_two_arg); 00895 commands_two_arg_argv_add(command_table_two_arg_argv); 00896 commands_two_arg_cmdarg_add(command_table_two_arg_cmdarg); 00897 commands_two_arg_argv_cmdarg_add(command_table_two_arg_argv_cmdarg); 00898 00899 set_prefix_cmds(); 00900 00901 goto_cmdp = (CMDENT *) hashfindLEN((char *)"goto", strlen("goto"), &mudstate.command_htab); 00902 }
Definition at line 2885 of file command.cpp.
Referenced by do_attribute(), list_attraccess(), and list_vattrs().