Package de.extio.spacecraft.shared.bo
Interface AiFactory
-
public interface AiFactory
Use this factory to spawn AI controlled ships or change properties You can access the corresponding bean implementation via ServerFacade::getBusinessObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
change(UUID ai, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, GameSession gameSession)
Change the behavior of an already spawned AI ship.void
change(UUID ai, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, GameSession gameSession)
Change the behavior of an already spawned AI ship.UUID
spawn(Area2 area, SpaceCraft spaceCraft, Map<String,Object> spaceCraftProperties, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.UUID
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
spawn(Area2 area, String storageFilename, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.UUID
spawn(Area2 area, String storageFilename, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship.
-
-
-
Method Detail
-
spawn
UUID spawn(Area2 area, String storageFilename, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship. Use this overload to load the ship from storage and select from builtin ship and crew behavior.
-
spawn
UUID spawn(Area2 area, String storageFilename, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship. Use this overload to load the ship from storage and select from custom ship and crew behavior implementations.
-
spawn
UUID spawn(Area2 area, SpaceCraft spaceCraft, Map<String,Object> spaceCraftProperties, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, int team, UUID sceneTag, GameSession gameSession)
Spawn an AI ship. Use this overload to spawn a ship already loaded from storage (usually of type CompositeEntityDefinitionMessage) and select from builtin ship and crew behavior.
-
spawn
UUID 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. Use this overload to spawn a ship already loaded from storage (usually of type CompositeEntityDefinitionMessage) and select from custom ship and crew behavior implementations.
-
change
void change(UUID ai, AiFactoryCrewManagerType crewManagerType, AiFactorySpacecraftManagerType spacecraftManagerType, GameSession gameSession)
Change the behavior of an already spawned AI ship. Use this overload to select from builtin ship and crew behavior.
-
change
void change(UUID ai, Class<? extends AiCrewManager> crewManager, Class<? extends AiSpacecraftManager> spacecraftManager, GameSession gameSession)
Change the behavior of an already spawned AI ship. Use this overload to select from custom ship and crew behavior implementations.
-
-