Package com.csse3200.game.services
Class ServiceContainer
java.lang.Object
com.csse3200.game.services.ServiceContainer
A container class that stores all of the services for a screen. This can be used to switch between screens without
loosing any of the services that are loaded.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the DialogueBoxService stored in this containerGets the EntityService stored in this containerGets the InputService stored in this containerGets the LightingService stored in this containerGets the ParticleService stored in this containerGets the PhysicsService stored in this containerGets the RenderService stored in this containerGets the ResourceService stored in this containerGets the TimeService stored in this container
-
Constructor Details
-
ServiceContainer
public ServiceContainer()
-
-
Method Details
-
getEntityService
Gets the EntityService stored in this container- Returns:
- the EntityService stored in this container
-
getRenderService
Gets the RenderService stored in this container- Returns:
- the RenderService stored in this container
-
getPhysicsService
Gets the PhysicsService stored in this container- Returns:
- the PhysicsService stored in this container
-
getTimeSource
Gets the TimeService stored in this container- Returns:
- the TimeService stored in this container
-
getInputService
Gets the InputService stored in this container- Returns:
- the InputService stored in this container
-
getResourceService
Gets the ResourceService stored in this container- Returns:
- the ResourceService stored in this container
-
getLightingService
Gets the LightingService stored in this container- Returns:
- the LightingService stored in this container
-
getParticleService
Gets the ParticleService stored in this container- Returns:
- the ParticleService stored in this container
-
getDialogueBoxService
Gets the DialogueBoxService stored in this container- Returns:
- the DialogueBoxService stored in this container
-
getInGameTime
-
getDayNightCycle
-