home · contact · privacy
Define server messages and server message arguments in confclient/commands, instead...
[plomrogue] / src / client / control.h
index 71aa30a8c032e0776cb3af277665405c65331ca7..56d33c30bdf23325fc379af8fdfd9608d77baaa8 100644 (file)
@@ -6,12 +6,15 @@
 #ifndef CONTROL_H
 #define CONTROL_H
 
-#include <stdint.h> /* uint8_t, uint16_t */
+#include <stdint.h> /* uint8_t */
 
 
 
-/* Try to call by "key" player actions triggering messages to the server. Return
- * 1 on success, 0 on failure.
+/* Tries to call by "key" for player actions triggering messages to the server.
+ * The appropriate Command struct's .server_msg will be sent, followed by a " ",
+ * followed by either a string representation of the numerical value of the
+ * Command struct's .arg, or, if .arg == 'i', world.player_inventory_select.
+ * Returns 1 on success, 0 on failure.
  */
 extern uint8_t player_control(int key);