Package pvzclone.model.impl
Class LevelsManager
java.lang.Object
pvzclone.model.impl.LevelsManager
Class used for Managing Levels in the Game.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateLevel
(int delta) Returns a new created level regarding the delta.Returns the level at index inside the list.int
Returns the number of levels.Returns the list of levels.
-
Constructor Details
-
LevelsManager
public LevelsManager(int levelNumber) Constructor for LevelsManager.- Parameters:
levelNumber
- number of levels to generate.
-
-
Method Details
-
getLevelCount
public int getLevelCount()Returns the number of levels.- Returns:
- the number of levels.
-
createLevel
Returns a new created level regarding the delta.- Parameters:
delta
- the index of the level in the list.- Returns:
- the number of levels.
-
getLevel
Returns the level at index inside the list.- Parameters:
index
- the index of the level in the list.- Returns:
- the level at the given index in the list.
-
getLevelList
Returns the list of levels.- Returns:
- the levels list.
-