Class Tile

java.lang.Object
net.vincent.parkourwarrior.Tile

public class Tile extends Object
Tiles class for each tile.

This class is the parent of every tile, which are the blocks displayed inside the game, each Tile contains a BufferedImage of that tile for Graphics2D to draw. This also consist of a boolean which determines if a tile is solid.

Since:
1.0
  • Field Details

    • image

      public BufferedImage image
      The BufferedImage to store the image of a tile.
      Since:
      1.0
    • solidTile

      public boolean solidTile
      To see if a tile is solid.
      Since:
      1.0
  • Constructor Details

    • Tile

      public Tile()
      Constructs a new Tile with default values.

      The tile image is initially null and solidTile is false.

      Since:
      1.0