class RuneRb::NPC::NPC
Attributes
definition[R]
direction[RW]
Public Class Methods
new(definition)
click to toggle source
Calls superclass method
RuneRb::Model::Entity::new
# File app/model/npc.rb, line 6 def initialize(definition) super() @definition = definition end
Public Instance Methods
add_to_region(region)
click to toggle source
# File app/model/npc.rb, line 11 def add_to_region(region) region.npcs << self end
remove_from_region(region)
click to toggle source
# File app/model/npc.rb, line 15 def remove_from_region(region) region.npcs.delete self end