Data Structures | Defines | Typedefs

align.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  align

Defines

#define ALIGNLIM   (10L + (moves/200L))
#define A_NONE   (-128)
#define A_CHAOTIC   (-1)
#define A_NEUTRAL   0
#define A_LAWFUL   1
#define A_COALIGNED   1
#define A_OPALIGNED   (-1)
#define AM_NONE   0
#define AM_CHAOTIC   1
#define AM_NEUTRAL   2
#define AM_LAWFUL   4
#define AM_MASK   7
#define AM_SPLEV_CO   3
#define AM_SPLEV_NONCO   7
#define Amask2align(x)
#define Align2amask(x)

Typedefs

typedef schar aligntyp
typedef struct align align

Define Documentation

#define A_CHAOTIC   (-1)
#define A_COALIGNED   1
#define A_LAWFUL   1
#define A_NEUTRAL   0
#define A_NONE   (-128)
#define A_OPALIGNED   (-1)
#define Align2amask (   x )
Value:
(((x) == A_NONE) ? AM_NONE \
                         : ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2)

Referenced by create_altar(), create_monster(), dosacrifice(), induced_align(), mkaltar(), and readobjnam().

#define ALIGNLIM   (10L + (moves/200L))
#define AM_CHAOTIC   1

Referenced by align_shift(), breakobj(), and dosacrifice().

#define AM_LAWFUL   4

Referenced by align_shift().

#define AM_MASK   7

Referenced by angry_priest(), and breakobj().

#define AM_NEUTRAL   2

Referenced by align_shift().

#define AM_NONE   0

Referenced by align_shift(), and breakobj().

#define AM_SPLEV_CO   3

Referenced by create_altar(), and create_monster().

#define AM_SPLEV_NONCO   7

Referenced by create_altar(), and create_monster().

#define Amask2align (   x )
Value:
((aligntyp) ((!(x)) ? A_NONE \
                         : ((x) == AM_LAWFUL) ? A_LAWFUL : ((int)x) - 2))

Referenced by angry_priest(), create_monster(), dfeature_at(), has_shrine(), lookat(), priestini(), and print_mapseen().


Typedef Documentation

typedef struct align align
typedef schar aligntyp