Class ShipEntity

java.lang.Object
model.Entity
model.ShipEntity
All Implemented Interfaces:
EventListener, EntityEventListener

public class ShipEntity extends Entity implements EntityEventListener
The entity that represents the players ship
  • Constructor Details

    • ShipEntity

      public ShipEntity(int x, int y)
      Create a new entity to represent the players ship
      Parameters:
      x - The initial x location of the player's ship
      y - The initial y location of the player's ship
      game - The game in which the ship is being created
      ref - The reference to the sprite to show for the ship
  • Method Details