Help for this page

Select Code to Download


  1. or download this
    $location = $thingy->get_location( $l );
    
  2. or download this
    $building = $location->get_building( $b );
    
  3. or download this
    $building = $thingy->get_location( $l )->get_building( $b );
    
    #or
    
    $building = $thingy->get_building_by_location( $l, $b );
    
  4. or download this
    $cost = $thingy->get_location( $l )->get_building( $b )->cost;
    $totals = $location->get_totals;
    $upkeep = $building->get_upkeep;
    
  5. or download this
    foreach my $l ( $thingy->all_locations )
        {
    ...
            $b->set_cost( $b->cost + 1 );
            }
        }
    
  6. or download this
    while( my $location = $thingy->next_location )
        {
        ...
        }