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