Class GameOptionsService


  • public class GameOptionsService
    extends java.lang.Object
    Helper service for common option tasks.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 27, 2014
    • Field Detail

      • SAVEGAME_FILE_EXTENSTION

        private static final java.lang.String SAVEGAME_FILE_EXTENSTION
        See Also:
        Constant Field Values
      • locale

        @Autowired
        private Locale locale
      • messageSource

        @Autowired
        private org.springframework.context.MessageSource messageSource
      • savegameDir

        private java.io.File savegameDir
      • clientServerEventBus

        @Autowired
        @Qualifier("serverClientEventBus")
        private com.google.common.eventbus.AsyncEventBus clientServerEventBus
      • timerEventBus

        @Autowired
        @Qualifier("timerEventBus")
        private com.google.common.eventbus.AsyncEventBus timerEventBus
      • context

        @Autowired
        private org.springframework.context.ApplicationContext context
      • localStorage

        @Autowired
        private LocalStorage localStorage
    • Constructor Detail

      • GameOptionsService

        public GameOptionsService()
    • Method Detail

      • init

        @PostConstruct
        private void init()
      • getGameSpeedList

        public java.util.List<java.lang.String> getGameSpeedList()
        Compile a list of game speeds
        Returns:
        List of the localized game speeds.
      • save

        public void save​(java.lang.String savegameName)
      • load

        public void load​(java.lang.String savegameName)