Class: Core::Game::Events::Event

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

Direct Known Subclasses

MotionEvent, TriggerEvent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Event

Returns a new instance of Event.



7
8
9
# File 'lib/game/map/events.rb', line 7

def initialize(obj)
  @object = obj
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



6
7
8
# File 'lib/game/map/events.rb', line 6

def object
  @object
end