1 #pragma once
2 
3 // Be sure to change activity_interrupt_names in delay.cc to match!
4 enum class activity_interrupt
5 {
6     force = 0,          // Forcibly kills any activity that can be
7                         // interrupted.
8     keypress,           // Not currently used
9     full_hp,            // Player is fully healed
10     full_mp,            // Player has recovered all mp
11     ancestor_hp,        // Player's ancestor is fully healed
12     message,            // Message was displayed
13     hp_loss,
14     stat_change,
15     see_monster,
16     monster_attacks,
17     teleport,
18     hit_monster,        // Player hit invis monster during travel/explore.
19     sense_monster,
20     mimic,
21 
22     // Always the last.
23     COUNT
24 };
25 constexpr int NUM_ACTIVITY_INTERRUPTS
26     = static_cast<int>(activity_interrupt::COUNT);
27