- package events;
-
- import com.fasterxml.jackson.databind.JsonNode;
-
- import akka.actor.ActorRef;
- import demo.CommandDemo;
- import demo.TurnDemo;
- import demo.Loaders_2024_Check;
- import structures.GameState;
-
- /**
- * Indicates that both the core game loop in the browser is starting, meaning
- * that it is ready to recieve commands from the back-end.
- *
- * {
- * messageType = “initalize”
- * }
- *
- * @author Dr. Richard McCreadie
- *
- */
- public class Initalize implements EventProcessor{
-
- @Override
- public void processEvent(ActorRef out, GameState gameState, JsonNode message) {
- gameState.setupGameState();
-
- // start the turn demo
- TurnDemo.executeDemo(out);
- }
-
- }
-
-
|