Class: Teien::Event::Actor::SetForwardDirection

Inherits:
Object
  • Object
show all
Defined in:
lib/teien/actor/actor_event.rb

Direct Known Subclasses

RequestSetForwardDirection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, dir = nil) ⇒ SetForwardDirection

Returns a new instance of SetForwardDirection.



62
63
64
65
# File 'lib/teien/actor/actor_event.rb', line 62

def initialize(name = nil, dir = nil)
  @actor_name = name
  @dir = dir
end

Instance Attribute Details

#actor_nameObject

Returns the value of attribute actor_name.



59
60
61
# File 'lib/teien/actor/actor_event.rb', line 59

def actor_name
  @actor_name
end

#dirObject

Returns the value of attribute dir.



60
61
62
# File 'lib/teien/actor/actor_event.rb', line 60

def dir
  @dir
end

Instance Method Details

#copy(event) ⇒ Object



67
68
69
70
# File 'lib/teien/actor/actor_event.rb', line 67

def copy(event)
  @actor_name = event.actor_name
  @dir = event.dir
end