Class ShotEntity

All Implemented Interfaces:
EventListener, EntityEventListener
Direct Known Subclasses:
AlienShotEntity

public class ShotEntity extends AnimatedEntity
An entity representing a shot fired by the player's ship
  • Constructor Details

    • ShotEntity

      public ShotEntity(int x, int y)
      Create a new shot from the player
      Parameters:
      x - The initial x location of the shot
      y - The initial y location of the shot
      game - The game in which the shot has been created
      sprite - The sprite representing this shot
    • ShotEntity

      public ShotEntity(int x, int y, double yMoveSpeed)
      Create a new shot from the player
      Parameters:
      x - The initial x location of the shot
      y - The initial y location of the shot
      game - The game in which the shot has been created
      sprite - The sprite representing this shot
  • Method Details