diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-16 21:43:15 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2011-01-16 21:43:15 +0100 |
commit | de23ef41877415f84ede3b90d7b93442e11dc7a4 (patch) | |
tree | 3baf5b9421d000edff6fc9912c6a63d13b597046 /crawl-ref/source/hints.h | |
parent | 55fd8cde0724304af70de9199297ea7ce87f0080 (diff) | |
download | crawl-ref-de23ef41877415f84ede3b90d7b93442e11dc7a4.tar.gz crawl-ref-de23ef41877415f84ede3b90d7b93442e11dc7a4.zip |
Move hints enums from enum.h -> hints.h
No idea what they were doing in enum.h. All the relevant files include
hints.h anyway because of learned_something_new().
Diffstat (limited to 'crawl-ref/source/hints.h')
-rw-r--r-- | crawl-ref/source/hints.h | 96 |
1 files changed, 95 insertions, 1 deletions
diff --git a/crawl-ref/source/hints.h b/crawl-ref/source/hints.h index e45545e4c9..34bd066604 100644 --- a/crawl-ref/source/hints.h +++ b/crawl-ref/source/hints.h @@ -33,6 +33,100 @@ void save_hints(writer& outf); void load_hints(reader& inf); void init_hints_options(void); +enum hints_event_type +{ + HINT_SEEN_FIRST_OBJECT, + // seen certain items + HINT_SEEN_POTION, + HINT_SEEN_SCROLL, + HINT_SEEN_WAND, + HINT_SEEN_SPBOOK, + HINT_SEEN_JEWELLERY, + HINT_SEEN_MISC, + HINT_SEEN_STAFF, + HINT_SEEN_WEAPON, + HINT_SEEN_MISSILES, + HINT_SEEN_ARMOUR, + HINT_SEEN_RANDART, + HINT_SEEN_FOOD, + HINT_SEEN_CARRION, + HINT_SEEN_GOLD, + // encountered dungeon features + HINT_SEEN_STAIRS, + HINT_SEEN_ESCAPE_HATCH, + HINT_SEEN_BRANCH, + HINT_SEEN_PORTAL, + HINT_SEEN_TRAP, + HINT_SEEN_ALTAR, + HINT_SEEN_SHOP, + HINT_SEEN_DOOR, + HINT_FOUND_SECRET_DOOR, + // other 'first events' + HINT_SEEN_MONSTER, + HINT_SEEN_ZERO_EXP_MON, + HINT_SEEN_TOADSTOOL, + HINT_MONSTER_BRAND, + HINT_MONSTER_FRIENDLY, + HINT_MONSTER_SHOUT, + HINT_MONSTER_LEFT_LOS, + HINT_KILLED_MONSTER, + HINT_NEW_LEVEL, + HINT_SKILL_RAISE, + HINT_GAINED_MAGICAL_SKILL, + HINT_GAINED_MELEE_SKILL, + HINT_GAINED_RANGED_SKILL, + HINT_CHOOSE_STAT, + HINT_MAKE_CHUNKS, + HINT_OFFER_CORPSE, + HINT_NEW_ABILITY_GOD, + HINT_NEW_ABILITY_MUT, + HINT_NEW_ABILITY_ITEM, + HINT_FLEEING_MONSTER, + HINT_ROTTEN_FOOD, + HINT_CONVERT, + HINT_GOD_DISPLEASED, + HINT_EXCOMMUNICATE, + HINT_SPELL_MISCAST, + HINT_SPELL_HUNGER, + HINT_GLOWING, + HINT_YOU_RESIST, + // status changes + HINT_YOU_ENCHANTED, + HINT_YOU_SICK, + HINT_YOU_POISON, + HINT_YOU_ROTTING, + HINT_YOU_CURSED, + HINT_YOU_HUNGRY, + HINT_YOU_STARVING, + HINT_YOU_MUTATED, + HINT_CAN_BERSERK, + HINT_POSTBERSERK, + HINT_CAUGHT_IN_NET, + HINT_YOU_SILENCE, + // warning + HINT_RUN_AWAY, + HINT_RETREAT_CASTER, + HINT_WIELD_WEAPON, + HINT_NEED_HEALING, + HINT_NEED_POISON_HEALING, + HINT_INVISIBLE_DANGER, + HINT_NEED_HEALING_INVIS, + HINT_ABYSS, + // interface + HINT_MULTI_PICKUP, + HINT_HEAVY_LOAD, + HINT_SHIFT_RUN, + HINT_MAP_VIEW, + HINT_AUTO_EXPLORE, + HINT_DONE_EXPLORE, + HINT_AUTO_EXCLUSION, + HINT_STAIR_BRAND, + HINT_HEAP_BRAND, + HINT_TRAP_BRAND, + HINT_LOAD_SAVED_GAME, + HINT_EVENTS_NUM +}; + struct newgame_def; void init_hints(); void pick_hints(newgame_def* choice); @@ -71,7 +165,7 @@ void hints_observe_cell(const coord_def& gc); struct hints_state { - FixedVector<bool, 85> hints_events; + FixedVector<bool, HINT_EVENTS_NUM> hints_events; bool hints_explored; bool hints_stashes; bool hints_travel; |