All Implemented Interfaces:
Killer, Cloneable, Iterable<String>, Serializable

public class Wall extends AreaEntity
An entity that just acts as a visible obstacle like a wall.
  • Constructor Details

    • Wall

      public Wall(int width, int height)
      Create a wall.
      Parameters:
      width - width
      height - height
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • isObstacle

      public boolean isObstacle(Entity entity)
      Determine if this is an obstacle for another entity.
      Overrides:
      isObstacle in class Entity
      Parameters:
      entity - The entity to check against.
      Returns:
      true if the other entity is an RPEntity, otherwise the default.