Class GameObject

Direct Known Subclasses:
Entity, Tile

public class GameObject extends EngineObject
  • Constructor Details

    • GameObject

      public GameObject()
  • Method Details

    • getVelocity

      public Vector2D getVelocity()
      Velocity is the speed in combination with the direction of motion of the object.
      Returns:
      vector velocity
    • setVelocity

      public void setVelocity(Vector2D velocity)
      Velocity is the speed in combination with the direction of motion of the object.
      Parameters:
      velocity - vector with x and y its moving in
    • getGameLocation

      public GameLocation getGameLocation()
      GameLocation is the location in game.
      Returns:
      game location
    • setGameLocation

      public void setGameLocation(GameLocation gameLocation)
      GameLocation is the location in game.
      Parameters:
      gameLocation - game location. not Vector2D.