Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ActiveEntities - Interface in pvzclone.model.api
-
This interface models the methods for Zombies and Plants.
- APPLICATION_HEIGHT - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Application Height.
- APPLICATION_TITLE - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Application Title.
- APPLICATION_WIDTH - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Application Width.
- areZombieAllKilled() - Method in interface pvzclone.model.api.GameState
- areZombieAllKilled() - Method in class pvzclone.model.impl.GameStateImpl
B
- Bullet - Interface in pvzclone.model.api
-
interface for the bullet.
- BulletImpl - Class in pvzclone.model.impl
-
Class that implements the interface Bullet.
- BulletImpl(Integer, double, Pair<Integer, Integer>, String) - Constructor for class pvzclone.model.impl.BulletImpl
C
- callMainloop() - Method in interface pvzclone.controller.api.Controller
-
Calls the main loop of the game.
- callMainloop() - Method in class pvzclone.controller.impl.ControllerImpl
- CELL_HEIGHT - Static variable in class pvzclone.view.impl.GamePanel
-
Field Cell Height.
- CELL_TEXT_INITIALIZER - Static variable in class pvzclone.view.impl.FieldCell
-
Cell Text Initializer, used for
JButton(String)
. - CELL_WIDTH - Static variable in class pvzclone.view.impl.GamePanel
-
Field Cell Width.
- cellHover(boolean) - Method in class pvzclone.view.impl.FieldCell
-
Set a plant to the cell.
- chooseLevel(int) - Method in interface pvzclone.controller.api.Controller
-
Sets the number of the Level to the number of the argument passed.
- chooseLevel(int) - Method in class pvzclone.controller.impl.ControllerImpl
- Controller - Interface in pvzclone.controller.api
-
This interface models a Controller for the game.
- ControllerImpl - Class in pvzclone.controller.impl
-
Class that implements the Controller.
- ControllerImpl() - Constructor for class pvzclone.controller.impl.ControllerImpl
-
Initializes the game.
- createEntities(int) - Method in interface pvzclone.model.api.EntitiesFactory
-
Generates a Set of Entities.
- createEntities(int) - Method in class pvzclone.model.impl.SunsFactory
- createEntities(int) - Method in class pvzclone.model.impl.ZombiesFactory
- createEntity() - Method in interface pvzclone.model.api.EntitiesFactory
-
Generates an Entity.
- createEntity() - Method in class pvzclone.model.impl.SunsFactory
- createEntity() - Method in class pvzclone.model.impl.ZombiesFactory
- createLevel(int) - Method in class pvzclone.model.impl.LevelsManager
-
Returns a new created level regarding the delta.
- createPlant(Pair<Integer, Integer>) - Method in interface pvzclone.model.api.Game
-
Create a new plant.
- createPlant(Pair<Integer, Integer>) - Method in class pvzclone.model.impl.GameImpl
D
- decSunScore(int) - Method in interface pvzclone.model.api.GameState
-
Decrements the sun points.
- decSunScore(int) - Method in class pvzclone.model.impl.GameStateImpl
E
- endGame(boolean) - Method in class pvzclone.view.impl.GamePanel
-
Shows the End Game Scene.
- endGame(Optional<Boolean>) - Method in interface pvzclone.view.api.View
-
The End Game handler.
- endGame(Optional<Boolean>) - Method in class pvzclone.view.impl.SwingViewImpl
- Entities - Interface in pvzclone.model.api
-
This interface models a generic entity.
- EntitiesFactory - Interface in pvzclone.model.api
-
Factory Pattern for auomatically generated Entities, such as Zombies and Suns.
- equals(Object) - Method in class pvzclone.model.impl.Pair
F
- FieldCell - Class in pvzclone.view.impl
-
Cell used in Game Panel for placing Plants Entities.
- FieldCell(GamePanel, Pair<Integer, Integer>, String, Controller) - Constructor for class pvzclone.view.impl.FieldCell
-
Field Cell Constructor.
- FieldCellListener - Class in pvzclone.view.impl
-
Mouse Event Listener for the
FieldCell
Component. - FieldCellListener(FieldCell) - Constructor for class pvzclone.view.impl.FieldCellListener
-
Field Cell Listener Constructor.
G
- Game - Interface in pvzclone.model.api
-
This interface models a Game.
- GAME_PANEL_CONSTRAINT - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Game Panel's Textual Constraint.
- GameImpl - Class in pvzclone.model.impl
-
class that implements the interface Game.
- GameImpl(World) - Constructor for class pvzclone.model.impl.GameImpl
- GamePanel - Class in pvzclone.view.impl
-
Panel used in the Gameplay Section.
- GamePanel(SwingViewImpl, String) - Constructor for class pvzclone.view.impl.GamePanel
-
Game Panel Constructor.
- GameState - Interface in pvzclone.model.api
-
This interface models a GameState.
- GameStateImpl - Class in pvzclone.model.impl
-
Class that implements GameState.
- GameStateImpl(int) - Constructor for class pvzclone.model.impl.GameStateImpl
-
Constructor of GameStateImpl.
- GenericPanel - Class in pvzclone.view.impl
-
Abstract class for Panels, with a pre-setted Constructor.
- GenericPanel(SwingViewImpl, String) - Constructor for class pvzclone.view.impl.GenericPanel
-
Panel Constructor.
- getBackgroundImage() - Method in class pvzclone.view.impl.GenericPanel
-
Background Getter.
- getChosenLevel() - Method in interface pvzclone.controller.api.Controller
-
Retrieves the number of the chosen level if the level was chosen, if not it returns an empty Optional.
- getChosenLevel() - Method in class pvzclone.controller.impl.ControllerImpl
- getController() - Method in interface pvzclone.view.api.View
-
Returns the controller associated with the view.
- getController() - Method in class pvzclone.view.impl.SwingViewImpl
-
Returns the Application's
Controller
. - getCooldown() - Method in interface pvzclone.model.api.ActiveEntities
- getCooldown() - Method in class pvzclone.model.impl.PlantImpl
- getCooldown() - Method in class pvzclone.model.impl.ZombieImpl
- getCoord() - Method in class pvzclone.view.impl.FieldCell
-
Returns the center coordinate of the FieldCell.
- getDamage() - Method in interface pvzclone.model.api.ActiveEntities
- getDamage() - Method in interface pvzclone.model.api.Bullet
- getDamage() - Method in class pvzclone.model.impl.BulletImpl
- getDamage() - Method in class pvzclone.model.impl.PlantImpl
- getDamage() - Method in class pvzclone.model.impl.ZombieImpl
- getEntities() - Method in interface pvzclone.controller.api.Controller
-
Retrieves the set of entities in the game.
- getEntities() - Method in class pvzclone.controller.impl.ControllerImpl
- getEntities() - Method in interface pvzclone.model.api.Game
-
Retrieves the set of entities present in the game.
- getEntities() - Method in class pvzclone.model.impl.GameImpl
- getEntityName() - Method in interface pvzclone.model.api.Entities
- getEntityName() - Method in class pvzclone.model.impl.BulletImpl
- getEntityName() - Method in class pvzclone.model.impl.PlantImpl
- getEntityName() - Method in class pvzclone.model.impl.SunImpl
- getEntityName() - Method in class pvzclone.model.impl.ZombieImpl
- getGame() - Method in interface pvzclone.model.api.World
- getGame() - Method in class pvzclone.model.impl.WorldImpl
- getGameState() - Method in interface pvzclone.model.api.Game
-
Retrieves the current state of the game.
- getGameState() - Method in class pvzclone.model.impl.GameImpl
- getKilledZombies() - Method in interface pvzclone.model.api.GameState
- getKilledZombies() - Method in class pvzclone.model.impl.GameStateImpl
- getLastTimeAttack() - Method in interface pvzclone.model.api.ActiveEntities
- getLastTimeAttack() - Method in class pvzclone.model.impl.PlantImpl
- getLastTimeAttack() - Method in class pvzclone.model.impl.ZombieImpl
- getLevel() - Method in interface pvzclone.model.api.World
- getLevel() - Method in class pvzclone.model.impl.WorldImpl
- getLevel(Optional<Integer>) - Method in class pvzclone.model.impl.LevelsManager
-
Returns the level at index inside the list.
- getLevelCount() - Method in interface pvzclone.controller.api.Controller
-
Returns the number of levels available in the application.
- getLevelCount() - Method in class pvzclone.controller.impl.ControllerImpl
- getLevelCount() - Method in class pvzclone.model.impl.LevelsManager
-
Returns the number of levels.
- getLevelList() - Method in class pvzclone.model.impl.LevelsManager
-
Returns the list of levels.
- getLevelsManager() - Method in interface pvzclone.model.api.World
- getLevelsManager() - Method in class pvzclone.model.impl.WorldImpl
- getPlantCost() - Method in interface pvzclone.model.api.Plant
-
Returns the cost of the plant.
- getPlantCost() - Method in class pvzclone.model.impl.PlantImpl
- getPoints() - Method in interface pvzclone.model.api.Sun
- getPoints() - Method in class pvzclone.model.impl.SunImpl
- getPosition() - Method in interface pvzclone.model.api.Entities
- getPosition() - Method in class pvzclone.model.impl.BulletImpl
- getPosition() - Method in class pvzclone.model.impl.PlantImpl
- getPosition() - Method in class pvzclone.model.impl.SunImpl
- getPosition() - Method in class pvzclone.model.impl.ZombieImpl
- getRemainingLife() - Method in interface pvzclone.model.api.ActiveEntities
- getRemainingLife() - Method in class pvzclone.model.impl.PlantImpl
- getRemainingLife() - Method in class pvzclone.model.impl.ZombieImpl
- getScale() - Method in interface pvzclone.view.api.View
-
Returns the scaled X and Y relative to their original dimensions.
- getScale() - Method in class pvzclone.view.impl.SwingViewImpl
- getSceneConstraint() - Method in interface pvzclone.view.api.View
-
Gets the current scene.
- getSceneConstraint() - Method in class pvzclone.view.impl.SwingViewImpl
-
Returns the actual scene constraint.
- getSpeed() - Method in interface pvzclone.model.api.Bullet
- getSpeed() - Method in class pvzclone.model.impl.BulletImpl
- getSunScore() - Method in interface pvzclone.controller.api.Controller
-
Retrieves the points from the GameState.
- getSunScore() - Method in class pvzclone.controller.impl.ControllerImpl
- getSunScore() - Method in interface pvzclone.model.api.GameState
- getSunScore() - Method in class pvzclone.model.impl.GameStateImpl
- getSunSpawnRate() - Method in interface pvzclone.model.api.Level
-
Returns the sun spawn rate.
- getSunSpawnRate() - Method in class pvzclone.model.impl.LevelImpl
- getSunSpawnRateDecrementRange() - Method in interface pvzclone.model.api.Level
-
Returns the sun decrement spawn rate.
- getSunSpawnRateDecrementRange() - Method in class pvzclone.model.impl.LevelImpl
- getView() - Method in class pvzclone.view.impl.GenericPanel
-
View Getter.
- getWinState() - Method in interface pvzclone.model.api.GameState
-
Returns the win state at the end of the Game.
- getWinState() - Method in class pvzclone.model.impl.GameStateImpl
- getX() - Method in class pvzclone.model.impl.Pair
-
Returns the first element of the Pair Object.
- getY() - Method in class pvzclone.model.impl.Pair
-
Returns the second element of the Pair Object.
- getZombieCount() - Method in interface pvzclone.model.api.Level
-
Returns the number of zombies in one level.
- getZombieCount() - Method in class pvzclone.model.impl.LevelImpl
- getZombieCountInWave() - Method in interface pvzclone.model.api.Level
-
Returns the number of zombies in a wave in the level.
- getZombieCountInWave() - Method in class pvzclone.model.impl.LevelImpl
- getZombiesGenerated() - Method in interface pvzclone.model.api.GameState
- getZombiesGenerated() - Method in class pvzclone.model.impl.GameStateImpl
- getZombieSpawnRate() - Method in interface pvzclone.model.api.Level
-
Returns the zombie spawn rate.
- getZombieSpawnRate() - Method in class pvzclone.model.impl.LevelImpl
- getZombieSpawnRateDecrementRange() - Method in interface pvzclone.model.api.Level
-
Returns the zombie decrement spawn rate.
- getZombieSpawnRateDecrementRange() - Method in class pvzclone.model.impl.LevelImpl
- getZombieWaveCount() - Method in interface pvzclone.model.api.Level
-
Returns the number of zombie waves in one level.
- getZombieWaveCount() - Method in class pvzclone.model.impl.LevelImpl
H
- hashCode() - Method in class pvzclone.model.impl.Pair
- hasPlant() - Method in class pvzclone.view.impl.FieldCell
-
Has the cell a plant?
- hideGrid() - Method in class pvzclone.view.impl.GamePanel
-
Hides all grid elements by removing them from the container.
I
- incKilledZombies() - Method in interface pvzclone.model.api.GameState
-
Increases the number of Zombies killed.
- incKilledZombies() - Method in class pvzclone.model.impl.GameStateImpl
- increaseSunPoints() - Method in interface pvzclone.controller.api.Controller
-
Increases the points obtained by the suns in GameState.
- increaseSunPoints() - Method in class pvzclone.controller.impl.ControllerImpl
- incSunScore() - Method in interface pvzclone.model.api.GameState
-
Increases the sun points obtained.
- incSunScore() - Method in class pvzclone.model.impl.GameStateImpl
- incZombiesGenerated() - Method in interface pvzclone.model.api.GameState
-
Increases the number of Zombies generated.
- incZombiesGenerated() - Method in class pvzclone.model.impl.GameStateImpl
- isAlive() - Method in interface pvzclone.model.api.Entities
- isAlive() - Method in class pvzclone.model.impl.BulletImpl
- isAlive() - Method in class pvzclone.model.impl.PlantImpl
- isAlive() - Method in class pvzclone.model.impl.SunImpl
- isAlive() - Method in class pvzclone.model.impl.ZombieImpl
- isCanGo() - Method in interface pvzclone.model.api.Zombie
- isCanGo() - Method in class pvzclone.model.impl.ZombieImpl
- isOver() - Method in interface pvzclone.model.api.Game
-
Checks if the game is over.
- isOver() - Method in class pvzclone.model.impl.GameImpl
- isUserPlanting() - Method in class pvzclone.view.impl.GamePanel
-
GamePanel.userIsPlanting
getter.
K
- kill() - Method in interface pvzclone.model.api.Sun
-
It kills the sun.
- kill() - Method in class pvzclone.model.impl.SunImpl
L
- Level - Interface in pvzclone.model.api
-
This interface models a Level.
- LEVEL_PANEL_CONSTRAINT - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Level Panel's Textual Constraint.
- LevelImpl - Class in pvzclone.model.impl
-
Class that implements a Level.
- LevelImpl(int, int, long, long, long, long) - Constructor for class pvzclone.model.impl.LevelImpl
-
Constructor of the Level Implementation.
- LevelPanel - Class in pvzclone.view.impl
-
Panel used to choose the level at the start of the application.
- LevelPanel(SwingViewImpl, String) - Constructor for class pvzclone.view.impl.LevelPanel
-
Level Panel Constructor.
- LevelsManager - Class in pvzclone.model.impl
-
Class used for Managing Levels in the Game.
- LevelsManager(int) - Constructor for class pvzclone.model.impl.LevelsManager
-
Constructor for LevelsManager.
M
- main(String[]) - Static method in class pvzclone.PvzStart
-
Main method to start the Plants Vs Zombies application.
- MENU_PANEL_CONSTRAINT - Static variable in class pvzclone.view.impl.SwingViewImpl
-
Menu Panel's Textual Constraint.
- MenuPanel - Class in pvzclone.view.impl
-
Panel used in the starting Menu Section.
- MenuPanel(SwingViewImpl, String) - Constructor for class pvzclone.view.impl.MenuPanel
-
Menu Panel Constructor.
- mouseClicked(MouseEvent) - Method in class pvzclone.view.impl.FieldCellListener
- mouseEntered(MouseEvent) - Method in class pvzclone.view.impl.FieldCellListener
-
When the mouse enters the fieldCell, HoverEvent = true.
- mouseExited(MouseEvent) - Method in class pvzclone.view.impl.FieldCellListener
-
When the mouse enters the fieldCell, HoverEvent = true.
- mousePressed(MouseEvent) - Method in class pvzclone.view.impl.FieldCellListener
- mouseReleased(MouseEvent) - Method in class pvzclone.view.impl.FieldCellListener
-
Click and Press Event.
- move() - Method in interface pvzclone.model.api.Bullet
-
moves the position of the bullet.
- move() - Method in class pvzclone.model.impl.BulletImpl
- moveDown() - Method in interface pvzclone.model.api.Sun
-
It changes the sun position in the y axis towards the bottom.
- moveDown() - Method in class pvzclone.model.impl.SunImpl
- moveLeft() - Method in interface pvzclone.model.api.Zombie
-
Moves Zombie to the left.
- moveLeft() - Method in class pvzclone.model.impl.ZombieImpl
N
- newPlant(Pair<Integer, Integer>) - Method in interface pvzclone.controller.api.Controller
-
this method communicates with the model telling him the position of the new plant.
- newPlant(Pair<Integer, Integer>) - Method in class pvzclone.controller.impl.ControllerImpl
P
- paintComponent(Graphics) - Method in class pvzclone.view.impl.GamePanel
-
Used for
JComponent.update(Graphics)
. - paintComponent(Graphics) - Method in class pvzclone.view.impl.LevelPanel
-
Used for
JComponent.update(Graphics)
. - paintComponent(Graphics) - Method in class pvzclone.view.impl.MenuPanel
-
Used for
JComponent.update(Graphics)
. - Pair<X,
Y> - Class in pvzclone.model.impl -
A standard generic Pair<X,Y>.
- Pair(X, Y) - Constructor for class pvzclone.model.impl.Pair
-
Pair Constructor.
- Plant - Interface in pvzclone.model.api
-
interface for the entity plant.
- PLANT_COST - Static variable in class pvzclone.model.impl.PlantImpl
-
is the cost of the plant.
- PlantImpl - Class in pvzclone.model.impl
-
class that implements Plant interface.
- PlantImpl(double, double, String, Pair<Integer, Integer>, long) - Constructor for class pvzclone.model.impl.PlantImpl
- pvzclone - package pvzclone
- pvzclone.controller.api - package pvzclone.controller.api
- pvzclone.controller.impl - package pvzclone.controller.impl
- pvzclone.model.api - package pvzclone.model.api
- pvzclone.model.impl - package pvzclone.model.impl
- pvzclone.view.api - package pvzclone.view.api
- pvzclone.view.impl - package pvzclone.view.impl
- PvzStart - Class in pvzclone
-
Plants Vs Zombies Application's Entry Point.
R
- receiveDamage(double) - Method in interface pvzclone.model.api.ActiveEntities
-
This method decreases Health Points.
- receiveDamage(double) - Method in class pvzclone.model.impl.PlantImpl
- receiveDamage(double) - Method in class pvzclone.model.impl.ZombieImpl
S
- setCanGo(boolean) - Method in interface pvzclone.model.api.Zombie
-
Sets the boolean based on whether the Zombie can move or not.
- setCanGo(boolean) - Method in class pvzclone.model.impl.ZombieImpl
- setGame(Game) - Method in interface pvzclone.model.api.World
-
Sets the game.
- setGame(Game) - Method in class pvzclone.model.impl.WorldImpl
- setLastTimeAttack(long) - Method in interface pvzclone.model.api.ActiveEntities
-
Sets the respective field.
- setLastTimeAttack(long) - Method in class pvzclone.model.impl.PlantImpl
- setLastTimeAttack(long) - Method in class pvzclone.model.impl.ZombieImpl
- setLevel(Level) - Method in interface pvzclone.model.api.World
-
Sets the level.
- setLevel(Level) - Method in class pvzclone.model.impl.WorldImpl
- setLevelsManager(LevelsManager) - Method in interface pvzclone.model.api.World
-
Sets the levels manager.
- setLevelsManager(LevelsManager) - Method in class pvzclone.model.impl.WorldImpl
- setPlant() - Method in class pvzclone.view.impl.FieldCell
-
Set a plant to the cell.
- setScene(String) - Method in interface pvzclone.view.api.View
-
Sets the current scene.
- setScene(String) - Method in class pvzclone.view.impl.SwingViewImpl
-
Sets a new Scene.
- setWinState(boolean) - Method in interface pvzclone.model.api.GameState
-
Sets the win state of the current game.
- setWinState(boolean) - Method in class pvzclone.model.impl.GameStateImpl
- showGrid() - Method in class pvzclone.view.impl.GamePanel
-
Displays all grid elements by adding them to the container.
- Sun - Interface in pvzclone.model.api
-
Interface that models a Sun Entity and provides methods to interact with the entity.
- SunImpl - Class in pvzclone.model.impl
-
Implementation of the Sun interface.
- SunImpl(Pair<Integer, Integer>, Integer) - Constructor for class pvzclone.model.impl.SunImpl
- SunsFactory - Class in pvzclone.model.impl
-
This class contains methods to create Sun entities.
- SunsFactory() - Constructor for class pvzclone.model.impl.SunsFactory
- SwingViewImpl - Class in pvzclone.view.impl
-
Implementation of the View.
- SwingViewImpl(Controller) - Constructor for class pvzclone.view.impl.SwingViewImpl
-
View Implementation Constructor.
T
- toString() - Method in class pvzclone.model.impl.Pair
U
- update() - Method in interface pvzclone.view.api.View
-
Updates the current scene.
- update() - Method in class pvzclone.view.impl.SwingViewImpl
-
Updates the View.
- update(long) - Method in interface pvzclone.model.api.Game
-
update the whole game.
- update(long) - Method in class pvzclone.model.impl.GameImpl
- userPlantingStatus(boolean) - Method in class pvzclone.view.impl.GamePanel
-
GamePanel.userIsPlanting
setter.
V
- View - Interface in pvzclone.view.api
-
View Interface, gets/sets the current Scene and updates it.
W
- World - Interface in pvzclone.model.api
-
Interface of the Model of the game.
- WorldImpl - Class in pvzclone.model.impl
-
Implementation of the World Interface.
- WorldImpl() - Constructor for class pvzclone.model.impl.WorldImpl
Z
- Zombie - Interface in pvzclone.model.api
-
This interface models a Zombie Entity.
- ZombieImpl - Class in pvzclone.model.impl
-
Class that implements Zombie Interface.
- ZombieImpl(double, long, int, double, Pair<Integer, Integer>) - Constructor for class pvzclone.model.impl.ZombieImpl
-
Constructor of Zombies.
- ZombiesFactory - Class in pvzclone.model.impl
-
Class that implements EntitiesFactory.
- ZombiesFactory() - Constructor for class pvzclone.model.impl.ZombiesFactory
-
Constructor of ZombiesFactory.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form