Class: Lich::Gemstone::Combat::Definitions::Messages::Family Private
- Inherits:
-
Struct
- Object
- Struct
- Lich::Gemstone::Combat::Definitions::Messages::Family
- 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
-
#always_scan ⇒ Object
Returns the value of attribute always_scan.
-
#defs ⇒ Object
Returns the value of attribute defs.
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#events ⇒ Object
private
Every event this family can emit.
-
#rejects?(line) ⇒ Boolean
private
Returns true if the gate rejects this line without scanning any defs.
Instance Attribute Details
#always_scan ⇒ Object
Returns the value of attribute 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
48 49 50 |
# File 'documented/gemstone/combat/defs/messages.rb', line 48 def defs @defs end |
#gate ⇒ Object
Returns the value of attribute 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
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.
57 |
# File 'documented/gemstone/combat/defs/messages.rb', line 57 def rejects?(line) = PatternGate.rejects?(gate, always_scan, line) |