/** *
* Tile.java * * Revisions: 1.0 Nov. 12, 2002 * Created the Tile class * ** * @author Jose Manuel Caban * @version Version 1.0, Nov. 12, 2002 */ public class CTile extends CCoord{ /** *Defines whether the object is coming from the ground up to a given level *or whether it is a floating object (i.e. a bridge) */ private boolean bIsFloating; /** *Define whether block has a special nibble */ private boolean bHasSpecial; /** *Define whether block has a nibble */ private boolean bHasNibble; //////////////// //Constructors// //////////////// /** *@param x, the x-coord *@param y, the y-coord *@param h, the height */ public CTile(int x, int y, int h){ this(x,y,h,false); } /** *Same as other constructor but adds *@param bIsFloating, defines whether the object is floating or not */ public CTile(int x, int y, int h, boolean bFloating){ super(x,y,h); bIsFloating = bFloating; } /////////////////////// //Accessors/Modifiers// /////////////////////// /** *@return true if object can be passed over */ public boolean isPassable(Coord op){ if(op.getH() == this.h){ return true; } return false; } /** * Debugging main for class Tile. * This method will rigorously test my code. * *