19 #ifndef PLAYER_ATTACK_H
20 #define PLAYER_ATTACK_H
46 extern bool test_hit
int breakage_chance(const struct object *obj, bool hit_target)
Returns percent chance of an object breaking after throwing or shooting.
The struct command type is used to return details of the command the game should carry out...
void do_cmd_fire(struct command *cmd)
Fire an object from the quiver, pack or floor at a target.
void do_cmd_throw(struct command *cmd)
Throw an object from the quiver, pack or floor.
Handles the queueing of game commands.
const char ** p
int py_attack_hit_chance(const struct player *p, const struct object *weapon)
Return the player's chance to hit with a particular weapon.
struct attack_result(* ranged_attack)(struct player *p, struct object *obj, int y, int x)
ranged_attack is a function pointer, used to execute a kind of attack.
Front-end command which fires at the nearest target with default ammo.
char * hit_verb
bool test_hit(int chance, int ac, int vis)
Determine if the player "hits" a monster.
void py_attack(struct player *p, int y, int x)
Attack the monster at the given location.
Most of the "player" information goes here.