public class TileGroup extends Object implements Nameable
TileRef
.
Here a definition example:
<lionengine:groups xmlns:lionengine="http://lionengine.b3dgs.com"> <lionengine:group name="block"> type="PLAIN"> <lionengine:tile sheet="0" number="1"/> <lionengine:tile sheet="1" number="5"/> </lionengine:group> <lionengine:group name="top"> type="TRANSITION"> <lionengine:tile sheet="0" number="2"/> <lionengine:tile sheet="0" number="3"/> </lionengine:group> </lionengine:groups>
TileGroupsConfig
Constructor and Description |
---|
TileGroup(String name,
TileGroupType type,
Collection<TileRef> tiles)
Create a tile group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Integer sheet,
int number)
Check if tile is contained by the group.
|
boolean |
contains(Tile tile)
Check if tile is contained by the group.
|
boolean |
equals(Object object) |
String |
getName() |
Collection<TileRef> |
getTiles()
Get the tiles inside group.
|
TileGroupType |
getType()
Get the group type.
|
int |
hashCode() |
public TileGroup(String name, TileGroupType type, Collection<TileRef> tiles)
name
- The group name.type
- The group type.tiles
- The tiles inside the group.public boolean contains(Tile tile)
tile
- The tile reference.true
if part of the group, false
else.public boolean contains(Integer sheet, int number)
sheet
- The sheet number.number
- The tile number.true
if part of the group, false
else.public TileGroupType getType()
public Collection<TileRef> getTiles()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.