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 TypeMethodDescriptionvoid
end
(boolean won) End a level.getLevel()
Get the associated level.Get the current player ofnull
if none set.boolean
hasEnded()
Indicates whether the level has ended.boolean
This method indicates whether the offset is set to wildcard (any position is allowed / no elements will be deleted (because of their position))void
setOffsetWildCard
(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 ofnull
if 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:
true
if ended,false
otherwise
-
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:
true
if activated,false
otherwise
-
setOffsetWildCard
void setOffsetWildCard(boolean wildcard) Set return value ofisOffsetWildCard()
.- Parameters:
wildcard
- the value
-