File: god.h

package info (click to toggle)
crossfire 1.75.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,168 kB
  • sloc: ansic: 83,169; sh: 4,659; perl: 1,736; lex: 1,443; makefile: 1,199; python: 43
file content (34 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
 * @file
 * God-related structure.
 */

#ifndef GOD_H
#define GOD_H

/**
 * Used to link together the gods.
 */
typedef struct glnk {
    const char *name;     /**< Name of this god. */
    struct archt *arch;   /**< Pointer to the archetype of this god. */
    int id;               /**< Id of the god. */
    struct glnk *next;    /**< Next god. */
} godlink;


/**
 * @defgroup GOD_xxx God description flags, used with describe_god().
 */
/*@{*/
#define GOD_ENEMY       1       /**< Write down god's enemy. */
#define GOD_HOLYWORD    2       /**< Write holy word information. */
#define GOD_RESISTANCES 4       /**< Write resistances. */
#define GOD_SACRED      8       /**< Write sacred creatures. */
#define GOD_BLESSED     16      /**< Write various information (resistances?). */
#define GOD_IMMUNITIES  32      /**< Write immunities. */
#define GOD_PATHS       64      /**< Path information. */
#define GOD_ALL         0xFF    /**< Give all god information. */
/*@}*/

#endif /* GOD_H */