airesources/Ruby/hlt/planet.rb
# Use the known owner id and ship ids to populate the docked_ships and owner
# with real objects rather than just ids.
# players: hash of { player_id: Player }
# planets: hash of { planet_id: Planet }
Use the known owner id and ship ids to populate the docked_ships and owner
with real objects rather than just ids.
players: hash of { player_id: Player }
planets: hash of { planet_id: Planet }
Use the known owner id and ship ids to populate the docked_ships and owner with real objects rather than just ids . players : hash of { player_id : Player } planets : hash of { planet_id : Planet }
def link(players, planets)
    return if owner.nil?
    @owner = players[owner]
    @docked_ship_ids.each do |ship_id|
      @docked_ships[ship_id] = @owner.ship(ship_id)
    end
  end
def link ( players , planets ) return if owner . nil? @owner = players [ owner ] @docked_ship_ids . each do | ship_id | @docked_ships [ ship_id ] = @owner . ship ( ship_id ) end end
Use the known owner id and ship ids to populate the docked_ships and owner
with real objects rather than just ids.
Use the known owner id and ship ids to populate the docked_ships and owner with real objects rather than just ids .
players
<not_specific>
planets
<not_specific>