Package de.extio.spacecraft.shared.bo
Interface LootScatterer
-
public interface LootScatterer
Scatters loot in the close area of an entity, e.g. after the entity has been destroyed You can access the corresponding bean implementation via ServerFacade::getBusinessObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LootScatterer.ScatteringMode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LootContainer
scatter(int entityDefIdx, CoordI2 worldPos, int radius, double healthPerc, CoordD2 baseVelocityVector, Edge2 orientation, UUID droppedBy, GameSession gameSession)
Use this method to drop loot (e.g.List<LootContainer>
scatter(AbstractEntity entity, LootScatterer.ScatteringMode mode, GameSession gameSession)
Use this method to drop random loot
-
-
-
Method Detail
-
scatter
List<LootContainer> scatter(AbstractEntity entity, LootScatterer.ScatteringMode mode, GameSession gameSession)
Use this method to drop random loot
-
scatter
LootContainer scatter(int entityDefIdx, CoordI2 worldPos, int radius, double healthPerc, CoordD2 baseVelocityVector, Edge2 orientation, UUID droppedBy, GameSession gameSession)
Use this method to drop loot (e.g. after destroying an entity or ejecting stuff from storage)- Parameters:
entityDefIdx
- Entity def id of the dropworldPos
- Position where to dropradius
- Radius around position to drophealthPerc
- Health of drop, between 0.0 and 1.0baseVelocityVector
- Velocity vector of the drop (e.g. same as the ship that dropped it), will be slightly randomizedorientation
- Spatial orientation of the dropUUID
- of the composite entity that dropped the loot
-
-