Class ServiceContainer

java.lang.Object
com.csse3200.game.services.ServiceContainer

public class ServiceContainer extends Object
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 Details

    • ServiceContainer

      public ServiceContainer()
  • Method Details

    • getEntityService

      public EntityService getEntityService()
      Gets the EntityService stored in this container
      Returns:
      the EntityService stored in this container
    • getRenderService

      public RenderService getRenderService()
      Gets the RenderService stored in this container
      Returns:
      the RenderService stored in this container
    • getPhysicsService

      public PhysicsService getPhysicsService()
      Gets the PhysicsService stored in this container
      Returns:
      the PhysicsService stored in this container
    • getTimeSource

      public GameTime getTimeSource()
      Gets the TimeService stored in this container
      Returns:
      the TimeService stored in this container
    • getInputService

      public InputService getInputService()
      Gets the InputService stored in this container
      Returns:
      the InputService stored in this container
    • getResourceService

      public ResourceService getResourceService()
      Gets the ResourceService stored in this container
      Returns:
      the ResourceService stored in this container
    • getLightingService

      public LightingService getLightingService()
      Gets the LightingService stored in this container
      Returns:
      the LightingService stored in this container
    • getParticleService

      public ParticleService getParticleService()
      Gets the ParticleService stored in this container
      Returns:
      the ParticleService stored in this container
    • getDialogueBoxService

      public DialogueBoxService getDialogueBoxService()
      Gets the DialogueBoxService stored in this container
      Returns:
      the DialogueBoxService stored in this container
    • getInGameTime

      public InGameTime getInGameTime()
    • getDayNightCycle

      public DayNightCycle getDayNightCycle()