20 package net.sf.gridarta.model.io;
22 import java.awt.Point;
23 import java.io.IOException;
24 import java.io.Writer;
30 import org.jetbrains.annotations.NotNull;
63 final A mapArch = mapModel.getMapArchObject();
68 final Size2D mapSize = mapArch.getMapSize();
69 final int width = mapSize.
getWidth();
71 final Point pos =
new Point();
72 for (pos.x = 0; pos.x < width; pos.x++) {
73 for (pos.y = 0; pos.y < height; pos.y++) {
74 for (
final G gameObject : mapModel.getMapSquare(pos)) {
75 if (gameObject.isHead()) {