Angband
Macros | Functions
mon-blow-methods.c File Reference

Monster melee methods module. More...

#include "angband.h"
#include "monster.h"
#include "mon-blow-methods.h"
#include "list-blow-methods.h"

Macros

#define RBM(x, c, s, miss, p, m, a, d)   c,
#define RBM(x, c, s, miss, p, m, a, d)   s,
#define RBM(x, c, s, miss, p, m, a, d)   m,
#define MAX_DESC_INSULT   8
#define MAX_DESC_MOAN   8
#define RBM(x, c, s, miss, p, m, a, d)   a,
#define RBM(x, c, s, miss, p, m, a, d)   miss,
#define RBM(x, c, s, miss, p, m, a, d)   p,
#define RBM(x, c, s, miss, p, m, a, d)   d,
#define RBM(x, c, s, miss, p, m, a, d)   #x,

Functions

static const char * monster_blow_random_insult (void)
 Return a randomly chosen string to append to an RBM_INSULT message.
static const char * monster_blow_random_moan (void)
 Return a randomly chosen string to append to an RBM_MOAN message.
bool monster_blow_method_is_valid (monster_blow_method_t method)
 Return whether the given method is valid.

Detailed Description

Monster melee methods module.

Copyright (c) 1997 Ben Harrison, David Reeve Sward, Keldon Jones. 2013 Ben Semmler

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Macro Definition Documentation

#define MAX_DESC_INSULT   8
#define MAX_DESC_MOAN   8
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    c,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    s,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    m,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    a,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    miss,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    p,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    d,
#define RBM (   x,
  c,
  s,
  miss,
  p,
  m,
  a,
 
)    #x,

Function Documentation

bool monster_blow_method_is_valid ( monster_blow_method_t  method)

Return whether the given method is valid.

Parameters
methodis one of the RBM_ flags.

Referenced by parse_lore_b(), and parse_monster_blow().

static const char* monster_blow_random_insult ( void  )
static

Return a randomly chosen string to append to an RBM_INSULT message.

References MAX_DESC_INSULT, and randint0.

static const char* monster_blow_random_moan ( void  )
static

Return a randomly chosen string to append to an RBM_MOAN message.

References MAX_DESC_MOAN, and randint0.