Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

39 wiersze
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. }