Class: Zyps::Condition
- Inherits:
-
Object
- Object
- Zyps::Condition
- Defined in:
- lib/zyps.rb
Overview
A condition for one Creature to act on another.
Direct Known Subclasses
AgeCondition, ClassCondition, CollisionCondition, ProximityCondition, StrengthCondition, TagCondition
Instance Method Summary collapse
-
#copy ⇒ Object
Make a deep copy.
- #select(actor, targets) ⇒ Object
Instance Method Details
#copy ⇒ Object
Make a deep copy.
290 |
# File 'lib/zyps.rb', line 290 def copy; self.clone; end |
#select(actor, targets) ⇒ Object
292 293 294 |
# File 'lib/zyps.rb', line 292 def select(actor, targets) raise NotImplementedError.new("Condition subclasses must implement a select(actor, target) instance method.") end |