X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Fcommand_db.h;h=93acce9d228df5a0f2d39c4ce7b0bea54727974b;hb=891ba8fbca53d920f6b3704827fa6b8aee737de4;hp=566bf70b3f7abb2c9e6a52dff25fec817db8c432;hpb=739a39530d192f97828fa21f3eed062d66a193e1;p=plomrogue diff --git a/src/client/command_db.h b/src/client/command_db.h index 566bf70..93acce9 100644 --- a/src/client/command_db.h +++ b/src/client/command_db.h @@ -17,7 +17,7 @@ struct Command char * dsc_short; /* short name of command to be used internally */ char * dsc_long; /* long description of command to be shown to the user */ char * server_msg; /* optionally start string of message to send to server*/ - char arg; /* defines server message suffix by player_control() convention */ + char arg; /* defines server message suffix by try_server_commands() rules */ }; struct CommandDB @@ -28,10 +28,12 @@ struct CommandDB -/* Return Command struct for command described by its "dsc_short" member. */ +/* Return Command struct for command described by its "dsc_short" member. Return + * NULL if no such command is found. + */ extern struct Command * get_command(char * dsc_short); -/* Reads in CommandDB config file line by line until end or first empty line. */ +/* Read in CommandDB config file. */ extern void init_command_db(); /* Free all memory allocated with init_command_db. */