Angband
cmds.h
Go to the documentation of this file.
1 
20 #ifndef INCLUDED_CMDS_H
21 #define INCLUDED_CMDS_H
22 
23 #include "cave.h"
24 #include "cmd-core.h"
25 
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_aux(int dir);
34 void do_cmd_alter(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);
46 
47 /* cmd-misc.c */
48 void do_cmd_wizard(void);
49 void do_cmd_suicide(struct command *cmd);
50 void do_cmd_note(void);
51 
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);
72 
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);
77 
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:1052
void do_cmd_tunnel(struct command *cmd)
Tunnel through "walls" (including rubble and doors, secret or otherwise)
Definition: cmd-cave.c:563
void display_feeling(bool obj_only)
Display the feeling.
Definition: cmd-cave.c:1381
void do_cmd_uninscribe(struct command *cmd)
Inscriptions
Definition: cmd-obj.c:147
void do_cmd_disarm(struct command *cmd)
Disarms a trap, or a chest.
Definition: cmd-cave.c:764
The struct command type is used to return details of the command the game should carry out...
Definition: cmd-core.h:189
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:1171
void move_player(int dir, bool disarm)
Move player in the given direction.
Definition: cmd-cave.c:912
void do_cmd_quaff_potion(struct command *cmd)
Quaff a potion.
Definition: cmd-obj.c:746
void do_cmd_rest(struct command *cmd)
Rest (restores hit points and mana and such)
Definition: cmd-cave.c:1271
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:404
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:93
void do_cmd_mon_command(struct command *cmd)
Make a monster perform an action.
Definition: cmd-cave.c:1440
void do_cmd_pickup(struct command *cmd)
Pick up objects at the player's request.
Definition: cmd-pickup.c:378
Handles the queueing of game commands.
void do_cmd_alter_aux(int dir)
Manipulate an adjacent grid in some way.
Definition: cmd-cave.c:848
const char ** p[]
Definition: name.c:40
void do_cmd_eat_food(struct command *cmd)
Eat some food.
Definition: cmd-obj.c:729
void do_cmd_hold(struct command *cmd)
Stay still.
Definition: cmd-cave.c:1234
void do_cmd_wield(struct command *cmd)
Wield or wear an item.
Definition: cmd-obj.c:273
void do_cmd_jump(struct command *cmd)
Walk into a trap.
Definition: cmd-cave.c:1142
void do_cmd_aim_wand(struct command *cmd)
Aim a wand.
Definition: cmd-obj.c:636
void do_cmd_zap_rod(struct command *cmd)
Zap a rod.
Definition: cmd-obj.c:667
void do_cmd_drop(struct command *cmd)
Drop an item.
Definition: cmd-obj.c:370
void do_cmd_feeling(void)
Definition: cmd-cave.c:1429
Matters relating to the current dungeon level.
void do_cmd_walk(struct command *cmd)
Walk in the given direction.
Definition: cmd-cave.c:1112
void do_cmd_inscribe(struct command *cmd)
Add inscription.
Definition: cmd-obj.c:178
void do_cmd_use(struct command *cmd)
Use any usable item.
Definition: cmd-obj.c:772
void do_cmd_open(struct command *cmd)
Open a closed/locked/jammed door or a closed/locked chest.
Definition: cmd-cave.c:234
void do_cmd_activate(struct command *cmd)
Activate an object.
Definition: cmd-obj.c:698
void do_cmd_refill(struct command *cmd)
Definition: cmd-obj.c:873
Most of the "player" information goes here.
Definition: player.h:489
void do_cmd_autoinscribe(struct command *cmd)
Autoinscribe all appropriate objects.
Definition: cmd-obj.c:222
void do_cmd_study_spell(struct command *cmd)
Gain a specific spell, specified by spell number (for mages).
Definition: cmd-obj.c:985
void do_cmd_use_staff(struct command *cmd)
Use a staff.
Definition: cmd-obj.c:605
void do_cmd_takeoff(struct command *cmd)
Taking off/putting on
Definition: cmd-obj.c:242
int do_autopickup(struct player *p)
Pick up everything on the floor that requires no player action.
Definition: cmd-pickup.c:340
void do_cmd_cast(struct command *cmd)
Spell casting
Definition: cmd-obj.c:922
void do_cmd_read_scroll(struct command *cmd)
Read a scroll.
Definition: cmd-obj.c:575
void do_cmd_sleep(struct command *cmd)
Spend a turn doing nothing.
Definition: cmd-cave.c:1327
void do_cmd_study_book(struct command *cmd)
Gain a random spell from the given book (for priests)
Definition: cmd-obj.c:1007
void do_cmd_pathfind(struct command *cmd)
Start running with pathfinder.
Definition: cmd-cave.c:1209
void do_cmd_alter(struct command *cmd)
Definition: cmd-cave.c:893
void do_cmd_go_up(struct command *cmd)
Go up one level.
Definition: cmd-cave.c:52