home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed redundancy between record_control() and player_control() by re-writing their...
[plomrogue]
/
src
/
control.h
diff --git
a/src/control.h
b/src/control.h
index 889bdbfd366394f1d7a44e29eed7853b8fde05c4..492ac88e3811831661774e9efb612b6951e29d1a 100644
(file)
--- a/
src/control.h
+++ b/
src/control.h
@@
-15,10
+15,11
@@
extern uint16_t get_available_keycode_to_action(char * name);
-/* Control the player character, either via recorded "action" or pressed "key".
+/* Control the player character, either via action id "action" or pressed "key".
+ * Return 1 on success, 0 if no appropriate action to trigger was found.
*/
*/
-extern
void record_control
(int action);
-extern uint8_t player_control(int key);
+extern
uint8_t player_control_by_id
(int action);
+extern uint8_t player_control
_by_key
(int key);