Class BaseEntity

java.lang.Object
me.arcademadness.omni_dungeon.entities.BaseEntity
All Implemented Interfaces:
Entity
Direct Known Subclasses:
MobEntity, PlayerEntity

public abstract class BaseEntity extends Object implements Entity
  • Field Details

  • Constructor Details

    • BaseEntity

      public BaseEntity()
  • Method Details

    • getOccupiedTiles

      public Set<TileCoordinate> getOccupiedTiles()
      Description copied from interface: Entity
      Returns the set of tile coordinates currently occupied by this entity.
      Specified by:
      getOccupiedTiles in interface Entity
      Returns:
      a Set of TileCoordinate representing the occupied tiles
    • getHealth

      public Health getHealth()
      Description copied from interface: Entity
      Returns the entity's health attribute.
      Specified by:
      getHealth in interface Entity
      Returns:
      the Health of the entity
    • getArmor

      public Armor getArmor()
      Description copied from interface: Entity
      Returns the entity's armor attribute.
      Specified by:
      getArmor in interface Entity
      Returns:
      the Armor of the entity
    • getMana

      public Mana getMana()
      Description copied from interface: Entity
      Returns the entity's mana attribute.
      Specified by:
      getMana in interface Entity
      Returns:
      the Mana of the entity
    • getActionPoints

      public ActionPoints getActionPoints()
      Description copied from interface: Entity
      Returns the entity's action points attribute.
      Specified by:
      getActionPoints in interface Entity
      Returns:
      the ActionPoints of the entity
    • getInventory

      public Inventory getInventory()
      Description copied from interface: Entity
      Returns the entity's inventory component.
      Specified by:
      getInventory in interface Entity
      Returns:
      the Inventory of the entity
    • getLocation

      public Location getLocation()
      Description copied from interface: Entity
      Returns the entity's location component.
      Specified by:
      getLocation in interface Entity
      Returns:
      the Location of the entity
    • getController

      public Controller getController()
      Description copied from interface: Entity
      Returns the controller responsible for this entity.
      Specified by:
      getController in interface Entity
      Returns:
      the Controller controlling this entity
    • setController

      public void setController(Controller newController)
      Description copied from interface: Entity
      Sets the controller responsible for this entity.
      Specified by:
      setController in interface Entity
      Parameters:
      newController - the Controller to assign to this entity
    • getVelocity

      public com.badlogic.gdx.math.Vector2 getVelocity()
      Description copied from interface: Entity
      Returns the current velocity of the entity.
      Specified by:
      getVelocity in interface Entity
      Returns:
      a Vector2 representing the entity's velocity
    • setVelocity

      public void setVelocity(com.badlogic.gdx.math.Vector2 velocity)
      Description copied from interface: Entity
      Sets the entity's velocity.
      Specified by:
      setVelocity in interface Entity
      Parameters:
      velocity - a Vector2 representing the new velocity
    • getAcceleration

      public Acceleration getAcceleration()
      Description copied from interface: Entity
      Returns the entity's acceleration attribute.
      Specified by:
      getAcceleration in interface Entity
      Returns:
      the Acceleration of the entity
    • getFriction

      public Friction getFriction()
      Description copied from interface: Entity
      Returns the entity's friction attribute.
      Specified by:
      getFriction in interface Entity
      Returns:
      the Friction of the entity
    • getMaxSpeed

      public MaxSpeed getMaxSpeed()
      Description copied from interface: Entity
      Returns the entity's maximum speed attribute.
      Specified by:
      getMaxSpeed in interface Entity
      Returns:
      the MaxSpeed of the entity
    • getRootPart

      public EntityPart getRootPart()
      Description copied from interface: Entity
      Returns the root part of the entity's structure.
      Specified by:
      getRootPart in interface Entity
      Returns:
      the EntityPart representing the root of the entity
    • setRootPart

      public void setRootPart(EntityPart rootPart)
      Description copied from interface: Entity
      Sets the root part of the entity's structure.
      Specified by:
      setRootPart in interface Entity
      Parameters:
      rootPart - the EntityPart to set as root
    • getEnvironment

      @Nullable public @Nullable EnvironmentView getEnvironment()
      Description copied from interface: Entity
      Returns the entity's current view of the environment.
      Specified by:
      getEnvironment in interface Entity
      Returns:
      the EnvironmentView associated with this entity
    • setEnvironment

      public void setEnvironment(EnvironmentView environment)
      Description copied from interface: Entity
      Sets the entity's view of the environment.
      Specified by:
      setEnvironment in interface Entity
      Parameters:
      environment - the EnvironmentView to associate with this entity