Package org.seattlegamer.spacegame.core

Examples of org.seattlegamer.spacegame.core.Bus.broadcast()


    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;

  }
 
  public @Bean GameState gameState() {
View Full Code Here


 
  @Test
  public void unsubscribedMessagesBroadcastNowhereSilently() {
   
    Bus bus = new BusImpl();
    bus.broadcast("buzz");
   
  }
 
  @Test
  public void registrationsTakeIntoAccountSuperClass() {
View Full Code Here

    UUID entityId = UUID.randomUUID();
   
    Bar bar = new Bar(bus, entityId);
   
    bus.register(bar, entityId);
    bus.broadcast("blah");
   
    assertEquals("blah", bar.fooValue);
    assertEquals("blah", bar.barValue);

  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.