src/game/objects/maps/basic_continuous_map.rb
# enter is only called for players
enter is only called for players
enter is only called for players
def enter(player, location = nil)
    @start_location = @start_location.is_a?(String) ? eval(@start_location) : @start_location
    new_location = @start_location
    unless location.nil? then
      new_location = (location.is_a?(String) ? eval(location) : location)
    end
    player.send_to_client "Entering game map #{self.name} at location #{new_location}\n"
    player.map = self.game_object_id
    enter_room player, new_location
    player.save
    log.debug { "#{player} entering map #{self.game_object_id} at #{player.location}" }
  end
def enter ( player , location = nil ) @start_location = @start_location . is_a? ( String ) ? eval ( @start_location ) : @start_location new_location = @start_location unless location . nil? then new_location = ( location . is_a? ( String ) ? eval ( location ) : location ) end player . send_to_client "Entering game map #{self.name} at location #{new_location}\n" player . map = self . game_object_id enter_room player , new_location player . save log . debug { "#{player} entering map #{self.game_object_id} at #{player.location}" } end
enter is only called for players
enter is only called for players
player
<not_specific>
location
<not_specific>