You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 rivejä
714 B

  1. package events;
  2. import com.fasterxml.jackson.databind.JsonNode;
  3. import akka.actor.ActorRef;
  4. import demo.CommandDemo;
  5. import demo.TurnDemo;
  6. import demo.Loaders_2024_Check;
  7. import structures.GameState;
  8. /**
  9. * Indicates that both the core game loop in the browser is starting, meaning
  10. * that it is ready to recieve commands from the back-end.
  11. *
  12. * {
  13. * messageType = “initalize”
  14. * }
  15. *
  16. * @author Dr. Richard McCreadie
  17. *
  18. */
  19. public class Initalize implements EventProcessor{
  20. @Override
  21. public void processEvent(ActorRef out, GameState gameState, JsonNode message) {
  22. gameState.setupGameState();
  23. // start the turn demo
  24. TurnDemo.executeDemo(out);
  25. }
  26. }