Class: Lich::Gemstone::Combat::Definitions::Attacks::AttackDef

Inherits:
Struct
  • Object
show all
Defined in:
documented/gemstone/combat/defs/attacks.rb

Overview

Represents an attack definition with a name and associated patterns.

Instance Attribute Summary collapse

Instance Attribute Details

#nameSymbol (readonly)

Returns the name of the attack.

Returns:

  • (Symbol)

    the name of the attack



17
# File 'documented/gemstone/combat/defs/attacks.rb', line 17

AttackDef = Struct.new(:name, :patterns)

#patternsArray<Regexp> (readonly)

Returns the patterns that match the attack description.

Returns:

  • (Array<Regexp>)

    the patterns that match the attack description



17
# File 'documented/gemstone/combat/defs/attacks.rb', line 17

AttackDef = Struct.new(:name, :patterns)