Class Mask
java.lang.Object
zombie.core.textures.Mask
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Mask()
Mask
(boolean[] boolean0, int int4, int var3, int int6, int int5, int int0, int int1) Mask
(int _width, int _height) Creates a new instance of Mask.Creates a new instance of Mask from a textureprotected
Mask
(Texture texture, WrappedBuffer wrappedBuffer) Mask
(BooleanGrid booleanGrid, int int0, int int1, int int2, int int3) Mask
(ITexture texture, BooleanGrid _mask) -
Method Summary
-
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
-
Mask
-
Mask
public Mask(boolean[] boolean0, int int4, int var3, int int6, int int5, int int0, int int1) -
Mask
-
Mask
-
Mask
-
Mask
-
Mask
-
Mask
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
isSubMask
public boolean isSubMask() -
getOffsetX
public int getOffsetX() -
getOffsetY
public int getOffsetY() -
clone
-
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
- coordinatey
- coordinateval
- new value
-
get
public boolean get(int x, int y) -
save
-