######################################## # 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}}), ); }