1 #pragma once
2 
3 #include "tag-version.h"
4 
5 enum caction_type    // Primary categorization of counted actions.
6 {                    // A subtype and auxtype will also be given in each case:
7     CACT_MELEE,      // weapon subtype or unrand index
8                      //   subtype = -1 for unarmed or aux attacks
9                      //   auxtype = -1 for unarmed
10                      //   auxtype = unarmed_attack_type for aux attacks
11     CACT_FIRE,       // weapon subtype or unrand index
12     CACT_THROW,      // auxtype = item basetype, subtype = item subtype
13     CACT_CAST,       // spell_type
14     CACT_INVOKE,     // ability_type
15     CACT_ABIL,       // ability_type
16     CACT_EVOKE,      // evoc_type or unrand index
17                      //   auxtype = item basetype, subtype = item subtype
18     CACT_USE,        // object_class_type
19     CACT_STAB,       // stab_type
20 #if TAG_MAJOR_VERSION == 34
21     CACT_EAT,        // food_type, or subtype = -1 for corpse
22 #endif
23     CACT_ARMOUR,     // armour subtype or subtype = -1 for unarmoured
24     CACT_DODGE,      // dodge_type
25     CACT_BLOCK,      // armour subtype or subtype = -1 and
26                      //   auxtype used for special cases
27                      //   (reflection, god ability, spell, etc)
28     CACT_RIPOSTE,    // as CACT_MELEE
29     NUM_CACTIONS,
30 };
31