Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

39 linhas
884 B

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