11-16-2020, 08:22 AM
Hi,
Depends what you mean by size. If you speak about the dimension of the board, no.
However, you can get the number of vertices/cells/edges in each container.
In your case, I guess you want the number of default graph element type in the board. For that you can get it with
(context is of the type Context, but I guess you know that)
Regards,
Eric
Depends what you mean by size. If you speak about the dimension of the board, no.
However, you can get the number of vertices/cells/edges in each container.
In your case, I guess you want the number of default graph element type in the board. For that you can get it with
Code:
final SiteType defaultType = context.board().defaultSite();
final Topology topologyBoard = context.game().board().topology();
final int sizeDefaultSite = topologyBoard.getGraphElements(defaultType).size();
(context is of the type Context, but I guess you know that)
Regards,
Eric