public class MapTileTransitionModel extends FeatureModel implements MapTileTransition
Constructor and Description |
---|
MapTileTransitionModel()
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(Collection<Media> levels,
Media sheetsConfig,
Media groupsConfig)
Load the transitions from map configuration.
|
void |
loadTransitions(Map<Transition,Collection<TileRef>> transitions)
Load the transitions from raw data.
|
void |
loadTransitions(Media transitionsConfig)
Load the transitions from a specific configuration.
|
void |
prepare(FeatureProvider provider,
Services services)
Prepare the feature.
|
Collection<Tile> |
resolve(Tile tile)
Resolve transitions by updating tiles if necessary.
|
checkListener, getFeature, getFeatures, getFeaturesType, hasFeature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkListener
getFeature, getFeatures, getFeaturesType, hasFeature
public void prepare(FeatureProvider provider, Services services)
Feature
Services
are required.prepare
in interface Feature
prepare
in class FeatureModel
provider
- The owner reference.services
- The services reference.public void loadTransitions(Media transitionsConfig)
MapTileTransition
loadTransitions
in interface MapTileTransition
transitionsConfig
- The configuration media.public void loadTransitions(Collection<Media> levels, Media sheetsConfig, Media groupsConfig)
MapTileTransition
loadTransitions
in interface MapTileTransition
levels
- The level rips used.sheetsConfig
- The sheets configuration media.groupsConfig
- The groups configuration media.public void loadTransitions(Map<Transition,Collection<TileRef>> transitions)
MapTileTransition
loadTransitions
in interface MapTileTransition
transitions
- The transitions data.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.