home · contact · privacy
Fix buggy healthy_addch().
[plomrogue] / client / config / commands.py
1 # This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
2 # or any later version. For details on its copyright, license, and warranties,
3 # see the file NOTICE in the root directory of the PlomRogue source package.
4
5
6 from client.commands import command_sender, command_look_scroller, \
7     command_quit, command_looker, command_inventory_selector, \
8     command_toggle_look_mode
9
10
11 commands = {
12     "A": (command_sender("ai"),),
13     "D": (command_sender("drop", "inventory_selection"),),
14     "J": (command_look_scroller("down"),),
15     "K": (command_look_scroller("up"),),
16     "P": (command_sender("pickup"),),
17     "Q": (command_quit,),
18     "U": (command_sender("use", "inventory_selection"),),
19     "W": (command_sender("wait"),),
20     "c": (command_sender("move south-east"), command_looker("south-east")),
21     "d": (command_sender("move east"), command_looker("east")),
22     "e": (command_sender("move north-east"), command_looker("north-east")),
23     "j": (command_inventory_selector("down"),),
24     "k": (command_inventory_selector("up"),),
25     "l": (command_toggle_look_mode,),
26     "s": (command_sender("move west"), command_looker("west")),
27     "w": (command_sender("move north-west"), command_looker("north-west")),
28     "x": (command_sender("move south-west"), command_looker("south-west")),
29 }