Angband
Data Structures | Typedefs | Functions | Variables
mon-blows.h File Reference
#include "player.h"
#include "monster.h"

Go to the source code of this file.

Data Structures

struct  blow_method
 
struct  melee_effect_handler_context_s
 Storage for context information for effect handlers called in make_attack_normal(). More...
 
struct  blow_effect
 

Typedefs

typedef struct
melee_effect_handler_context_s 
melee_effect_handler_context_t
 Storage for context information for effect handlers called in make_attack_normal(). More...
 
typedef void(* melee_effect_handler_f )(melee_effect_handler_context_t *)
 Melee blow effect handler. More...
 

Functions

int blow_index (const char *name)
 

Monster blow effects

More...
 
const char * monster_blow_method_action (struct blow_method *method)
 Return an action string to be appended on the attack message. More...
 
melee_effect_handler_f melee_handler_for_blow_effect (const char *name)
 

Variables

struct blow_methodblow_methods
 
struct blow_effectblow_effects
 

Typedef Documentation

Storage for context information for effect handlers called in make_attack_normal().

The members of this struct are initialized in an order-dependent way (to be more cross-platform). If the members change, make sure to change any initializers. Ideally, this should eventually used named initializers.

typedef void(* melee_effect_handler_f)(melee_effect_handler_context_t *)

Melee blow effect handler.

Function Documentation

int blow_index ( const char *  name)
melee_effect_handler_f melee_handler_for_blow_effect ( const char *  name)
const char* monster_blow_method_action ( struct blow_method method)

Return an action string to be appended on the attack message.

Parameters
methodis the blow method.

References blow_method::act_msg, action, monster_blow_random_insult(), monster_blow_random_moan(), blow_method::name, NULL, and streq.

Referenced by make_attack_normal().

Variable Documentation

struct blow_effect* blow_effects

Referenced by blow_color(), and blow_index().

struct blow_method* blow_methods