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.

1234567891011121314151617181920212223242526272829303132333435363738
  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. }