Uses of Class
de.extio.spacecraft.shared.model.game_server.instance.GameSession
-
Packages that use GameSession 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.bo Interfaces and data objects for various business objects implementing game mechanicsde.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.de.extio.spacecraft.shared.module Interfaces and business objects for the module subsystem.de.extio.spacecraft.shared.server Managers for the game server. -
-
Uses of GameSession in de.extio.spacecraft.shared.bo
Methods in de.extio.spacecraft.shared.bo with parameters of type GameSession Modifier and Type Method Description void
AiFactory. change(UUID ai, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, GameSession gameSession)
Change the behavior of an already spawned AI ship.void
AiFactory. change(UUID ai, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, GameSession gameSession)
Change the behavior of an already spawned AI ship.void
SpaceStationFactory. despawn(UUID spaceStationId, GameSession gameSession)
Despawns a station, also unregisters it from the ship slotvoid
PathFindingEntitySupport. onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession, PhysicalEntity entity)
void
StorageEntitySupport. onServerConsoleControlEvent(PhysicalEntity storageProviderEntity, GameSession gameSession, UUID sender, String controlId, Object payload)
Callback from entity to make storage functionality work.void
StorageEntitySupport. onServerDamage(PhysicalEntity storageProviderEntity, GameSession gameSession, double oldHealth)
Callback from entity to make storage functionality work.void
PathFindingEntitySupport. onServerTurnPass0(GameSession gameSession, PhysicalEntity entity)
void
StorageEntitySupport. onServerTurnPass0(PhysicalEntity storageProviderEntity, GameSession gameSession)
Callback from entity to make storage functionality work.void
PathFindingEntitySupport. onServerTurnPass1(GameSession gameSession, PhysicalEntity entity)
void
MeshConsumerSupport. onServerTurnPass2PostComposites(GameSession gameSession, PhysicalEntity entity)
LootContainer
LootScatterer. 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>
LootScatterer. scatter(AbstractEntity entity, LootScatterer.ScatteringMode mode, GameSession gameSession)
Use this method to drop random lootdouble
MeshConsumerSupport. serverCalculateEmEmission(GameSession gameSession, PhysicalEntity entity)
void
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. serverMove(CoordI2 coord, PhysicalEntity entity, UUID sender, GameSession gameSession)
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
MeshConsumerSupport. serverRequestAction(UUID meshConsumerId, UUID parentCompositeEntityId, MeshConsumer entity, double inAmountFactor, GameSession gameSession, Consumer<Double> callback)
boolean
RestrictedEntitySurface. serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Whether to restrict the inside of a composite entity parent to player recipientvoid
PathFindingEntitySupport. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession, PhysicalEntity entity)
UUID
AiFactory. spawn(Area2 area, SpaceCraft spaceCraft, Map<String,Object> spaceCraftProperties, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.UUID
AiFactory. spawn(Area2 area, SpaceCraft spaceCraft, Map<String,Object> spaceCraftProperties, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.UUID
AiFactory. spawn(Area2 area, String storageFilename, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.UUID
AiFactory. spawn(Area2 area, String storageFilename, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.<T extends SpaceStation>
UUIDSpaceStationFactory. spawn(CoordI2 position, String fileMatcher, String modNameMatcher, String path, UUID sceneTag, int team, boolean allTeamsCanEnter, int spawnAtSlotMinIncl, int spawnAtSlotMaxExcl, Class<T> type, Consumer<T> processor, GameSession gameSession)
Spawns the station at a certain position, also registers it at a ship slot<T extends SpaceStation>
UUIDSpaceStationFactory. spawnByMarker(String marker, String fileMatcher, String modNameMatcher, String path, UUID sceneTag, int team, boolean allTeamsCanEnter, int spawnAtSlotMinIncl, int spawnAtSlotMaxExcl, Class<T> type, Consumer<T> processor, GameSession gameSession)
Spawns the station at the position of a named MarkerEntity, also registers it at a ship slot<T extends SpaceStation>
UUIDSpaceStationFactory. spawnStation(CoordI2 position, UUID sceneTag, int team, boolean allTeamsCanEnter, boolean forceKeepPosition, int spawnAtSlotMinIncl, int spawnAtSlotMaxExcl, T station, Consumer<T> processor, GameSession gameSession)
Spawns a preloaded station at a certain position, also registers it at a ship slot. -
Uses of GameSession in de.extio.spacecraft.shared.managers
Methods in de.extio.spacecraft.shared.managers with parameters of type GameSession Modifier and Type Method Description void
AchievementsManager. serverAchieved(String id, GameSession gameSession)
This is the main method to grant an achievement to a player.void
AchievementsManager. serverAchieved(String id, Set<UUID> sessions, GameSession gameSession)
This is the main method to grant an achievement to multiple players at once (e.g. -
Uses of GameSession in de.extio.spacecraft.shared.model.bo
Methods in de.extio.spacecraft.shared.model.bo with parameters of type GameSession Modifier and Type Method Description void
AiBuildingBlock. analyze(EntityNetworkDiscovery entityNetworkDiscovery, GameSession gameSession, boolean lastTurnActive, boolean canSkip)
List<Class<? extends AiBuildingBlock>>
AiSpacecraftManager. control(SpaceCraft spaceCraft, EntityNetworkDiscovery entityNetworkDiscovery, AiOrchestrator orchestrator, AiBuildingBlockManager aiBuildingBlockManager, GameSession gameSession)
void
AiBuildingBlock. execute(EntityNetworkDiscovery entityNetworkDiscovery, GameSession gameSession)
void
AiCrewManager. manageCrew(GameSession gameSession, SpaceCraft spaceCraft, EntityNetworkDiscovery entityNetworkDiscovery, List<CrewEntity> crew, AiBuildingBlockManager aiBuildingBlockManager)
void
AiBuildingBlock. process(EntityNetworkDiscovery entityNetworkDiscovery, GameSession gameSession)
void
AiCrewManager. unregister(GameSession gameSession, SpaceCraft spaceCraft)
void
AiSpacecraftManager. unregister(SpaceCraft spaceCraft, AiOrchestrator orchestrator, AiBuildingBlockManager aiBuildingBlockManager, GameSession gameSession)
-
Uses of GameSession in de.extio.spacecraft.shared.model.entity
Methods in de.extio.spacecraft.shared.model.entity with parameters of type GameSession Modifier and Type Method Description void
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 void
AbstractCompositeEntity. handleMove(GameSession gameSession)
Server side: Called on every turn twice (pass0 and pass1) to handle movement of this compositeprotected void
AbstractCompositeEntity. handleMoveApply(GameSession gameSession, CoordD2 newPositionPrecise)
Applies a new spatial position on this composite entityvoid
AbstractCompositeEntity. onServerActionMessage(GameSession gameSession, UUID sender, GameActionMessage message)
Server side: Callback when a GameActionMessage has been received that is addressed to this compositevoid
AbstractEntity. onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
Server side: Callback after a message has been received for this entity.protected boolean
AbstractCompositeEntity. onServerCollision(GameSession gameSession, Map<AbstractCompositeEntity,List<AbstractEntity>> entityLevelCollisions)
Server side: Callback for additional logic when a collision happenedvoid
AbstractCompositeEntity. onServerTurnPass0(GameSession gameSession)
Server side: Called every turn to contain any logic related to this entitiy.void
AbstractEntity. onServerTurnPass0(GameSession gameSession)
Server side: Executes code on every server turn, main pass 1 of 2.void
AbstractCompositeEntity. onServerTurnPass1(GameSession gameSession)
Server side: Called every turn to contain any logic related to this entitiy.void
AbstractEntity. onServerTurnPass1(GameSession gameSession)
Server side: Executes code on every server turn, main pass 2 of 2.void
AbstractCompositeEntity. onServerTurnPass2(GameSession gameSession)
Server side: Called every turn to contain any logic related to this entitiy.void
AbstractEntity. onServerTurnPass2PostComposites(GameSession gameSession)
Server side: Executes code on every server turn, postprocessing pass after composite entity pass 2.boolean
AbstractCompositeEntity. rotate(GameSession gameSession, Edge2 direction)
Rotates this composite entityvoid
AbstractEntity. serverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)
Server side: Cleans up restricted entity surfaces.void
AbstractEntity. serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Prepares RestrictedEntity instances to be presented instead of this entity to a player.boolean
AbstractEntity. serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Checks whether this entity should be restricted to the player recipient, i.e.void
AbstractEntity. serverTranslateEntityPass0(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Parent composite entity is rotated, rotates this entityvoid
AbstractEntity. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
Server side: Postprocesses rotation of the parent composite entity.protected void
AbstractCompositeEntity. splitEntityGroups(GameSession gameSession)
Splits this composite entity by connected areas to several separated copies, e.g. -
Uses of GameSession in de.extio.spacecraft.shared.model.entity.builtin.composite
Methods in de.extio.spacecraft.shared.model.entity.builtin.composite with parameters of type GameSession Modifier and Type Method Description boolean
LootContainerCompositeEntity. collect(GameSession gameSession)
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)
void
SpaceStation. despawn(GameSession gameSession)
Server side: Despawns this space station - unregisters from game session ship slotprotected void
InfoCompositeEntity. handleMove(GameSession gameSession)
protected boolean
SpaceCraft. killCondition(GameSession gameSession)
Server side: Checks if the SpaceCraft has been killedprotected boolean
SpaceShip. killCondition(GameSession gameSession)
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 void
SpaceCraft. onServerHullBreach(CoordI2 position, int change, GameSession gameSession)
Server side: Additional logic on tiles with a hull breachprotected void
SpaceShip. onServerHullBreach(CoordI2 position, int change, GameSession gameSession)
protected void
SpaceCraft. onServerSpaceCraftKilled(GameSession gameSession, boolean initial)
Server side: Called every turn when the spacecraft has been killedprotected void
SpaceShip. onServerSpaceCraftKilled(GameSession gameSession, boolean initial)
void
DarkMatter. onServerTurnPass0(GameSession gameSession)
void
GenericRestrictedCompositeEntity. onServerTurnPass0(GameSession gameSession)
void
ImageSurfaceCompositeEntity. onServerTurnPass0(GameSession gameSession)
void
LootContainerCompositeEntity. onServerTurnPass0(GameSession gameSession)
void
SpaceCraft. onServerTurnPass0(GameSession gameSession)
void
SpaceShip. onServerTurnPass0(GameSession gameSession)
void
SpaceStation. onServerTurnPass0(GameSession gameSession)
void
SpaceCraft. onServerTurnPass1(GameSession gameSession)
void
DarkMatter. onServerTurnPass2(GameSession gameSession)
void
SpaceCraft. onServerTurnPass2(GameSession gameSession)
void
LootContainerCompositeEntity. reserve(CompositeAndEntityId collectBy, GameSession gameSession)
boolean
GenericRestrictedCompositeEntity. rotate(GameSession gameSession, Edge2 direction)
boolean
SpaceCraft. rotate(GameSession gameSession, Edge2 direction)
void
ImageSurfaceCompositeEntity. serverBuildSurface(GameSession gameSession)
protected void
SpaceCraft. serverHullBreach(GameSession gameSession)
Server side: Implements hull breaches on tiles. -
Uses of GameSession in de.extio.spacecraft.shared.model.entity.builtin.live
Methods in de.extio.spacecraft.shared.model.entity.builtin.live with parameters of type GameSession Modifier and Type Method Description void
PhysicalEntity. handleEnabledState(GameSession gameSession)
Server side: Handles changing the enabled state of this entityvoid
AsteroidScenarioScriptingEntity. onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
void
CrewEntity. onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
void
PhysicalEntity. onServerActionMessage(GameActionMessage message, UUID sender, GameSession gameSession)
void
AutomationHandler. onServerAutomationRun(GameSession gameSession, AbstractCompositeEntity parent, List<AutomationEntity> automatedEntities, List<AutomationEntity> automatedEntitiesReady)
protected void
AbstractScriptingEntity. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
Server side: Called when any entity entered this.radius.protected void
AbstractScriptingEntity. onServerCompositeEntityRadiusLeft(UUID compositeEntityId, GameSession gameSession)
Server side: Called when any entity left this.radius.void
AbstractWeaponEntity. onServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)
void
PhysicalEntity. onServerConsoleControlEvent(GameSession gameSession, UUID sender, String controlId, Object payload)
Server side: Called when the user interacted with a control in the entity consolevoid
CrewEntity. onServerDamage(GameSession gameSession, double oldHealth)
void
PhysicalEntity. onServerDamage(GameSession gameSession, double oldHealth)
Server side: Called when the entity took damagedefault void
StorableEntity. onServerStorageEject(int entityDefIdx, CoordI2 worldPos, AbstractCompositeEntity parent, GameSession gameSession)
void
ActionItemEntity. onServerStorageExplode(GameSession gameSession)
void
LootContainer. onServerStorageExplode(GameSession gameSession)
void
StorableEntity. onServerStorageExplode(GameSession gameSession)
void
StructureEntity. onServerStorageExplode(GameSession gameSession)
protected void
AbstractScriptingEntity. onServerTurnCompositeEntitiesInRadius(List<AbstractCompositeEntity> compositeEntities, GameSession gameSession)
Server side: Called on every turn, providing a list of entities currently inside radius.void
AbstractScriptingEntity. onServerTurnPass0(GameSession gameSession)
void
AbstractWeaponEntity. onServerTurnPass0(GameSession gameSession)
void
AsteroidScenarioScriptingEntity. onServerTurnPass0(GameSession gameSession)
void
CrewEntity. onServerTurnPass0(GameSession gameSession)
void
PhysicalEntity. onServerTurnPass0(GameSession gameSession)
void
StructureEntity. onServerTurnPass0(GameSession gameSession)
void
AbstractWeaponEntity. onServerTurnPass1(GameSession gameSession)
void
PhysicalEntity. onServerTurnPass1(GameSession gameSession)
void
AbstractMeshEntity. onServerTurnPass2PostComposites(GameSession gameSession)
void
AbstractWeaponEntity. onServerTurnPass2PostComposites(GameSession gameSession)
protected void
AbstractWeaponEntity. publishStarvedAction(GameSession gameSession, String reason)
void
AbstractWeaponEntity. serverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)
void
PhysicalEntity. serverAbortEntityAction(GameSession gameSession, boolean publishAsPendingAction)
Server side: Aborts the current action the entity is executingprotected abstract void
AbstractWeaponEntity. serverAttack(GameSession gameSession, AbstractCompositeEntity composite, CoordI2 entityPos, Runnable onAttack)
double
AbstractWeaponEntity. serverCalculateEmEmission(GameSession gameSession)
double
PhysicalEntity. serverCalculateEmEmission(GameSession gameSession)
Server side: Calculates the EM emission of this entityvoid
AbstractWeaponEntity. serverCleanupRestrictedEntities(AbstractCompositeEntity parent, GameSession gameSession)
boolean
CrewEntityActionProvider. serverExecuteCrewEntityAction(CrewEntity crewEntity, GameSession gameSession)
Executes custom entity actionprotected abstract ViewPortEffectEvent
AbstractWeaponEntity. serverGenerateWeaponFireEffectEvent(GameSession gameSession, CoordI2 targetWorldPos, UUID compositeEntityId, CoordI2 entityPos)
void
AbstractWeaponEntity. serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
void
FloorEntity. serverPrepareRestrictedEntities(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
protected abstract void
AbstractWeaponEntity. serverProcessFinalTarget(Random rand, GameSession gameSession, AbstractCompositeEntity parent, AbstractWeaponEntityDef entityDef, CoordI2 weaponWorldPos, org.apache.commons.lang3.mutable.MutableObject<AbstractCompositeEntity> finalTargetComposite, CoordI2 finalTargetPos, CoordI2 finalTargetWorldPos)
void
AbstractWeaponEntity. serverPublishUpdateAll(GameSession gameSession, UUID sender)
boolean
AbstractWeaponEntity. serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
boolean
RestrictedEntity. serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
boolean
StructureEntity. serverRestrictEntity(UUID recipient, AbstractCompositeEntity parent, GameSession gameSession)
void
PhysicalEntity. serverSetEntityAction(String qualifier, CompositeAndEntityId target, CoordI2 targetCoord, boolean abortFirst, boolean forceNeedsOperator, boolean ignoreNeedsOperator, boolean deferActionMessage, UUID playerId, GameSession gameSession)
Server side: Sets an action the entity is executingprotected void
PhysicalEntity. serverSplitOnDamage(GameSession gameSession)
Server side: Executes splitting an entity away from the current parent to a separate composite entity after taking heavy damage.void
AbstractMeshEntity. serverTranslateEntityPass0(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
void
AbstractWeaponEntity. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
void
AutomationAction. serverTranslateEntityPass1(Edge2 rotation, CoordI2 dimension, GameSession gameSession)
void
CrewEntity. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
void
FloorEntity. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
void
PhysicalEntity. serverTranslateEntityPass1(Edge2 rotation, CoordI2 posSrc, CoordI2 origDim, AbstractCompositeEntity parent, GameSession gameSession)
-
Uses of GameSession in de.extio.spacecraft.shared.model.entity.builtin.live.mod
Methods in de.extio.spacecraft.shared.model.entity.builtin.live.mod with parameters of type GameSession Modifier and Type Method Description void
AbstractEntityMod. onServerStorageExplode(GameSession gameSession)
-
Uses of GameSession in de.extio.spacecraft.shared.model.entity.builtin.live.scripting
Methods in de.extio.spacecraft.shared.model.entity.builtin.live.scripting with parameters of type GameSession Modifier and Type Method Description protected void
LoadSceneScriptingEntity. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
protected void
NextObjectiveWhenAreaCleared. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
protected void
SetDifficulty. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
protected void
SetGameSessionOptions. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
protected void
SetObjective. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
protected void
WarpPlayer. onServerCompositeEntityRadiusEntered(AbstractCompositeEntity compositeEntity, GameSession gameSession)
void
DespawnAlliesWhenCleared. onServerTurnPass0(GameSession gameSession)
void
AiSpawnPortalsInWaves. onServerTurnPass2PostComposites(GameSession gameSession)
void
LockObjectInPlace. onServerTurnPass2PostComposites(GameSession gameSession)
void
NextObjectiveWhenAreaCleared. onServerTurnPass2PostComposites(GameSession gameSession)
void
NextObjectiveWhenDestroyed. onServerTurnPass2PostComposites(GameSession gameSession)
void
RespawnAsSpaceStation. onServerTurnPass2PostComposites(GameSession gameSession)
-
Uses of GameSession in de.extio.spacecraft.shared.module
Methods in de.extio.spacecraft.shared.module with parameters of type GameSession Modifier and Type Method Description void
AbstractServerModule. onGameSessionFirstTurn(GameSession gameSession)
void
ServerModule. onGameSessionFirstTurn(GameSession gameSession)
void
AbstractServerModule. onGameSessionStart(GameSession gameSession)
void
ServerModule. onGameSessionStart(GameSession gameSession)
void
AbstractServerModule. onGameSessionUpdatePlayers(GameSession gameSession)
void
ServerModule. onGameSessionUpdatePlayers(GameSession gameSession)
void
AbstractServerModule. onMessage(GameSession gameSession, UUID sender, AbstractMessage message)
void
ServerModule. onMessage(GameSession gameSession, UUID sender, AbstractMessage message)
void
AbstractServerModule. runAfterEntities(GameSession gameSession)
void
ServerModule. runAfterEntities(GameSession gameSession)
void
AbstractServerModule. runBeforeEntities(GameSession gameSession)
void
ServerModule. runBeforeEntities(GameSession gameSession)
-
Uses of GameSession in de.extio.spacecraft.shared.server
Methods in de.extio.spacecraft.shared.server that return GameSession Modifier and Type Method Description abstract GameSession
ServerFacade. getCurrentGameSession()
Returns the game session context object that is currently active in the thread context.abstract GameSession
ServerFacade. getGameSessionById(UUID gameSessionId)
Returns the game session by idabstract GameSession
ServerFacade. getGameSessionByPlayerId(UUID netSessionId)
Returns the game session a player is connected toMethods in de.extio.spacecraft.shared.server with parameters of type GameSession Modifier and Type Method Description abstract void
ServerFacade. initReproducibleSessionRng(GameSession gameSession, String state)
abstract void
ServerFacade. initSessionRng(GameSession gameSession, String state)
abstract void
ServerFacade. publishInternalMessage(GameSession gameSession, AbstractMessage message, boolean processImmediately)
Sends a Message internally, it remains on the game server and can be processed by any module / composite / entity subscribing to itabstract void
ServerFacade. publishMessage(GameSession gameSession, Set<UUID> destinations, AbstractMessage message, boolean defer)
Sends a Message to a clientabstract void
ServerFacade. publishMessageToAll(GameSession gameSession, AbstractMessage message, boolean defer)
Sends a Message to all clients
-