OSDN Git Service

[Refactor] #37353 MAX_HISCORES を scores.h へ移動.
[hengband/hengband.git] / src / defines.h
index a629b5a..f0d2210 100644 (file)
@@ -93,8 +93,6 @@
 #define FAKE_TEXT_SIZE 150 * 1024L /*!< ゲーム情報の種別毎に用意されるテキスト用バッファの容量 */
 #define FAKE_TAG_SIZE   10 * 1024L /*!< ゲーム情報の種別毎に用意されるタグ用バッファの容量 */
 
-#define MAX_HISCORES    999 /*!< スコア情報保存の最大数 / Maximum number of high scores in the high score file */
-
 /*!
  * @brief プレイヤー用光源処理配列サイズ / Maximum size of the "lite" array (see "current_floor_ptr->grid_array.c")
  * @details Note that the "lite radius" will NEVER exceed 14, and we would
             (1UL << (FF_STRIKE % 32)) | \
             (1UL << (FF_SPREAD % 32)))))
 
-
-/*
- * Feature action flags
- */
-#define FAF_DESTROY     0x01
-#define FAF_NO_DROP     0x02
-#define FAF_CRASH_GLASS 0x04
-
-/* Types of doors */
-#define DOOR_DEFAULT    -1
-#define DOOR_DOOR        0
-#define DOOR_GLASS_DOOR  1
-#define DOOR_CURTAIN     2
-
-#define MAX_DOOR_TYPES   3
-
 #define feat_locked_door_random(DOOR_TYPE) \
        (feat_door[(DOOR_TYPE)].num_locked ? \
         feat_door[(DOOR_TYPE)].locked[randint0(feat_door[(DOOR_TYPE)].num_locked)] : feat_none)
 # define MESSAGE_BUF    4096
 #endif
 
-
-
-
-
-/*
- * Available graphic modes
- */
-#define GRAPHICS_NONE       0
-#define GRAPHICS_ORIGINAL   1
-#define GRAPHICS_ADAM_BOLT  2
-#define GRAPHICS_HENGBAND   3
-
-
 #ifdef JP
 #define JVERB_AND 1
 #define JVERB_TO  2
 /*
  * Modes for the tokenizer
  */
-#define TOKENIZE_CHECKQUOTE 0x01  /* Special handling of single quotes */
-
-#define GINOU_MAX      10
-
-#define NO_TOWN 6
-#define SECRET_TOWN 5
 
 
 #define MAX_MANE 16
-#define MAX_MONSPELLS 96
-#define MONSPELL_TYPE_BOLT 1
-#define MONSPELL_TYPE_BALL 2
-#define MONSPELL_TYPE_BREATH 3
-#define MONSPELL_TYPE_SUMMON 4
-#define MONSPELL_TYPE_OTHER 5
+
 
 #define EATER_EXT 36
 #define EATER_CHARGE 0x10000L
 /* Maximum "Nazguls" number */
 #define MAX_NAZGUL_NUM 5
 
-#define DO_AUTOPICK       0x01
-#define DO_AUTODESTROY    0x02
-#define DO_DISPLAY        0x04
-#define DONT_AUTOPICK     0x08
-#define ITEM_DISPLAY      0x10
-#define DO_QUERY_AUTOPICK 0x20
-
 #define VIRTUE_LARGE 1
 #define VIRTUE_SMALL 2
 
 #define SLF_SECOND              0x0001  /* Called from another save/load function */
 #define SLF_NO_KILL      0x0002  /* Don't kill temporal files */
 
-
-/* Sub-alignment flags for neutral monsters */
-#define SUB_ALIGN_NEUTRAL 0x0000
-#define SUB_ALIGN_EVIL    0x0001
-#define SUB_ALIGN_GOOD    0x0002
-
-/* Is "teleport level" ineffective to this target? */
-#define TELE_LEVEL_IS_INEFF(TARGET) \
-       (p_ptr->inside_arena || p_ptr->inside_battle || \
-        (p_ptr->inside_quest && !random_quest_number(current_floor_ptr->dun_level)) || \
-        (((TARGET) <= 0) && (quest_number(current_floor_ptr->dun_level) || (current_floor_ptr->dun_level >= d_info[p_ptr->dungeon_idx].maxdepth)) && \
-         (current_floor_ptr->dun_level >= 1) && ironman_downward))
-
-
 /*
  * Max numbers of macro trigger names
  */
 #define MON_INVULNER(M_PTR) ((M_PTR)->mtimed[MTIMED_INVULNER])
 
 /*
- * Bit flags for screen_object()
- */
-#define SCROBJ_FAKE_OBJECT  0x00000001
-#define SCROBJ_FORCE_DETAIL 0x00000002
-
-/*
  * For travel command (auto run)
  */
 #define TRAVEL
 #define CONCENT_RADAR_THRESHOLD 2
 #define CONCENT_TELE_THRESHOLD  5
 
-/* Hex */
-#define hex_spelling_any() \
-       ((p_ptr->realm1 == REALM_HEX) && (p_ptr->magic_num1[0]))
-#define hex_spelling(X) \
-       ((p_ptr->realm1 == REALM_HEX) && (p_ptr->magic_num1[0] & (1L << (X))))
-#define CASTING_HEX_FLAGS(P_PTR) ((P_PTR)->magic_num1[0])
-#define CASTING_HEX_NUM(P_PTR) ((P_PTR)->magic_num2[0])
-#define HEX_REVENGE_POWER(P_PTR) ((P_PTR)->magic_num1[2])
-#define HEX_REVENGE_TURN(P_PTR) ((P_PTR)->magic_num2[2])
-#define HEX_REVENGE_TYPE(P_PTR) ((P_PTR)->magic_num2[1])
-
 /*
   Language selection macro
 */
 #define have_dark_flag(ARRAY) \
        (have_flag(ARRAY, TR_LITE_M1) || have_flag(ARRAY, TR_LITE_M2) || have_flag(ARRAY, TR_LITE_M3))
 
-/* Spell Type flag */
-#define MONSTER_TO_PLAYER     0x01
-#define MONSTER_TO_MONSTER    0x02
-
-/* summoning number */
-#define S_NUM_6     (easy_band ? 2 : 6)
-#define S_NUM_4     (easy_band ? 1 : 4)
-
-/* monster spell number */
-#define RF4_SPELL_START 32 * 3
-#define RF5_SPELL_START 32 * 4
-#define RF6_SPELL_START 32 * 5
-
-#define RF4_SPELL_SIZE 32
-#define RF5_SPELL_SIZE 32
-#define RF6_SPELL_SIZE 32
-
-/* Spell Damage Calc Flag*/
-#define DAM_ROLL 1
-#define DAM_MAX 2
-#define DAM_MIN 3
-#define DICE_NUM 4
-#define DICE_SIDE 5
-#define DICE_MULT 6
-#define DICE_DIV 7
-#define BASE_DAM 8
-
 /* Cheat Info Type */
 #define CHEAT_OBJECT 0
 #define CHEAT_MONSTER 1