Class: Zyps::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/zyps.rb

Overview

A condition for one Creature to act on another.

Instance Method Summary collapse

Instance Method Details

#copyObject

Make a deep copy.



290
# File 'lib/zyps.rb', line 290

def copy; self.clone; end

#select(actor, targets) ⇒ Object

Raises:

  • (NotImplementedError)


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