Class: Gamefic::Director::Order
- Inherits:
-
Object
- Object
- Gamefic::Director::Order
- Defined in:
- lib/gamefic/director/order.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
- #cancel ⇒ Object
- #canceled? ⇒ Boolean
-
#initialize(actor, action, arguments) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(actor, action, arguments) ⇒ Order
Returns a new instance of Order.
4 5 6 7 8 9 |
# File 'lib/gamefic/director/order.rb', line 4 def initialize(actor, action, arguments) @actor = actor @action = action @arguments = arguments @canceled = false end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'lib/gamefic/director/order.rb', line 3 def action @action end |
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
3 4 5 |
# File 'lib/gamefic/director/order.rb', line 3 def actor @actor end |
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/gamefic/director/order.rb', line 3 def arguments @arguments end |
Instance Method Details
#cancel ⇒ Object
10 11 12 |
# File 'lib/gamefic/director/order.rb', line 10 def cancel @canceled = true end |
#canceled? ⇒ Boolean
13 14 15 |
# File 'lib/gamefic/director/order.rb', line 13 def canceled? @canceled end |