25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Initalize.java 714 B

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