|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectzombie.core.textures.Mask
public class Mask
| Constructor Summary | |
|---|---|
Mask(int width,
int height)
Creates a new instance of Mask. The Mask will be maked fully |
|
Mask(ITexture texture)
|
|
Mask(ITexture texture,
boolean[] mask)
|
|
Mask(Mask obj)
|
|
Mask(Texture from,
Texture texture,
int x,
int y,
int width,
int height)
Creates a new instance of Mask from a texture |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
void |
full()
creates a full-rectangular mask |
boolean |
get(int x,
int y)
|
void |
save(java.lang.String name)
|
void |
set(int x,
int y,
boolean val)
changes the x,y value of the mask |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mask(int width,
int height)
width - width of maskheight - height of maskfull()
public Mask(Texture from,
Texture texture,
int x,
int y,
int width,
int height)
texture - the source texture
public Mask(ITexture texture,
boolean[] mask)
public Mask(ITexture texture)
public Mask(Mask obj)
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic void full()
public void set(int x,
int y,
boolean val)
x - coordinatey - coordinateval - new value
public boolean get(int x,
int y)
public void save(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||