Class: Gamefic::Order
- Inherits:
-
Object
- Object
- Gamefic::Order
- Defined in:
- lib/gamefic/order.rb
Overview
Build actions from explicit verbs and arguments.
The Active#execute method uses Order to bypass the parser while generating actions to be executed in the Dispatcher.
Instance Method Summary collapse
-
#initialize(actor, verb, arguments) ⇒ Order
constructor
A new instance of Order.
- #to_actions ⇒ Array<Action>
Constructor Details
#initialize(actor, verb, arguments) ⇒ Order
13 14 15 16 17 |
# File 'lib/gamefic/order.rb', line 13 def initialize(actor, verb, arguments) @actor = actor @verb = verb @arguments = arguments end |