Class Mask

java.lang.Object
zombie.core.textures.Mask
All Implemented Interfaces:
Serializable, Cloneable

public final class Mask extends Object implements Serializable, Cloneable
See Also:
  • Constructor Details

    • Mask

      protected Mask()
    • Mask

      public Mask(int _width, int _height)
      Creates a new instance of Mask.
      Parameters:
      _width - width of mask
      _height - height of mask
    • Mask

      public Mask(Texture from, Texture texture, int x, int y, int _width, int _height)
      Creates a new instance of Mask from a texture
      Parameters:
      from -
      texture - the source texture
      x -
      y -
      _width -
      _height -
    • Mask

      public Mask(Mask other, int x, int y, int _width, int _height)
    • Mask

      public Mask(boolean[] boolean0, int int4, int var3, int int6, int int5, int int0, int int1)
    • Mask

      public Mask(BooleanGrid booleanGrid, int int0, int int1, int int2, int int3)
    • Mask

      protected Mask(Texture texture, WrappedBuffer wrappedBuffer)
    • Mask

      public Mask(ITexture texture, boolean[] boolean0)
    • Mask

      public Mask(ITexture texture, BooleanGrid _mask)
    • Mask

      public Mask(ITexture texture)
    • Mask

      public Mask(Mask obj)
  • Method Details

    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • isSubMask

      public boolean isSubMask()
    • getOffsetX

      public int getOffsetX()
    • getOffsetY

      public int getOffsetY()
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • full

      public void full()
      creates a full-rectangular mask
    • set

      public void set(int x, int y, boolean val)
      changes the x,y value of the mask
      Parameters:
      x - coordinate
      y - coordinate
      val - new value
    • get

      public boolean get(int x, int y)
    • save

      public void save(String name)