Class ResourceDropOffPoint
java.lang.Object
idlab.colonyops.model.entities.AbstractEntity
idlab.colonyops.model.entities.ResourceDropOffPoint
- All Implemented Interfaces:
DamageableEntity, Entity
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.
-
Field Summary
Fields inherited from class AbstractEntity
colonyId, id, location -
Constructor Summary
ConstructorsConstructorDescriptionResourceDropOffPoint(String id, Location location, String colonyId, int healthPoints, int maxHealthPoints) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDamage(int damage) Reduces health points bydamage, clamped to zero.intintbooleanisAlive()voidsetHealthPoints(int healthPoints) voidsetMaxHealthPoints(int maxHealthPoints) Methods inherited from class AbstractEntity
equals, getColonyId, getId, getLocation, hashCode, setColonyId, setId, setLocationMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Entity
getColonyId, getId, getLocation, setColonyId, setId, setLocation
-
Constructor Details
-
ResourceDropOffPoint
public ResourceDropOffPoint() -
ResourceDropOffPoint
-
-
Method Details
-
getHealthPoints
public int getHealthPoints()- Specified by:
getHealthPointsin interfaceDamageableEntity
-
setHealthPoints
public void setHealthPoints(int healthPoints) - Specified by:
setHealthPointsin interfaceDamageableEntity
-
getMaxHealthPoints
public int getMaxHealthPoints() -
setMaxHealthPoints
public void setMaxHealthPoints(int maxHealthPoints) -
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceDamageableEntity- Returns:
trueif health points are above zero
-
applyDamage
public void applyDamage(int damage) Description copied from interface:DamageableEntityReduces health points bydamage, clamped to zero.- Specified by:
applyDamagein interfaceDamageableEntity- Parameters:
damage- the amount of HP to remove
-