Enum Class SpecialType
- All Implemented Interfaces:
Serializable
,Comparable<SpecialType>
,Constable
Special ability types.
Adding new types:
- Only add here if you also implement in code.
- All names here should be nouns or noun phrases.
- Add to category case methods as appropriate.
- Since:
- 2017-07-24
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SpecialType
findByName
(String s) Find special type matching a string.Map condition to appropriate saving throw type.boolean
Is this an attachment ability?boolean
Is this a breath weapon?boolean
Does this confer a disabling condition?boolean
Is this a gaze weapon?boolean
Is this a mental attack form?boolean
Is this a summons ability?boolean
Is the undead class immune to this? OD&D is explicit that charm, hold, and sleep don't affect undead.static SpecialType
Returns the enum constant of this class with the specified name.static SpecialType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NPC
-
Poison
-
Paralysis
-
Petrification
-
BloodDrain
-
EnergyDrain
-
Constriction
-
Immolation
-
Rotting
-
Swallowing
-
SilverToHit
-
MagicToHit
-
ChopImmunity
-
ChopResistance
-
ManyHeads
-
Berserking
-
HitBonus
-
Invisibility
-
Detection
-
Rending
-
SporeCloud
-
RockHurling
-
TailSpikes
-
Charm
-
Fear
-
SaveBonus
-
DodgeGiants
-
Regeneration
-
StrengthDrain
-
FleshEating
-
Whirlwind
-
WallOfFire
-
ConeOfCold
-
AcidSpit
-
Confusion
-
Displacement
-
Blinking
-
Phasing
-
CharmTouch
-
Dragon
-
FireBreath
-
ColdBreath
-
VoltBreath
-
AcidBreath
-
PoisonBreath
-
PetrifyingBreath
-
PetrifyingGaze
-
SummonVermin
-
SummonTrees
-
MindBlast
-
BrainConsumption
-
SappingStrands
-
Slowing
-
FireImmunity
-
ColdImmunity
-
AcidImmunity
-
VoltImmunity
-
SteamBreath
-
Stench
-
ResistStench
-
Webs
-
WebMove
-
Sleep
-
Hold
-
Blindness
-
Polymorphism
-
Undead
-
Golem
-
Death
-
Spells
-
ManyEyeFunctions
-
MagicResistance
-
MagicImmunity
-
UndeadImmunity
-
Fearlessness
-
ProtectionFromEvil
-
WoodEating
-
MetalEating
-
AntimagicSphere
-
BlownAway
-
Disintegration
-
Coma
-
Stun
-
Feeblemind
-
Insanity
-
Hypnosis
-
SpellReflection
-
CharmPerTen
-
FireResistance
-
ColdResistance
-
AcidResistance
-
VoltResistance
-
FireVulnerability
-
ColdVulnerability
-
AcidVulnerability
-
VoltVulnerability
-
PoisonSpit
-
DeathGaze
-
Smothering
-
Stunning
-
Shrieking
-
Conjuration
-
DropAttack
-
-
Constructor Details
-
SpecialType
private SpecialType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
findByName
Find special type matching a string. -
getSaveType
Map condition to appropriate saving throw type. -
isDisabling
public boolean isDisabling()Does this confer a disabling condition? -
isBreathWeapon
public boolean isBreathWeapon()Is this a breath weapon? -
isGazeWeapon
public boolean isGazeWeapon()Is this a gaze weapon? -
isSummonsAbility
public boolean isSummonsAbility()Is this a summons ability? -
isAttachmentAbility
public boolean isAttachmentAbility()Is this an attachment ability? -
isMentalAttack
public boolean isMentalAttack()Is this a mental attack form? -
isUndeadImmune
public boolean isUndeadImmune()Is the undead class immune to this? OD&D is explicit that charm, hold, and sleep don't affect undead. For simplicity & utility, we assume that includes any mental attack. We also bar death spells, as per 1E PHB. (1E also generally expands it to poison, paralysis, and cold.)
-