Class TiledLayer


  • public class TiledLayer
    extends Layer
    A layer consisting of image tiles.
    • Field Detail

      • texturePath_

        protected java.lang.String texturePath_
        Texture path.
    • Constructor Detail

      • TiledLayer

        public TiledLayer()
        Creates a new TiledLayer.
      • TiledLayer

        public TiledLayer​(IVector2 tileSize,
                          java.lang.Object color,
                          java.lang.String texturePath)
        Creates a new TiledLayer.
        Parameters:
        tileSize - size of an individual tile
        color - the modulation color
        texturePath - resource path of the texture
    • Method Detail

      • getTileSize

        public IVector2 getTileSize()
        The tile size.
      • getInvTileSize

        public IVector2 getInvTileSize()
        Get the inverted tile size.
      • getTexturePath

        public java.lang.String getTexturePath()
        Get the texture path.
        Returns:
        The texture path.
      • hashCode

        public int hashCode()
        Get the hash code.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Compares the layers.
        Overrides:
        equals in class java.lang.Object