Class: Teien::Event::Actor::SetForwardDirection
- Inherits:
-
Object
- Object
- Teien::Event::Actor::SetForwardDirection
- Defined in:
- lib/teien/actor/actor_event.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#actor_name ⇒ Object
Returns the value of attribute actor_name.
-
#dir ⇒ Object
Returns the value of attribute dir.
Instance Method Summary collapse
- #copy(event) ⇒ Object
-
#initialize(name = nil, dir = nil) ⇒ SetForwardDirection
constructor
A new instance of SetForwardDirection.
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_name ⇒ Object
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 |
#dir ⇒ Object
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 |