Example #1
0
 @Override
 public int getSequenceIndex() {
   Set<DropZone> dropZone = serverMap.getObjectsFromContext(DropZone.class);
   if (dropZone.size() <= 0) {
     return 0;
   }
   return dropZone.iterator().next().getSequenceIndex();
 }
Example #2
0
 @Override
 public List<BlockColor> getSequence() {
   Set<DropZone> dropZone = serverMap.getObjectsFromContext(DropZone.class);
   if (dropZone.size() <= 0) {
     return new ArrayList<>();
   }
   return dropZone.iterator().next().getSequence();
 }