No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 

43 líneas
971 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. // hello this is a change
  23. gameState.gameInitalised = true;
  24. gameState.something = true;
  25. // User 1 makes a change
  26. //CommandDemo.executeDemo(out); // this executes the command demo, comment out this when implementing your solution
  27. //Loaders_2024_Check.test(out);
  28. // start the turn demo
  29. TurnDemo.executeDemo(out);
  30. }
  31. }