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.

UnitMoving.java 573 B

1234567891011121314151617181920212223242526272829
  1. package events;
  2. import com.fasterxml.jackson.databind.JsonNode;
  3. import akka.actor.ActorRef;
  4. import structures.GameState;
  5. /**
  6. * Indicates that a unit instance has started a move.
  7. * The event reports the unique id of the unit.
  8. *
  9. * {
  10. * messageType = “unitMoving”
  11. * id = <unit id>
  12. * }
  13. *
  14. * @author Dr. Richard McCreadie
  15. *
  16. */
  17. public class UnitMoving implements EventProcessor{
  18. @Override
  19. public void processEvent(ActorRef out, GameState gameState, JsonNode message) {
  20. int unitid = message.get("id").asInt();
  21. }
  22. }