Module: Manufactured::Entity::InSystem

Included in:
Loot, Ship, Station
Defined in:
lib/manufactured/entity.rb

Overview

Mixin indicating entity is in a system

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject Also known as: loc

Motel::Location

of the ship in its parent solar system


15
16
17
# File 'lib/manufactured/entity.rb', line 15

def location
  @location
end

#solar_systemObject Also known as: parent

Cosmos::SolarSystem

the ship is in


43
44
45
# File 'lib/manufactured/entity.rb', line 43

def solar_system
  @solar_system
end

#system_idObject Also known as: parent_id

String

id of the solar system ship is in


59
60
61
# File 'lib/manufactured/entity.rb', line 59

def system_id
  @system_id
end

Instance Method Details

#movement_strategyObject

Alias movement_strategy to location.movement_strategy


33
34
35
# File 'lib/manufactured/entity.rb', line 33

def movement_strategy
  @location.movement_strategy
end

#movement_strategy=(val) ⇒ Object

Alias movement_strategy= to location.movement_strategy=


38
39
40
# File 'lib/manufactured/entity.rb', line 38

def movement_strategy=(val)
  @location.movement_strategy=val
end