public class MapMask extends Object
| Constructor and Description |
|---|
MapMask(int height,
int width,
int tileWidth,
int tileHeight,
com.badlogic.gdx.utils.Array<com.badlogic.gdx.maps.tiled.TiledMapTileLayer> layers,
String propertyKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atGrid(int x,
int y,
boolean outOfBoundsResult) |
boolean |
atScreen(float x,
float y,
boolean outOfBoundsResult) |
boolean |
atScreen(int x,
int y,
boolean outOfBoundsResult) |
public final boolean[][] v
public final int height
public final int width
public MapMask(int height,
int width,
int tileWidth,
int tileHeight,
com.badlogic.gdx.utils.Array<com.badlogic.gdx.maps.tiled.TiledMapTileLayer> layers,
String propertyKey)
public boolean atGrid(int x,
int y,
boolean outOfBoundsResult)
x - grid coordinatesy - grid coordinates.public boolean atScreen(int x,
int y,
boolean outOfBoundsResult)
x - y - public boolean atScreen(float x,
float y,
boolean outOfBoundsResult)
Copyright © 2017. All rights reserved.