if (game.hasCapability(BarnCapability.class)) {
gridPanel.addLayer(new BarnAreaLayer(gridPanel), false);
}
gridPanel.addLayer(new TilePlacementLayer(gridPanel), false);
gridPanel.addLayer(new FeatureAreaLayer(gridPanel), false);
if (game.hasCapability(TowerCapability.class) || game.hasCapability(FairyCapability.class)) {
gridPanel.addLayer(new TileActionLayer(gridPanel), false);
}
if (game.hasCapability(AbbeyCapability.class)) {