home · contact · privacy
Use command IDs from command DB as what is recorded in record file.
[plomrogue] / src / command_db.h
index efa342a2433e302225ac6d732fe2c80a03bc9caa..6b087004c9987b8ef0cd6636923c5c639a50cf69 100644 (file)
@@ -30,7 +30,14 @@ struct CommandDB
 
 
 
-/* Give short description of command ("dsc_short"), get long descrption. */
+/* Is "id" the ID of command whose dsc_short is "shortdsc"? Answer in binary. */
+extern uint8_t is_command_id_shortdsc(struct World * world,
+                                      uint8_t id, char * shortdsc);
+
+/* Give short description of command ("dsc_short"), get its ID. */
+extern uint8_t get_command_id(struct World * world, char * dsc_short);
+
+/* Give short description of command ("dsc_short"), get long description. */
 extern char * get_command_longdsc(struct World * world, char * dsc_short);
 
 
@@ -38,8 +45,6 @@ extern char * get_command_longdsc(struct World * world, char * dsc_short);
 /* Read in CommandDB from file "config/commands" to world.cmd_db. */
 extern void init_command_db(struct World * world);
 
-
-
 /* Free all memory allocated with init_command_db. */
 extern void free_command_db(struct World * world);