<commit_before>//
// $Id: BaseTile.java,v 1.4 2002/02/06 17:13:06 mdb Exp $

package com.threerings.miso.tile;

import java.awt.Image;
import com.threerings.media.tile.Tile;

/**
 * Extends the tile class to add support for tile passability.
 *
 * @see BaseTileSet
 */
public class BaseTile extends Tile
{
    /**
     * Constructs a new base tile with the specified image. Passability
     * will be assumed to be true.
     */
    public BaseTile (Image image)
    {
        super(image);
    }

    /**
     * Constructs a new base tile with the specified passability.
     */
    public BaseTile (Image image, boolean passable)
    {
	super(image);
	_passable = passable;
    }

    /**
     * Returns whether or not this tile can be walked upon by character
     * sprites.
     */
    public boolean isPassable ()
    {
        return _passable && !_covered;
    }

    /**
     * Sets whether or not this tile can be walked upon by character
     * sprites.
     */
    public void setPassable (boolean passable)
    {
        _passable = passable;
    }

    /**
     * Sets whether this tile is currently covered by the footprint of an
     * object tile or not. When it is covered, it can't be walked on by
     * character sprites.
     */
    public void setCovered (boolean covered)
    {
        _covered = covered;
    }

    /** Whether the tile is passable. */
    protected boolean _passable = true;

    /** Whether the tile is covered by an object tile. */
    protected boolean _covered = true;
}<commit_msg>Meant to make tiles non-covered by default.  "...change the poles from plus to minus, and from minus to plus!"<commit_after>//
// $Id: BaseTile.java,v 1.5 2002/02/07 02:58:46 shaper Exp $

package com.threerings.miso.tile;

import java.awt.Image;
import com.threerings.media.tile.Tile;

/**
 * Extends the tile class to add support for tile passability.
 *
 * @see BaseTileSet
 */
public class BaseTile extends Tile
{
    /**
     * Constructs a new base tile with the specified image. Passability
     * will be assumed to be true.
     */
    public BaseTile (Image image)
    {
        super(image);
    }

    /**
     * Constructs a new base tile with the specified passability.
     */
    public BaseTile (Image image, boolean passable)
    {
	super(image);
	_passable = passable;
    }

    /**
     * Returns whether or not this tile can be walked upon by character
     * sprites.
     */
    public boolean isPassable ()
    {
        return _passable && !_covered;
    }

    /**
     * Sets whether or not this tile can be walked upon by character
     * sprites.
     */
    public void setPassable (boolean passable)
    {
        _passable = passable;
    }

    /**
     * Sets whether this tile is currently covered by the footprint of an
     * object tile or not. When it is covered, it can't be walked on by
     * character sprites.
     */
    public void setCovered (boolean covered)
    {
        _covered = covered;
    }

    /** Whether the tile is passable. */
    protected boolean _passable = true;

    /** Whether the tile is covered by an object tile. */
    protected boolean _covered = false;
}
{'fraction_non_alphanumeric': 0.09021842355175688, 'fraction_numerical': 0.010129787907565685, 'mean_word_length': 2.23439099283521, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7550531', 'n_tokens_mistral': 971, 'n_tokens_neox': 919, 'n_words': 350}