Package org.seattlegamer.spacegame.core

Examples of org.seattlegamer.spacegame.core.StateManager


  public @Bean StateManager stateManager() {
    Bus bus = bus();
    Collection<State> states = new LinkedList<State>();
    states.add(gameState());
    states.add(menuState());
    StateManager stateManager = new StateManager(states);
    bus.register(stateManager, null);
    bus.broadcast(new StateChange(MenuState.class));
    return stateManager;

  }
View Full Code Here

TOP

Related Classes of org.seattlegamer.spacegame.core.StateManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.