Class: Zyps::TurnAction
- Inherits:
-
TimedAction
- Object
- Action
- TimedAction
- Zyps::TurnAction
- Defined in:
- lib/zyps/actions.rb
Overview
Apply a thrust that turns actor.
Instance Attribute Summary collapse
-
#angle ⇒ Object
Angle to turn at.
Attributes inherited from TimedAction
Attributes inherited from Action
Instance Method Summary collapse
- #do(actor, targets) ⇒ Object
-
#initialize(rate, angle) ⇒ TurnAction
constructor
A new instance of TurnAction.
Methods inherited from TimedAction
Methods inherited from Action
#copy, #start, #started?, #stop
Constructor Details
#initialize(rate, angle) ⇒ TurnAction
Returns a new instance of TurnAction.
90 91 92 93 |
# File 'lib/zyps/actions.rb', line 90 def initialize(rate, angle) super @angle = angle end |
Instance Attribute Details
#angle ⇒ Object
Angle to turn at.
89 90 91 |
# File 'lib/zyps/actions.rb', line 89 def angle @angle end |