class RuneRb::Tasks::NPCTickTask
Attributes
npc[R]
Public Class Methods
new(npc)
click to toggle source
# File app/tasks/npc_update.rb, line 5 def initialize(npc) @npc = npc end
Public Instance Methods
execute()
click to toggle source
# File app/tasks/npc_update.rb, line 9 def execute if @npc.region_change @npc.last_location = @npc.location end @npc.walking_queue.next_movement end