Go to the documentation of this file.
20 #ifndef INCLUDED_CMDS_H
21 #define INCLUDED_CMDS_H
23 #include "cave.h"
24 #include "cmd-core.h"
26 /* cmd-cave.c */
27 void do_cmd_go_up(struct command *cmd);
28 void do_cmd_go_down(struct command *cmd);
29 void do_cmd_open(struct command *cmd);
30 void do_cmd_close(struct command *cmd);
31 void do_cmd_tunnel(struct command *cmd);
32 void do_cmd_disarm(struct command *cmd);
33 void do_cmd_alter(struct command *cmd);
34 void do_cmd_steal(struct command *cmd);
35 void move_player(int dir, bool disarm);
36 void do_cmd_walk(struct command *cmd);
37 void do_cmd_jump(struct command *cmd);
38 void do_cmd_run(struct command *cmd);
39 void do_cmd_pathfind(struct command *cmd);
40 void do_cmd_hold(struct command *cmd);
41 void do_cmd_rest(struct command *cmd);
42 void do_cmd_sleep(struct command *cmd);
43 void display_feeling(bool obj_only);
44 void do_cmd_feeling(void);
45 void do_cmd_mon_command(struct command *cmd);
47 /* cmd-misc.c */
48 void do_cmd_wizard(void);
49 void do_cmd_suicide(struct command *cmd);
50 void do_cmd_note(void);
52 /* cmd-obj.c */
53 void do_cmd_uninscribe(struct command *cmd);
54 void do_cmd_inscribe(struct command *cmd);
55 void do_cmd_autoinscribe(struct command *cmd);
56 void do_cmd_takeoff(struct command *cmd);
57 void do_cmd_wield(struct command *cmd);
58 void do_cmd_drop(struct command *cmd);
59 void do_cmd_read_scroll(struct command *cmd);
60 void do_cmd_use_staff(struct command *cmd);
61 void do_cmd_aim_wand(struct command *cmd);
62 void do_cmd_zap_rod(struct command *cmd);
63 void do_cmd_activate(struct command *cmd);
64 void do_cmd_eat_food(struct command *cmd);
65 void do_cmd_quaff_potion(struct command *cmd);
66 void do_cmd_use(struct command *cmd);
67 void do_cmd_refill(struct command *cmd);
68 void do_cmd_cast(struct command *cmd);
69 void do_cmd_study_spell(struct command *cmd);
70 void do_cmd_study_book(struct command *cmd);
71 void do_cmd_study(struct command *cmd);
73 /* cmd-pickup.c */
74 int do_autopickup(struct player *p);
75 void do_cmd_pickup(struct command *cmd);
76 void do_cmd_autopickup(struct command *cmd);
78 #endif
void do_cmd_note(void)
Record the player's thoughts as a note.
Definition: cmd-misc.c:90
void do_cmd_wizard(void)
Toggle wizard mode.
Definition: cmd-misc.c:37
void do_cmd_study(struct command *cmd)
Choose the way to study.
Definition: cmd-obj.c:1132
void do_cmd_tunnel(struct command *cmd)
Tunnel through "walls" (including rubble and doors, secret or otherwise)
Definition: cmd-cave.c:586
void display_feeling(bool obj_only)
Display the feeling.
Definition: cmd-cave.c:1475
void do_cmd_uninscribe(struct command *cmd)
Definition: cmd-obj.c:147
void do_cmd_disarm(struct command *cmd)
Disarms a trap, or a chest.
Definition: cmd-cave.c:786
The struct command type is used to return details of the command the game should carry out...
Definition: cmd-core.h:176
void do_cmd_close(struct command *cmd)
Close an open door.
Definition: cmd-cave.c:378
void do_cmd_run(struct command *cmd)
Start running.
Definition: cmd-cave.c:1256
void move_player(int dir, bool disarm)
Move player in the given direction.
Definition: cmd-cave.c:977
void do_cmd_quaff_potion(struct command *cmd)
Quaff a potion.
Definition: cmd-obj.c:819
void do_cmd_rest(struct command *cmd)
Rest (restores hit points and mana and such)
Definition: cmd-cave.c:1365
void do_cmd_autopickup(struct command *cmd)
Pick up or look at objects on a square when the player steps onto it.
Definition: cmd-pickup.c:472
void do_cmd_suicide(struct command *cmd)
Commit suicide.
Definition: cmd-misc.c:73
void do_cmd_go_down(struct command *cmd)
Go down one level.
Definition: cmd-cave.c:95
void do_cmd_mon_command(struct command *cmd)
Make a monster perform an action.
Definition: cmd-cave.c:1534
void do_cmd_pickup(struct command *cmd)
Pick up objects at the player's request.
Definition: cmd-pickup.c:446
Handles the queueing of game commands.
const char ** p[]
Definition: name.c:40
void do_cmd_eat_food(struct command *cmd)
Eat some food.
Definition: cmd-obj.c:802
void do_cmd_hold(struct command *cmd)
Stay still.
Definition: cmd-cave.c:1328
void do_cmd_wield(struct command *cmd)
Wield or wear an item.
Definition: cmd-obj.c:274
void do_cmd_jump(struct command *cmd)
Walk into a trap.
Definition: cmd-cave.c:1218
void do_cmd_aim_wand(struct command *cmd)
Aim a wand.
Definition: cmd-obj.c:709
void do_cmd_zap_rod(struct command *cmd)
Zap a rod.
Definition: cmd-obj.c:740
void do_cmd_drop(struct command *cmd)
Drop an item.
Definition: cmd-obj.c:371
void do_cmd_feeling(void)
Definition: cmd-cave.c:1523
Matters relating to the current dungeon level.
void do_cmd_walk(struct command *cmd)
Walk in the given direction.
Definition: cmd-cave.c:1179
void do_cmd_inscribe(struct command *cmd)
Add inscription.
Definition: cmd-obj.c:178
void do_cmd_steal(struct command *cmd)
Definition: cmd-cave.c:958
void do_cmd_use(struct command *cmd)
Use any usable item.
Definition: cmd-obj.c:845
void do_cmd_open(struct command *cmd)
Open a closed/locked/jammed door or a closed/locked chest.
Definition: cmd-cave.c:236
void do_cmd_activate(struct command *cmd)
Activate an object.
Definition: cmd-obj.c:771
void do_cmd_refill(struct command *cmd)
Definition: cmd-obj.c:951
Most of the "player" information goes here.
Definition: player.h:503
void do_cmd_autoinscribe(struct command *cmd)
Autoinscribe all appropriate objects.
Definition: cmd-obj.c:223
void do_cmd_study_spell(struct command *cmd)
Gain a specific spell, specified by spell number (for mages).
Definition: cmd-obj.c:1065
void do_cmd_use_staff(struct command *cmd)
Use a staff.
Definition: cmd-obj.c:678
void do_cmd_takeoff(struct command *cmd)
Taking off/putting on
Definition: cmd-obj.c:243
int do_autopickup(struct player *p)
Pick up everything on the floor that requires no player action.
Definition: cmd-pickup.c:405
void do_cmd_cast(struct command *cmd)
Spell casting
Definition: cmd-obj.c:1000
void do_cmd_read_scroll(struct command *cmd)
Read a scroll.
Definition: cmd-obj.c:648
void do_cmd_sleep(struct command *cmd)
Spend a turn doing nothing.
Definition: cmd-cave.c:1421
void do_cmd_study_book(struct command *cmd)
Gain a random spell from the given book (for priests)
Definition: cmd-obj.c:1087
void do_cmd_pathfind(struct command *cmd)
Start running with pathfinder.
Definition: cmd-cave.c:1303
void do_cmd_alter(struct command *cmd)
Definition: cmd-cave.c:924
void do_cmd_go_up(struct command *cmd)
Go up one level.
Definition: cmd-cave.c:54