class Core::Game::Spell
Attributes
cost[R]
icon[R]
name[R]
type[R]
Public Instance Methods
cast(caster, target=nil)
click to toggle source
# File lib/game/spell.rb, line 25 def cast(caster, target=nil) puts("#{caster} casts #{self.name} on #{target}") if Core::Game::Spells.respond_to?(self.name) Core::Game::Spells.send(self.name) else puts("ERROR: No ruby definition for spell #{self.name} found") end end