Class Prop

All Implemented Interfaces:
EntityRenderedListener, EntityRenderListener, ICollisionEntity, ICombatEntity, IEntity, Tweenable, EventListener

public class Prop extends CombatEntity
  • Constructor Details

    • Prop

      public Prop(String spritesheetName)
      Instantiates a new Prop entity.
      Parameters:
      spritesheetName - The spritesheet name of this prop.
    • Prop

      public Prop(double x, double y, String spritesheetName)
      Instantiates a new Prop entity.
      Parameters:
      x - The x-coordinate of this prop.
      y - The y-coordinate of this prop.
      spritesheetName - The spritesheet name of this prop.
    • Prop

      public Prop(double x, double y, String spritesheetName, Material material)
      Instantiates a new Prop entity.
      Parameters:
      x - The x-coordinate of this prop.
      y - The y-coordinate of this prop.
      spritesheetName - The spritesheet name of this prop.
      material - The material of this prop.
    • Prop

      public Prop(Point2D location, String spritesheetName)
      Instantiates a new Prop entity.
      Parameters:
      location - The location of this prop.
      spritesheetName - The spritesheet name of this prop.
    • Prop

      public Prop(Point2D location, String spritesheetName, Material material)
      Instantiates a new Prop entity.
      Parameters:
      location - The location of this prop.
      spritesheetName - The spritesheet name of this prop.
      material - The material of this prop.
  • Method Details

    • getMaterial

      public Material getMaterial()
    • getSpritesheetName

      public String getSpritesheetName()
    • getState

      public PropState getState()
      Gets the state.
      Returns:
      the state
    • isAddShadow

      public boolean isAddShadow()
    • isScaling

      public boolean isScaling()
    • flipHorizontally

      public boolean flipHorizontally()
    • flipVertically

      public boolean flipVertically()
    • getSpriteRotation

      public Rotation getSpriteRotation()
    • setMaterial

      public void setMaterial(Material material)
    • setSpritesheetName

      public void setSpritesheetName(String spriteName)
    • setAddShadow

      public void setAddShadow(boolean addShadow)
    • setScaling

      public void setScaling(boolean scaling)
    • isDead

      public boolean isDead()
      Description copied from class: CombatEntity
      Checks if is dead.
      Specified by:
      isDead in interface ICombatEntity
      Overrides:
      isDead in class CombatEntity
      Returns:
      true, if is dead
    • setSpriteRotation

      public void setSpriteRotation(Rotation spriteRotation)
    • setFlipHorizontally

      public void setFlipHorizontally(boolean flipHorizontally)
    • setFlipVertically

      public void setFlipVertically(boolean flipVertically)
    • toString

      public String toString()
      Overrides:
      toString in class Entity
    • createAnimationController

      protected IEntityAnimationController<?> createAnimationController()