public class PrefMapSize extends PrefBase
Constructor and Description |
---|
PrefMapSize(int tileWidth,
int tileHeight,
int widthInTile,
int heightInTile)
Create preference.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(MapTile map)
Apply preference on the specified map.
|
compareTo, getPrority
public PrefMapSize(int tileWidth, int tileHeight, int widthInTile, int heightInTile)
tileWidth
- The tile width.tileHeight
- The tile height.widthInTile
- The map width in tile (must be strictly positive).heightInTile
- The map height in tile (must be strictly positive).LionEngineException
- If size is invalid.public void apply(MapTile map)
Preference
map
- The map reference.Copyright © 2017 Byron 3D Games Studio. All rights reserved.