All pastes #195930 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-10-10 05:00 UTC
rendered paste body

########################################
# Name       : generate_los
# Type       : Class Method
# Usage      : $maze->generate_los()
# Purpose    : Generates a LOS for the bot.
# Returns    : Returns a hash with keys n, s, e, w.
# Parameters : 
# Throws     : no exceptions
# Comments   : 
# See Also   : n/a
sub generate_los {
    my ($self) =  @_;

    return %(
        n => $self->check_location(@{$self->{bot_coord}}),
	e => $self->check_location(@{$self->{bot_coord}}),
	s => $self->check_location(@{$self->{bot_coord}}),
	w => $self->check_location(@{$self->{bot_coord}}),
    );


}