summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-12 14:42:00 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-12 14:42:00 +0000
commit02d291232e70b8b3211eadbd1649d4854a49b833 (patch)
treed6137e3f74b95c0ab9bddfa6a5f7cce396e73a76 /command.h
parentd76c0e2dc89ccde306e9ba17de7302a5d8e9bf64 (diff)
downloadopenttd-02d291232e70b8b3211eadbd1649d4854a49b833.tar.xz
(svn r6752) -Codechange: Move command functions from messy functions.h into command.h
Diffstat (limited to 'command.h')
-rw-r--r--command.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/command.h b/command.h
index 497f018cf..d46c771dd 100644
--- a/command.h
+++ b/command.h
@@ -195,7 +195,14 @@ static inline bool CmdFailed(int32 res)
}
/* command.c */
+typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);
int32 DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc);
+bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd);
+
+#ifdef ENABLE_NETWORK
+
+void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback);
+#endif /* ENABLE_NETWORK */
extern const char* _cmd_text; // Text, which gets sent with a command