Class: Gamefic::Director::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/director/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/gamefic/director/order.rb', line 3

def action
  @action
end

#actorObject (readonly)

Returns the value of attribute actor.



3
4
5
# File 'lib/gamefic/director/order.rb', line 3

def actor
  @actor
end

#argumentsObject (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

#cancelObject



10
11
12
# File 'lib/gamefic/director/order.rb', line 10

def cancel
  @canceled = true
end

#canceled?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/gamefic/director/order.rb', line 13

def canceled?
  @canceled
end