File: activity-interrupt-type.h

package info (click to toggle)
crawl 2%3A0.33.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 95,264 kB
  • sloc: cpp: 358,145; ansic: 27,203; javascript: 9,491; python: 8,359; perl: 3,327; java: 2,667; xml: 2,191; makefile: 1,830; sh: 611; objc: 250; cs: 15; sed: 9; lisp: 3
file content (33 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
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
#pragma once

// Be sure to change activity_interrupt_names in delay.cc to match!
enum class activity_interrupt
{
    force = 0,          // Forcibly kills any activity that can be
                        // interrupted. Delays that can have gameplay
                        // implications should explicitly avoid this in some
                        // fashion.
    keypress,           // Not currently used
    full_hp,            // Player is fully healed
    full_mp,            // Player has recovered all mp
    ancestor_hp,        // Player's ancestor is fully healed
    message,            // Message was displayed
    hp_loss,
    stat_change,
    see_monster,
    monster_attacks,
    teleport,
    hit_monster,        // Player hit invis monster during travel/explore.
    sense_monster,      // Any non-hit event (detection as well as things like
                        // door opening) that reveals the presence of an unseen
                        // monster.
    mimic,
    ally_attacked,      // A permanent player ally was attacked by something
                        // out of the player's LoS
    abyss_exit_spawned, // Abyss exit spawned

    // Always the last.
    COUNT
};
constexpr int NUM_ACTIVITY_INTERRUPTS
    = static_cast<int>(activity_interrupt::COUNT);