Class: Lich::Gemstone::Combat::Definitions::Messages::Family Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#always_scan ⇒ Object

Returns the value of attribute always_scan

Returns:

  • (Object) —

    the current value of always_scan



48
49
50
# File 'documented/gemstone/combat/defs/messages.rb', line 48

def always_scan
  @always_scan
end

#defs ⇒ Object

Returns the value of attribute defs

Returns:

  • (Object) —

    the current value of defs



48
49
50
# File 'documented/gemstone/combat/defs/messages.rb', line 48

def defs
  @defs
end

#gate ⇒ Object

Returns the value of attribute gate

Returns:

  • (Object) —

    the current value of gate



48
49
50
# File 'documented/gemstone/combat/defs/messages.rb', line 48

def gate
  @gate
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



48
49
50
# File 'documented/gemstone/combat/defs/messages.rb', line 48

def name
  @name
end

Instance Method Details

#events ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Every event this family can emit.



50
# File 'documented/gemstone/combat/defs/messages.rb', line 50

def events = defs.map(&:event).uniq

#rejects?(line) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true if the gate rejects this line without scanning any defs.

Parameters:

  • line (String) —

    the game output line to check

Returns:

  • (Boolean) —

    true if the gate pattern rejects the line; false otherwise



57
# File 'documented/gemstone/combat/defs/messages.rb', line 57

def rejects?(line) = PatternGate.rejects?(gate, always_scan, line)