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

31 lines
577 B

  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 stopped moving.
  7. * The event reports the unique id of the unit.
  8. *
  9. * {
  10. * messageType = “unitStopped”
  11. * id = <unit id>
  12. * }
  13. *
  14. * @author Dr. Richard McCreadie
  15. *
  16. */
  17. public class UnitStopped implements EventProcessor{
  18. @Override
  19. public void processEvent(ActorRef out, GameState gameState, JsonNode message) {
  20. int unitid = message.get("id").asInt();
  21. }
  22. }