Class: Core::Game::Events::MotionEvent
- Defined in:
- lib/game/map/events.rb
Instance Attribute Summary collapse
-
#old_pos ⇒ Object
readonly
Returns the value of attribute old_pos.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(npc, old_pos) ⇒ MotionEvent
constructor
A new instance of MotionEvent.
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_pos ⇒ Object (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 |