Hengband  2.2.1
マクロ定義 | 変数
realm.h ファイル
被依存関係図:

[ソースコード]

マクロ定義

#define REALM_NONE   0
 
#define REALM_LIFE   1
 
#define REALM_SORCERY   2
 
#define REALM_NATURE   3
 
#define REALM_CHAOS   4
 
#define REALM_DEATH   5
 
#define REALM_TRUMP   6
 
#define REALM_ARCANE   7
 
#define REALM_CRAFT   8
 
#define REALM_DAEMON   9
 
#define REALM_CRUSADE   10
 
#define MAX_MAGIC   10
 
#define MIN_TECHNIC   16
 
#define REALM_MUSIC   16
 
#define REALM_HISSATSU   17
 
#define REALM_HEX   18
 
#define MAX_REALM   18
 
#define VALID_REALM   (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1)
 
#define NUM_TECHNIC   (MAX_REALM - MIN_TECHNIC + 1)
 
#define is_magic(A)   ((((A) > REALM_NONE) && ((A) < MAX_MAGIC + 1)) ? TRUE : FALSE)
 
#define tval2realm(A)   ((A) - TV_LIFE_BOOK + 1)
 
#define technic2magic(A)   (is_magic(A) ? (A) : (A) - MIN_TECHNIC + 1 + MAX_MAGIC)
 
#define is_good_realm(REALM)   ((REALM) == REALM_LIFE || (REALM) == REALM_CRUSADE)
 

変数

const concptr realm_names []
 

マクロ定義詳解

◆ is_good_realm

#define is_good_realm (   REALM)    ((REALM) == REALM_LIFE || (REALM) == REALM_CRUSADE)

◆ is_magic

#define is_magic (   A)    ((((A) > REALM_NONE) && ((A) < MAX_MAGIC + 1)) ? TRUE : FALSE)

◆ MAX_MAGIC

#define MAX_MAGIC   10

◆ MAX_REALM

#define MAX_REALM   18

◆ MIN_TECHNIC

#define MIN_TECHNIC   16

◆ NUM_TECHNIC

#define NUM_TECHNIC   (MAX_REALM - MIN_TECHNIC + 1)

◆ REALM_ARCANE

#define REALM_ARCANE   7

◆ REALM_CHAOS

#define REALM_CHAOS   4

◆ REALM_CRAFT

#define REALM_CRAFT   8

◆ REALM_CRUSADE

#define REALM_CRUSADE   10

◆ REALM_DAEMON

#define REALM_DAEMON   9

◆ REALM_DEATH

#define REALM_DEATH   5

◆ REALM_HEX

#define REALM_HEX   18

◆ REALM_HISSATSU

#define REALM_HISSATSU   17

◆ REALM_LIFE

#define REALM_LIFE   1

◆ REALM_MUSIC

#define REALM_MUSIC   16

◆ REALM_NATURE

#define REALM_NATURE   3

◆ REALM_NONE

#define REALM_NONE   0

◆ REALM_SORCERY

#define REALM_SORCERY   2

◆ REALM_TRUMP

#define REALM_TRUMP   6

◆ technic2magic

#define technic2magic (   A)    (is_magic(A) ? (A) : (A) - MIN_TECHNIC + 1 + MAX_MAGIC)

◆ tval2realm

#define tval2realm (   A)    ((A) - TV_LIFE_BOOK + 1)

◆ VALID_REALM

#define VALID_REALM   (MAX_REALM + MAX_MAGIC - MIN_TECHNIC + 1)

変数詳解

◆ realm_names

const concptr realm_names[]