public class MapTileTransitionModel extends Object implements MapTileTransition
The map must have the MapTileGroup
feature.
Constructor and Description |
---|
MapTileTransitionModel(Services services)
Create a map tile transition.
|
Modifier and Type | Method and Description |
---|---|
Collection<TileRef> |
getTiles(Transition transition)
Get the tiles associated to the transition.
|
Transition |
getTransition(TileRef tile,
String groupOut)
Get the tile transition.
|
Transition |
getTransition(Tile tile,
String group)
Get the tile transition.
|
Collection<Transition> |
getTransitions()
Get all supported transitions.
|
Collection<GroupTransition> |
getTransitives(String groupIn,
String groupOut)
Get the transitive groups list to reach a group from another.
|
void |
loadTransitions()
Load the transitions by using the default file.
|
void |
loadTransitions(Media config)
Load the transitions from a specific configuration.
|
Collection<Tile> |
resolve(Tile tile)
Resolve transitions by updating tiles if necessary.
|
public MapTileTransitionModel(Services services)
The Services
must provide the following services:
services
- The services reference.LionEngineException
- If services not found.public void loadTransitions()
MapTileTransition
loadTransitions
in interface MapTileTransition
public void loadTransitions(Media config)
MapTileTransition
loadTransitions
in interface MapTileTransition
config
- The configuration media.public Collection<Tile> resolve(Tile tile)
MapTileTransition
resolve
in interface MapTileTransition
tile
- The new tile placed.public Transition getTransition(TileRef tile, String groupOut)
MapTileTransition
getTransition
in interface MapTileTransition
tile
- The tile reference.groupOut
- The transition with this group.public Transition getTransition(Tile tile, String group)
MapTileTransition
getTransition
in interface MapTileTransition
tile
- The tile reference.group
- The transition with this group.public Collection<GroupTransition> getTransitives(String groupIn, String groupOut)
MapTileTransition
getTransitives
in interface MapTileTransition
groupIn
- The first group.groupOut
- The last group.public Collection<Transition> getTransitions()
MapTileTransition
getTransitions
in interface MapTileTransition
public Collection<TileRef> getTiles(Transition transition)
MapTileTransition
getTiles
in interface MapTileTransition
transition
- The transition reference.Copyright © 2016 Byron 3D Games Studio. All rights reserved.