Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

31 rinda
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. }