<commit_before>package BeanPlant.the_DJDJ.JavaText.world;

import BeanPlant.the_DJDJ.JavaText.npc.Boss;
import BeanPlant.the_DJDJ.JavaText.npc.Entity;
import BeanPlant.the_DJDJ.JavaText.npc.EntityCollection;
import BeanPlant.the_DJDJ.JavaText.npc.EntityShadow;
import BeanPlant.the_DJDJ.JavaText.world.exit.Exit;
import BeanPlant.the_DJDJ.JavaText.user.Item;
import BeanPlant.the_DJDJ.JavaText.user.ItemStack;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * A location that the player can be in. This is a room, with a title and a 
 * description, that the user sees.
 *
 * @author the_DJDJ
 */
public class Location implements Serializable {
	
    /** The title of the location. */
    private String m_title;
    
    /** The description of the location. */
    private String m_description;
    
    /** Whether or not the user has visited this location yet. */
    private transient boolean m_visited;
    
    /** The items in the location. */
    private final List<Item> m_items;
    
    /** The exits associated with the location. */
    private final List<Exit> m_exits;
    
    /** The entities in this location. */
    private List<Entity> entities;
    
    /** The EntityShadows in this location. */
    private List<EntityShadow> entityShadows;
    
    /** The boss in this location. */
    private Boss boss = null;

    /**
     * The default constructor. Initialises all variables and sets them to the
     * default values.
     */
    public Location() {
        
        this(new String(), new String());
    
    }

    /**
     * A constructor. Creates a new Location object with the specified title.
     * <commit_msg>fix: Made entity shadow transient<commit_after>package BeanPlant.the_DJDJ.JavaText.world;

import BeanPlant.the_DJDJ.JavaText.npc.Boss;
import BeanPlant.the_DJDJ.JavaText.npc.Entity;
import BeanPlant.the_DJDJ.JavaText.npc.EntityCollection;
import BeanPlant.the_DJDJ.JavaText.npc.EntityShadow;
import BeanPlant.the_DJDJ.JavaText.world.exit.Exit;
import BeanPlant.the_DJDJ.JavaText.user.Item;
import BeanPlant.the_DJDJ.JavaText.user.ItemStack;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * A location that the player can be in. This is a room, with a title and a 
 * description, that the user sees.
 *
 * @author the_DJDJ
 */
public class Location implements Serializable {
	
    /** The title of the location. */
    private String m_title;
    
    /** The description of the location. */
    private String m_description;
    
    /** Whether or not the user has visited this location yet. */
    private transient boolean m_visited;
    
    /** The items in the location. */
    private final List<Item> m_items;
    
    /** The exits associated with the location. */
    private final List<Exit> m_exits;
    
    /** The entities in this location. */
    private List<Entity> entities;
    
    /** The EntityShadows in this location. */
    private transient List<EntityShadow> entityShadows;
    
    /** The boss in this location. */
    private Boss boss = null;

    /**
     * The default constructor. Initialises all variables and sets them to the
     * default values.
     */
    public Location() {
        
        this(new String(), new String());
    
    }

    /**
     * A constructor. Creates a new Location object with the specified title.
     * 
{'fraction_non_alphanumeric': 0.09435626102292768, 'fraction_numerical': 0.0, 'mean_word_length': 2.875854214123007, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5211625', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1013, 'n_words': 315}