class Openra::Replays::Order

github.com/OpenRA/OpenRA/blob/bleed/OpenRA.Game/Network/Order.cs

Constants

HAS_EXTRA_ACTORS
HAS_EXTRA_DATA
HAS_EXTRA_LOCATION
HAS_SUBJECT
HAS_TARGET
HAS_TARGET_STRING
HEX_FE
HEX_FF
IS_GROUPED

IS_QUEUED = -> { instance_exec(&IS_STANDARD_ORDER) && (flags & 0x08) == 0x08 }

IS_IMMEDIATE_ORDER
IS_STANDARD_ORDER
TARGET_IS_ACTOR
TARGET_IS_CELL
TARGET_IS_FROZEN_ACTOR
TARGET_IS_TERRAIN
TARGET_NOT_CELL

Public Instance Methods

immediate?() click to toggle source
# File lib/openra/replays/order.rb, line 69
def immediate?
  type == :immediate
end
queued?() click to toggle source
# File lib/openra/replays/order.rb, line 73
def queued?
  flags & 8 == 8
end
standard?() click to toggle source
# File lib/openra/replays/order.rb, line 65
def standard?
  type == :standard
end
target() click to toggle source
# File lib/openra/replays/order.rb, line 52
def target
  standard? ? standard_order_target : immediate_order_target
end
type() click to toggle source
# File lib/openra/replays/order.rb, line 56
def type
  case order_type
  when HEX_FF
    :standard
  when HEX_FE
    :immediate
  end
end