home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduced code complexity by stronger integrating windows library.
[plomrogue]
/
src
/
command_db.h
diff --git
a/src/command_db.h
b/src/command_db.h
index f0baef99438f274a7b76f3e945bb158d96052bef..bbc60f49e32be83ff39a899ef27168391c33d422 100644
(file)
--- a/
src/command_db.h
+++ b/
src/command_db.h
@@
-8,10
+8,7
@@
#ifndef COMMAND_DB_H
#define COMMAND_DB_H
#ifndef COMMAND_DB_H
#define COMMAND_DB_H
-
-
#include <stdint.h> /* for uint8_t */
#include <stdint.h> /* for uint8_t */
-struct World;
@@
-31,22
+28,21
@@
struct CommandDB
/* Is "id" the ID of command whose dsc_short is "shortdsc"? Answer in binary. */
/* 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);
+extern uint8_t is_command_id_shortdsc(uint8_t id, char * shortdsc);
/* Give short description of command ("dsc_short"), get its ID. */
/* Give short description of command ("dsc_short"), get its ID. */
-extern uint8_t get_command_id(
struct World * world,
char * dsc_short);
+extern uint8_t get_command_id(char * dsc_short);
/* Give short description of command ("dsc_short"), get long description. */
/* Give short description of command ("dsc_short"), get long description. */
-extern char * get_command_longdsc(
struct World * world,
char * dsc_short);
+extern char * get_command_longdsc(char * dsc_short);
/* Read in CommandDB from file "config/commands" to world.cmd_db. */
/* Read in CommandDB from file "config/commands" to world.cmd_db. */
-extern void init_command_db(
struct World * world
);
+extern void init_command_db();
/* Free all memory allocated with init_command_db. */
/* Free all memory allocated with init_command_db. */
-extern void free_command_db(
struct World * world
);
+extern void free_command_db();