public interface MapTileGroup extends MapTileFeature
Modifier and Type | Method and Description |
---|---|
void |
changeGroup(Tile tile,
String group)
Change the group of the tile.
|
String |
getGroup(Integer sheet,
int number)
Get the group name from the sheet and number value.
|
Collection<TileRef> |
getGroup(String name)
Get the tiles from group name.
|
String |
getGroup(Tile tile)
Get the group name of the tile.
|
String |
getGroup(TileRef tile)
Get the group name of the tile.
|
Collection<String> |
getGroups()
Get the groups list.
|
Media |
getGroupsConfig()
Get the groups configuration media file.
|
TileGroupType |
getType(String name)
Get the group type from its name.
|
TileGroupType |
getType(Tile tile)
Get the group type from a tile.
|
void |
loadGroups(Media groupsConfig)
Load tiles group from an external file.
|
void loadGroups(Media groupsConfig)
groupsConfig
- The tile collision groups descriptor.LionEngineException
- If error when reading groups.void changeGroup(Tile tile, String group)
tile
- The tile to change its group.group
- The group destination name (null
to simply remove).Media getGroupsConfig()
Collection<TileRef> getGroup(String name)
name
- The group name.String getGroup(TileRef tile)
tile
- The tile reference.String getGroup(Tile tile)
tile
- The tile reference.String getGroup(Integer sheet, int number)
sheet
- The sheet number.number
- The tile number on sheet.TileGroupType getType(String name)
name
- The group name.TileGroupType getType(Tile tile)
tile
- The tile reference.Collection<String> getGroups()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.