Class ResourceDropOffPoint

java.lang.Object
idlab.colonyops.model.entities.AbstractEntity
idlab.colonyops.model.entities.ResourceDropOffPoint
All Implemented Interfaces:
DamageableEntity, Entity

public class ResourceDropOffPoint extends AbstractEntity implements DamageableEntity
An additional resource collection point deployed via the OrbitalCallInCommand.DEPLOY_RESOURCE_DROP_OFF call-in, saving squad members a potentially long trip back to the landing craft. Squad members deposit resources here the same way as at the landing craft.

Unlike the landing craft, a drop-off point has health points and can be destroyed by enemies.

  • Constructor Details

    • ResourceDropOffPoint

      public ResourceDropOffPoint()
    • ResourceDropOffPoint

      public ResourceDropOffPoint(String id, Location location, String colonyId, int healthPoints, int maxHealthPoints)
  • Method Details

    • getHealthPoints

      public int getHealthPoints()
      Specified by:
      getHealthPoints in interface DamageableEntity
    • setHealthPoints

      public void setHealthPoints(int healthPoints)
      Specified by:
      setHealthPoints in interface DamageableEntity
    • getMaxHealthPoints

      public int getMaxHealthPoints()
    • setMaxHealthPoints

      public void setMaxHealthPoints(int maxHealthPoints)
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface DamageableEntity
      Returns:
      true if health points are above zero
    • applyDamage

      public void applyDamage(int damage)
      Description copied from interface: DamageableEntity
      Reduces health points by damage, clamped to zero.
      Specified by:
      applyDamage in interface DamageableEntity
      Parameters:
      damage - the amount of HP to remove