Uses of Class
de.extio.spacecraft.shared.model.entity.AbstractEntity
-
Packages that use AbstractEntity Package Description de.extio.spacecraft.shared.bo Business objects implement various game mechanicsde.extio.spacecraft.shared.managers Managers implementing various game subsystemsde.extio.spacecraft.shared.model.client.settings The module settings mechanism is for controlling client modules.de.extio.spacecraft.shared.model.entity Business and data objects for the entity subsystem.de.extio.spacecraft.shared.model.entity.builtin.composite Builtin composite entity implementations and interfaces for custom implementationsde.extio.spacecraft.shared.model.entity.builtin.live Builtin live entity implementations and interfaces for custom implementations of specific entity typesde.extio.spacecraft.shared.model.entity.builtin.live.mod Base and builtin implementations of entity modsde.extio.spacecraft.shared.model.entity.builtin.live.scripting Implementations of scripting entities. -
-
Uses of AbstractEntity in de.extio.spacecraft.shared.bo
Methods in de.extio.spacecraft.shared.bo with parameters of type AbstractEntity Modifier and Type Method Description void
EntityModSupport. addEntityMod(int entityModDefIndex, AbstractEntity parent)
Path
PathFindingEntitySupport. clientGetPossibleMovePath(AbstractCompositeEntity compositeEntity, CoordI2 destination, AbstractEntity entity, boolean force)
Calculates a possible path to destinationboolean
PathFindingEntitySupport. clientPrepareMovePathPreview(AbstractCompositeEntity compositeEntity, AbstractEntity entity, CoordI2 destination)
static void
ClientDrawEntitySupport. drawEntity(AbstractEntity entity, CoordI2 absPosition, CoordI2 relPosition, RenderingBoLayer baseLayer_, ClientSelectionUtils clientSelectionUtils_, List<RenderingBo> drawEntityBoList_, boolean showSelection, boolean selectionZebraEffect, boolean showStatusIcons, List<RenderingBo> renderingBo)
Generates all RenderingBo to draw an entityboolean
PathFinder. isEntityAccessible(AbstractEntity entity, EntityDefManager entityDefManager, PathFindingOptions options)
Checks whether entity would block path findingvoid
EntityModSupport. localCopy(AbstractEntity other)
boolean
PathFindingEntitySupport. onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity selectedCompositeEntity, AbstractEntity selectedEntity, PhysicalEntity entity)
void
MeshConsumerSupport. onClientDrawEntityActions(List<RenderingBo> renderingBo, AbstractEntity entity)
void
PathFindingEntitySupport. onClientSelectedPointTo(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, PhysicalEntity entity, List<ClientEntityAction> outClientActions)
void
RestrictedEntitySurface. resetRestrictedWalls(AbstractEntity entity, AbstractCompositeEntity parent, UUID recipient)
Handles restricting entities, if you derive from core entities this is already integrated.List<LootContainer>
LootScatterer. scatter(AbstractEntity entity, LootScatterer.ScatteringMode mode, GameSession gameSession)
Use this method to drop random lootvoid
RestrictedEntitySurface. serverCleanupRestrictedEntities(AbstractCompositeEntity parent, AbstractEntity entity, GameSession gameSession)
Handles restricting entities, if you derive from core entities this is already integrated.void
RestrictedEntitySurface. serverCleanupRestrictedHullEntity(AbstractCompositeEntity parent, AbstractEntity entity, GameSession gameSession)
Handles restricting entities, if you derive from core entities this is already integrated.boolean
PathFindingEntitySupport. serverMoveEntity(GameSession gameSession, AbstractCompositeEntity parent, PhysicalEntity entity, AbstractEntity ignoreEntity)
void
RestrictedEntitySurface. serverPrepareRestrictedEntities(AbstractEntity entity, AbstractCompositeEntity parent, UUID recipient, GameSession gameSession)
Handles restricting entities, if you derive from core entities this is already integrated.void
RestrictedEntitySurface. serverPrepareRestrictedHullEntity(AbstractEntity entity, AbstractCompositeEntity parent, UUID recipient, GameSession gameSession, Consumer<AbstractEntity> processEntityConsumer)
Handles restricting entities, if you derive from core entities this is already integrated.void
EntityModSupport. update(AbstractEntity other, AbstractEntity parent)
void
PathFindingEntitySupport. update(AbstractEntity other)
Method parameters in de.extio.spacecraft.shared.bo with type arguments of type AbstractEntity Modifier and Type Method Description Matrix2<Integer>
EntityGroups. markEntityGroups(CoordI2 dimension, GridIndex2D<AbstractEntity> index, EntityGroupsOptions entityGroupsOptions)
void
RestrictedEntitySurface. serverPrepareRestrictedHullEntity(AbstractEntity entity, AbstractCompositeEntity parent, UUID recipient, GameSession gameSession, Consumer<AbstractEntity> processEntityConsumer)
Handles restricting entities, if you derive from core entities this is already integrated. -
Uses of AbstractEntity in de.extio.spacecraft.shared.managers
Methods in de.extio.spacecraft.shared.managers with type parameters of type AbstractEntity Modifier and Type Method Description <T extends AbstractEntity>
TEntityManager. copy(T entity, boolean copyEntityId)
Copies an entity<T extends AbstractEntity>
TEntityManager. create(Class<T> clazz, AbstractEntityDef entityDef)
Create a new entity by a given entity definition, already cast to a certain clazz.Methods in de.extio.spacecraft.shared.managers that return AbstractEntity Modifier and Type Method Description AbstractEntity
EntityManager. create(AbstractEntityDef entityDef)
Create a new entity by a given entity definition.AbstractEntity
EntityManager. findBy(UUID uuid)
Returns an entity by UUID or null if it is not registered.Methods in de.extio.spacecraft.shared.managers that return types with arguments of type AbstractEntity Modifier and Type Method Description List<AbstractEntity>
EntityManager. copyAll()
Copies all entities at onceList<AbstractEntity>
EntityManager. findAll()
Returns all entitiesList<AbstractEntity>
EntityManager. findByCategory(String category)
Get entity by category.Iterator<AbstractEntity>
EntityManager. findByCategoryFast(String category)
Get entity by category.List<AbstractEntity>
EntityManager. findByDef(int entityDefId)
Finds entities related to a given entity definition indexList<AbstractEntity>
EntityManager. findByDef(Class<? extends AbstractEntityDef> clazz)
Finds entities related to a given entity definitionList<AbstractEntity>
EntityManager. findByDef(String entityDefName)
Finds entities related to a given name of an entity definitionList<AbstractEntity>
EntityManager. findByDef(UUID entityDefUUID)
Finds entities related to a given entity definition UUIDList<AbstractEntity>
EntityManager. findByPosition(CoordI2 entityPos)
Finds all entities at a given position.Iterator<AbstractEntity>
EntityManager. findByPositionFast(CoordI2 entityPos)
Finds all entities at a given position.List<AbstractEntity>
WorldManager. findEntityLevelCollisions(AbstractCompositeEntity compositeEntity0, CoordI2 position0, AbstractCompositeEntity compositeEntity1, CoordI2 position1)
Composite entities can overlap in the game world.Methods in de.extio.spacecraft.shared.managers with parameters of type AbstractEntity Modifier and Type Method Description void
EntityManager. delete(AbstractEntity entity)
Deletes an entity from this entity managervoid
EntityManager. dirty(AbstractEntity entity)
Sets dirty flag on an entity - it is important to set dirty flag on the server side after every change.void
EntityManager. move(AbstractEntity entity, CoordI2 entityPos)
Moves an entity to a new spatial position entityPos - It is VERY important to always use this method to move entities instead of setting the position property directly, because entity manager indexes entities for faster spatial lookups.void
EntityManager. put(AbstractEntity entity)
Puts an entity to the entity manager.Method parameters in de.extio.spacecraft.shared.managers with type arguments of type AbstractEntity Modifier and Type Method Description void
EntityManager. executeAtPosition(CoordI2 entityPos, Consumer<AbstractEntity> consumer)
Calls a consumer for any entity that exists at a certain position.boolean
EntityManager. existsByPosition(CoordI2 entityPos, Predicate<AbstractEntity> filter)
Checks whether any entity exists at a certain position matching filter.void
EntityManager. put(Iterable<? extends AbstractEntity> entities, boolean clone)
Puts a collection of entities at once to the entity manager. -
Uses of AbstractEntity in de.extio.spacecraft.shared.model.client.settings
Methods in de.extio.spacecraft.shared.model.client.settings that return types with arguments of type AbstractEntity Modifier and Type Method Description List<AbstractEntity>
ViewPortModuleSettings. getDrawOverlayEntities()
Method parameters in de.extio.spacecraft.shared.model.client.settings with type arguments of type AbstractEntity Modifier and Type Method Description void
ViewPortModuleSettings. setDrawOverlayEntities(List<AbstractEntity> drawOverlayEntities)
-
Uses of AbstractEntity in de.extio.spacecraft.shared.model.entity
Fields in de.extio.spacecraft.shared.model.entity with type parameters of type AbstractEntity Modifier and Type Field Description List<AbstractEntity>
AbstractCompositeEntity.CollisionCalculationResult. collidingEntities
Entities directly involved in the collisionprotected Map<UUID,List<AbstractEntity>>
AbstractEntity. serverRestrictedEntities
Methods in de.extio.spacecraft.shared.model.entity that return AbstractEntity Modifier and Type Method Description AbstractEntity
CompositeAndEntity. getEntity()
Methods in de.extio.spacecraft.shared.model.entity that return types with arguments of type AbstractEntity Modifier and Type Method Description Class<? extends AbstractEntity>
AbstractEntityDef. getLiveEntity()
Map<UUID,List<AbstractEntity>>
AbstractEntity. getServerRestrictedEntities()
Methods in de.extio.spacecraft.shared.model.entity with parameters of type AbstractEntity Modifier and Type Method Description void
AbstractEntity. localCopy(AbstractEntity other)
Local copy of transient fieldsboolean
AbstractEntity. onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
Client side: Callback if the player selected an actionvoid
AbstractEntity. onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
Client side: Callback when this entity is selected and cursor is pointing to another entityvoid
CompositeAndEntity. setEntity(AbstractEntity entity)
void
AbstractEntity. update(AbstractEntity other)
Incremental update of non-transient fields (usually transferred from server)Method parameters in de.extio.spacecraft.shared.model.entity with type arguments of type AbstractEntity Modifier and Type Method Description AbstractCompositeEntity.CollisionCalculationResult
AbstractCompositeEntity. calculateCollision(Map.Entry<AbstractCompositeEntity,List<AbstractEntity>> collisionPartner)
Calculates the outcome of a collision between this composite and one or more other compositesvoid
AbstractCompositeEntity. damageWave(GameSession gameSession, DamageWaveOptions damageWaveOptions, List<AbstractEntity> damagedEntities)
Distributes incoming damage on entities.
There are certain aspects relevant for the calculation:
* A tiles consists of several layered entities
* An entity only absorbs a certain amount of damage (plateaus), which is also dependent on the weapon
* A tile can be protected by shields
* Also shields have plateaus
* Damage that is not absorbed propagates to nearby tiles
* Damage cannot propagate through some tiles in certain directions, i.e.protected boolean
AbstractCompositeEntity. onServerCollision(GameSession gameSession, Map<AbstractCompositeEntity,List<AbstractEntity>> entityLevelCollisions)
Server side: Callback for additional logic when a collision happenedprotected AbstractCompositeEntity.CollisionCalculationResult
AbstractCompositeEntity. priorityCalculateCollision(Map.Entry<AbstractCompositeEntity,List<AbstractEntity>> collisionPartner)
Overrides the regular collision calculationvoid
AbstractEntityDef. setLiveEntity(Class<? extends AbstractEntity> liveEntity)
void
AbstractEntity. setServerRestrictedEntities(Map<UUID,List<AbstractEntity>> serverRestrictedEntities)
void
AbstractCompositeEntity.CollisionCalculationResult. swap(AbstractCompositeEntity otherCompositeEntity, List<AbstractEntity> collidingEntities)
Swaps sidesConstructors in de.extio.spacecraft.shared.model.entity with parameters of type AbstractEntity Constructor Description CompositeAndEntity(AbstractCompositeEntity compositeEntity, AbstractEntity entity)
-
Uses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.composite
Method parameters in de.extio.spacecraft.shared.model.entity.builtin.composite with type arguments of type AbstractEntity Modifier and Type Method Description void
DarkMatter. damageWave(GameSession gameSession, DamageWaveOptions damageWaveOptions, List<AbstractEntity> damagedEntities)
void
ImageSurfaceCompositeEntity. damageWave(GameSession gameSession, DamageWaveOptions damageWaveOptions, List<AbstractEntity> damagedEntities)
void
InfoCompositeEntity. damageWave(GameSession gameSession, DamageWaveOptions damageWaveOptions, List<AbstractEntity> damagedEntities)
void
SpaceShip. damageWave(GameSession gameSession, DamageWaveOptions damageWaveOptions, List<AbstractEntity> damagedEntities)
protected boolean
InfoCompositeEntity. onServerCollision(GameSession gameSession, Map<AbstractCompositeEntity,List<AbstractEntity>> entityLevelCollisions)
protected boolean
LootContainerCompositeEntity. onServerCollision(GameSession gameSession, Map<AbstractCompositeEntity,List<AbstractEntity>> entityLevelCollisions)
protected boolean
SpaceCraft. onServerCollision(GameSession gameSession, Map<AbstractCompositeEntity,List<AbstractEntity>> entityLevelCollisions)
protected AbstractCompositeEntity.CollisionCalculationResult
ImageSurfaceCompositeEntity. priorityCalculateCollision(Map.Entry<AbstractCompositeEntity,List<AbstractEntity>> collisionPartner)
protected AbstractCompositeEntity.CollisionCalculationResult
LootContainerCompositeEntity. priorityCalculateCollision(Map.Entry<AbstractCompositeEntity,List<AbstractEntity>> collisionPartner)
-
Uses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live
Subclasses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live Modifier and Type Class Description class
AbstractAiWaypointEntity
class
AbstractMeshEntity
class
AbstractScriptingEntity
All scripts that can be placed in the game world (e.g.class
AbstractWeaponEntity
Base class for all weapon implementationsclass
ActionItemEntity
class
AiControlBanditEntity
class
AiControlEntity
class
AiControlTransporterEntity
class
AiDestinationEntity
class
AiSpawnPointEntity
class
AiWaypointEntity
class
AsteroidScenarioScriptingEntity
class
CrewEntity
Base class for crew membersclass
CrewSpawnPointEntity
class
DefaultScriptingEntity
class
FloorEntity
class
ImageSurfaceEntity
class
InfoEntity
class
LootContainer
class
MarkerEntity
class
PhysicalEntity
Physical entities represent everything that has a form, e.g.class
RestrictedEntity
class
SpacecraftSpawnPointEntity
class
StationEntryPointEntity
class
StructureEntity
Structure entities are a specialized form of physical entities - everything that is part of the structure of a ship: walls, systems, engines, weapons, ...Methods in de.extio.spacecraft.shared.model.entity.builtin.live with parameters of type AbstractEntity Modifier and Type Method Description boolean
CrewEntity. canDoCustomEntityAction(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other)
void
AbstractMeshEntity. localCopy(AbstractEntity other)
void
AbstractWeaponEntity. localCopy(AbstractEntity other)
void
AsteroidScenarioScriptingEntity. localCopy(AbstractEntity other)
void
PhysicalEntity. localCopy(AbstractEntity other)
boolean
AbstractWeaponEntity. onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
boolean
CrewEntity. onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
boolean
PhysicalEntity. onClientAction(ClientEntityAction clientAction, AbstractCompositeEntity targetCompositeEntity, AbstractEntity targetEntity)
void
AbstractWeaponEntity. onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
void
CrewEntity. onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
void
PhysicalEntity. onClientSelectedPointToEntity(AbstractCompositeEntity otherCompositeEntity, AbstractEntity other, int modifiers, List<ClientEntityAction> outClientActions)
void
AbstractAiWaypointEntity. update(AbstractEntity other)
void
AbstractMeshEntity. update(AbstractEntity other)
void
AbstractScriptingEntity. update(AbstractEntity other)
void
AbstractWeaponEntity. update(AbstractEntity other)
void
ActionItemEntity. update(AbstractEntity other)
void
AiControlBanditEntity. update(AbstractEntity other)
void
AiControlEntity. update(AbstractEntity other)
void
AiControlTransporterEntity. update(AbstractEntity other)
void
AiDestinationEntity. update(AbstractEntity other)
void
AiSpawnPointEntity. update(AbstractEntity other)
void
AiWaypointEntity. update(AbstractEntity other)
void
AsteroidScenarioScriptingEntity. update(AbstractEntity other)
void
CrewEntity. update(AbstractEntity other)
void
ImageSurfaceEntity. update(AbstractEntity other)
void
LootContainer. update(AbstractEntity other)
void
MarkerEntity. update(AbstractEntity other)
void
PhysicalEntity. update(AbstractEntity other)
void
RestrictedEntity. update(AbstractEntity other)
void
SpacecraftSpawnPointEntity. update(AbstractEntity other)
void
StructureEntity. update(AbstractEntity other)
-
Uses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live.mod
Subclasses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live.mod Modifier and Type Class Description class
AbstractEntityMod
class
WeaponEntityMod
-
Uses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live.scripting
Subclasses of AbstractEntity in de.extio.spacecraft.shared.model.entity.builtin.live.scripting Modifier and Type Class Description class
AiSpawnPortalsInWaves
class
CheckGameMode
class
DespawnAlliesWhenCleared
class
LoadSceneScriptingEntity
class
LockObjectInPlace
class
MusicArea
class
NextObjectiveWhenAreaCleared
class
NextObjectiveWhenDestroyed
class
RespawnAsSpaceStation
class
SetDifficulty
class
SetGameSessionOptions
class
SetObjective
class
ShowDialog
class
WarpPlayer
-