- GameEngine - Class in engine
-
This class acts as the engine of the game.
- GameEngine(GameWindow, int, String) - Constructor for class engine.GameEngine
-
This constructor creates a game in the given window with the given number of enemies and in the specified game mode
It creates ArrayLists with initial estimations of size and creates a player and spawn enemies.
- GameEngine(GameWindow, int) - Constructor for class engine.GameEngine
-
This constructor creates a game in the given window with the given number of enemies and in the default game mode Limited.
- gameEngine - Static variable in class tier.GameTier
-
- gameMode - Variable in class engine.GameEngine
-
- GameObject - Interface in gameobjects
-
This interface defines many of any game object methods.
- gameobjects - package gameobjects
-
- GamePanel() - Constructor for class rendering.GameWindow.GamePanel
-
This constructor initlizes GamePanel and adds listeners
- GameTier - Class in tier
-
Class that ties the game parts together (engine and window).
- GameTier() - Constructor for class tier.GameTier
-
- gameWindow - Variable in class engine.GameEngine
-
- GameWindow - Class in rendering
-
Class that handles the window, including the menus and the game scene.
- GameWindow() - Constructor for class rendering.GameWindow
-
This constructor specifies the frame's values and adds all the panels in a cardlayout.
- gameWindow - Static variable in class tier.GameTier
-
- GameWindow.GamePanel - Class in rendering
-
This inner class is the actual game panel.
- getCenter() - Method in class gameobjects.AbstractGameObject
-
- getCenter() - Method in interface gameobjects.GameObject
-
This method gets the center as a point.
- getDirection() - Method in class gameobjects.AbstractGameObject
-
- getDirection() - Method in interface gameobjects.GameObject
-
This method gets the direction as a point.
- getGameObjects() - Method in class engine.GameEngine
-
This method returns the game objects list.
- getGameWindow() - Method in class engine.GameEngine
-
This method returns the actual game panel.
- getHealthPoints() - Method in class gameobjects.AbstractGameObject
-
- getHealthPoints() - Method in interface gameobjects.GameObject
-
This method returns the number of HP.
- getHeight() - Method in class gameobjects.AbstractGameObject
-
- getHeight() - Method in interface gameobjects.GameObject
-
This method gets the height of the sprite.
- getImage() - Method in class gameobjects.AbstractGameObject
-
- getImage() - Method in interface gameobjects.GameObject
-
This method gets the sprite (BufferedImage).
- getInGamePanel() - Method in class rendering.GameWindow
-
This method is used to get the actual game panel.
- getKillCount() - Method in class engine.GameEngine
-
This method returns the kill count.
- getPlayer() - Method in class engine.GameEngine
-
This method return the palyer.
- getPosition() - Method in class gameobjects.AbstractGameObject
-
- getPosition() - Method in interface gameobjects.GameObject
-
This method get the position.
- getShooter() - Method in class gameobjects.Bullet
-
This method returns the shooter to custody
- getWidth() - Method in class gameobjects.AbstractGameObject
-
- getWidth() - Method in interface gameobjects.GameObject
-
This method gets the width of the sptie.
- getXCenter() - Method in class gameobjects.AbstractGameObject
-
- getXCenter() - Method in interface gameobjects.GameObject
-
This method gets the center on x-axis.
- getXDirection() - Method in class gameobjects.AbstractGameObject
-
- getXDirection() - Method in interface gameobjects.GameObject
-
This method get the directoin on x-axis.
- getXPosition() - Method in class gameobjects.AbstractGameObject
-
- getXPosition() - Method in interface gameobjects.GameObject
-
This method get the position on x-axis.
- getXVelocity() - Method in class gameobjects.AbstractGameObject
-
- getXVelocity() - Method in interface gameobjects.GameObject
-
This method get the velocity on x-axis.
- getYCenter() - Method in class gameobjects.AbstractGameObject
-
- getYCenter() - Method in interface gameobjects.GameObject
-
This method get the center on y-axis.
- getYDirection() - Method in class gameobjects.AbstractGameObject
-
- getYDirection() - Method in interface gameobjects.GameObject
-
This method get the directoin on y-axis.
- getYPosition() - Method in class gameobjects.AbstractGameObject
-
- getYPosition() - Method in interface gameobjects.GameObject
-
This method get the position on y-axis.
- getYVelocity() - Method in class gameobjects.AbstractGameObject
-
- getYVelocity() - Method in interface gameobjects.GameObject
-
This method get the velocity on y-axis.
- gotHit() - Method in class gameobjects.AbstractGameObject
-
This method is called if the object got hit, decreasing it's HP by 1.
- gotHit() - Method in interface gameobjects.GameObject
-
The method informs the object that it's been hit to take appropriate action.
- main(String[]) - Static method in class tier.GameTier
-
- makeDead() - Method in class gameobjects.AbstractGameObject
-
This method makes te object dead.
- makeDead() - Method in interface gameobjects.GameObject
-
This method makes the object dead.
- manDown(AbstractGameObject) - Method in class engine.GameEngine
-
The method is called by an object if it's dead.
- maxXVelocity - Static variable in class gameobjects.PlayerShip
-
- maxYVelocity - Static variable in class gameobjects.PlayerShip
-
- move() - Method in class gameobjects.AbstractGameObject
-
This method moves the object.
- move() - Method in interface gameobjects.GameObject
-
This method moves the object.
- moveDirection() - Method in class gameobjects.AbstractEnemyShip
-
This method makes it so the ship always points toward its target's center
- moveDirection() - Method in class gameobjects.AbstractGameObject
-
- moveDirection() - Method in class gameobjects.AbstractShip
-
- moveDirection() - Method in class gameobjects.Bullet
-
This method overrides moveDirection() as to not do anything.
- moveDirection() - Method in interface gameobjects.GameObject
-
This method moves the object only in terms of direction (rotation).
- moveDirection() - Method in class gameobjects.PlayerShip
-
This method makes the player directoin the same as the mouse
- movementKeyPressed(KeyEvent) - Method in class gameobjects.PlayerShip
-
This method handles key controls for movement.
- movementKeyReleased(KeyEvent) - Method in class gameobjects.PlayerShip
-
This method handles key controls for stoppig movement.
- movePosition() - Method in class gameobjects.AbstractGameObject
-
- movePosition() - Method in class gameobjects.AbstractShip
-
Moves the position of the ship by increasing position with velocity.
- movePosition() - Method in class gameobjects.Bullet
-
Moves the position of the bullet by increasing its position with the fixed velocity.
- movePosition() - Method in class gameobjects.FollowerEnemyShip
-
This method makes this ship changes position toward its target, following it
- movePosition() - Method in interface gameobjects.GameObject
-
This method moves the object only in term of position.
- movePosition() - Method in class gameobjects.ShooterEnemyShip
-
This method is empty.
- setBackgroundLocation(String) - Method in class rendering.GameWindow
-
This method sets the background given a location.
- setDirection(Point2D) - Method in class gameobjects.AbstractGameObject
-
- setDirection(Point2D) - Method in interface gameobjects.GameObject
-
This method sets the direction from a point.
- setDirectionToward(Point2D) - Method in class gameobjects.AbstractGameObject
-
This method sets the directoin toward a point.
- setDirectionToward(Point2D) - Method in interface gameobjects.GameObject
-
This method sets the directoin toward a point.
- setGameObjects(ArrayList<AbstractGameObject>) - Method in class rendering.GameWindow.GamePanel
-
This method sets the game objects.
- setGameObjects(ArrayList<AbstractGameObject>) - Method in class rendering.GameWindow
-
This method passes the game objects list to the game panel.
- setHealthPoints(int) - Method in class gameobjects.AbstractGameObject
-
- setHealthPoints(int) - Method in interface gameobjects.GameObject
-
This method sets the number of HP.
- setImage(BufferedImage) - Method in class gameobjects.AbstractGameObject
-
- setImage(BufferedImage) - Method in interface gameobjects.GameObject
-
This method sets the sprite (BufferedImage).
- setImageLocation(String) - Method in class gameobjects.AbstractGameObject
-
- setImageLocation(String) - Method in interface gameobjects.GameObject
-
This method sets the sprite given the location of the image.
- setPlayer(PlayerShip) - Method in class rendering.GameWindow.GamePanel
-
This method sets the player and calculates the appropriate location for HP and score to be painted.
- setPlayer(PlayerShip) - Method in class rendering.GameWindow
-
This method passes the player to the game panel.
- setPosition(Point2D.Double) - Method in class gameobjects.AbstractGameObject
-
- setPosition(Point2D.Double) - Method in interface gameobjects.GameObject
-
This method sets the position.
- setXDirection(double) - Method in class gameobjects.AbstractGameObject
-
- setXDirection(double) - Method in interface gameobjects.GameObject
-
This method sets the directoin on x-axis.
- setXPosition(double) - Method in class gameobjects.AbstractGameObject
-
- setXPosition(double) - Method in interface gameobjects.GameObject
-
This method sets the position on x-axis.
- setXVelocity(double) - Method in class gameobjects.AbstractGameObject
-
- setXVelocity(double) - Method in interface gameobjects.GameObject
-
This method sets the velocity on x-axis.
- setYDirection(double) - Method in class gameobjects.AbstractGameObject
-
- setYDirection(double) - Method in interface gameobjects.GameObject
-
This method sets the directoin on y-axis.
- setYPosition(double) - Method in class gameobjects.AbstractGameObject
-
- setYPosition(double) - Method in interface gameobjects.GameObject
-
This method sets the position on y-axis.
- setYVelocity(double) - Method in class gameobjects.AbstractGameObject
-
- setYVelocity(double) - Method in interface gameobjects.GameObject
-
This method sets the velocity on y-axis.
- shoot() - Method in class gameobjects.PlayerShip
-
This method is responisble for firing bullets.
- shoot() - Method in interface gameobjects.Shooter
-
This method is responisble for firing bullets.
- shoot() - Method in class gameobjects.ShooterEnemyShip
-
This method is responisble for firing bullets.
- Shooter - Interface in gameobjects
-
This interface defines the shooting functions.
- ShooterEnemyShip - Class in gameobjects
-
This class defines an enemy type.
- ShooterEnemyShip(int, String, AbstractGameObject, Point2D.Double) - Constructor for class gameobjects.ShooterEnemyShip
-
This constructor takes HP, sprite location, target, and position
- ShooterEnemyShip(AbstractGameObject, Point2D.Double) - Constructor for class gameobjects.ShooterEnemyShip
-
This is the same constructor but it sets HP and sprite location to the static variables of those values
- startGame(String, String) - Static method in class tier.GameTier
-
This method is used to start the game.
- STILL_GOING - Static variable in class engine.GameEngine
-