Package rekit.logic
Interface ILevelScene
- All Superinterfaces:
IScene
- All Known Implementing Classes:
LevelScene
This interface extends
IScene and adds necessary methods to
encapsulate Levels.- Author:
- Matthias Schmitt
-
Method Summary
Modifier and TypeMethodDescriptionvoidend(boolean won) End a level.getLevel()Get the associated level.Get the current player ofnullif none set.booleanhasEnded()Indicates whether the level has ended.booleanThis method indicates whether the offset is set to wildcard (any position is allowed / no elements will be deleted (because of their position))voidsetOffsetWildCard(boolean wildcard) Set return value ofisOffsetWildCard().Methods inherited from interface rekit.logic.IScene
addGameElement, addGuiElement, applyToGameElements, applyToGuiElements, applyToNonNeutralGameElements, attack, getCameraOffset, getGameElementCount, getGameElementDurations, getMenu, getModel, init, isLevelScene, isPaused, logicLoop, markForRemove, removeGuiElement, restart, setAttackHandler, setCameraTarget, setCanPause, setPause, start, togglePause
-
Method Details
-
getPlayer
Player getPlayer()Get the current player ofnullif none set.- Returns:
- the current player of
null
-
getLevel
Level getLevel()Get the associated level.- Returns:
- the level
-
end
void end(boolean won) End a level.- Parameters:
won- indicates whether successful or died
-
hasEnded
boolean hasEnded()Indicates whether the level has ended.- Returns:
trueif ended,falseotherwise
-
isOffsetWildCard
boolean isOffsetWildCard()This method indicates whether the offset is set to wildcard (any position is allowed / no elements will be deleted (because of their position))- Returns:
trueif activated,falseotherwise
-
setOffsetWildCard
void setOffsetWildCard(boolean wildcard) Set return value ofisOffsetWildCard().- Parameters:
wildcard- the value
-