Class: Core::Game::Events::TriggerEvent

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(activator, other) ⇒ TriggerEvent

Returns a new instance of TriggerEvent.



22
23
24
25
# File 'lib/game/map/events.rb', line 22

def initialize(activator, other)
  super(activator)
  @other = other
end

Instance Attribute Details

#otherObject (readonly)

Returns the value of attribute other.



21
22
23
# File 'lib/game/map/events.rb', line 21

def other
  @other
end