concave_polygon_indicator_test

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Test suite validating RuleCheckIndicator generation for a concave CollisionPolygon2D based placeable.

Source File: /addons/grid_building/test/rules/indicators/concave_polygon_indicator_test.gd

Extends: GdUnitTestSuite

Private Properties

  • Property: _container : [GBCompositionContainer](./gb-composition-container/) (private)
  • Property: _validator : [PlacementValidator](./placement-validator/) (private)
  • Property: _targeting : [GridTargetingState](./grid-targeting-state/) (private)
  • Property: _placer : Node2D (private)
  • Property: _map : TileMapLayer (private)
  • Property: _preview : Node2D (private)
  • Property: _rules : Array[PlacementRule] (private)
  • Property: _manager : [IndicatorManager](./indicator-manager/) (private)

Constants

  • Constant: DEFAULT_TILE_SIZE: Vector2 = Vector2(16, 16)
  • Constant: BBOX_INIT_HIGH: int = 9999
  • Constant: BBOX_INIT_LOW: int = -9999

Public Methods

before_test

1
before_test() -> void

after_test

1
after_test() -> void

test_concave_polygon_generates_expected_indicator_distribution

1
test_concave_polygon_generates_expected_indicator_distribution() -> void

Expect multiple indicators but not a full bounding box fill (which would indicate concavity not handled)


Private Methods

_collect_indicators

1
_collect_indicators() -> Array[RuleCheckIndicator]

Flags: private


_format_indicator_debug

1
_format_indicator_debug(indicators: Array) -> Array[String]

Flags: private

Diagnostic helpers to keep tests concise and consistent


_build_concave_failure_message

1
2
3
4
_build_concave_failure_message(
    tiles: Array,
    indicators: Array[RuleCheckIndicator]
) -> String

Flags: private



Grid Building v5.0.8 | Generated 24/05/2026