Class: Core::Game::Events::MotionEvent

Inherits:
Event show all
Defined in:
lib/game/map/events.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#object

Instance Method Summary collapse

Constructor Details

#initialize(npc, old_pos) ⇒ MotionEvent

Returns a new instance of MotionEvent.



14
15
16
17
# File 'lib/game/map/events.rb', line 14

def initialize(npc, old_pos)
  super(npc)
  @old_pos = old_pos
end

Instance Attribute Details

#old_posObject (readonly)

Returns the value of attribute old_pos.



13
14
15
# File 'lib/game/map/events.rb', line 13

def old_pos
  @old_pos
end