public class PrefMapRegion extends PrefBase
Constructor and Description |
---|
PrefMapRegion(TileRef tile,
Tiled area,
int maxSize,
int count)
Create preference.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MapTile map)
Apply preference on the specified map.
|
compareTo, getPrority
public PrefMapRegion(TileRef tile, Tiled area, int maxSize, int count)
tile
- The tile to use.area
- The area in tile where random placement occurs.maxSize
- The placement maximum size in tile (must be strictly positive).count
- The number of random placement (must be strictly positive).LionEngineException
- If invalid arguments.public void apply(MapTile map)
Preference
map
- The map reference.Copyright © 2017 Byron 3D Games Studio. All rights reserved.