public class MapTileFog extends Object
Constructor and Description |
---|
MapTileFog()
Create a fog of war.
|
Modifier and Type | Method and Description |
---|---|
void |
create(MapTile map,
Media config,
SpriteTiled sheet)
Create a fog of war from a map.
|
Tile |
getTile(int tx,
int ty)
Get the tile.
|
void |
reset()
Reset the revealed tiles to fogged.
|
void |
update(Collection<Fovable> fovables)
Update fovable field of view (fog of war).
|
public void create(MapTile map, Media config, SpriteTiled sheet)
map
- The map reference.config
- The fog configuration.sheet
- The sheet used (can be null
).public void update(Collection<Fovable> fovables)
fovables
- The entities reference.public void reset()
public Tile getTile(int tx, int ty)
tx
- The horizontal location.ty
- The vertical location.Copyright © 2017 Byron 3D Games Studio. All rights reserved.