Show / Hide Table of Contents

Class SymmetryConstraint

Abstract constraint for any sort of global symmetry where a choice of a tile in an index implies a selection for a specific index elsewhere.

Inheritance
object
SymmetryConstraint
MirrorXConstraint
MirrorYConstraint
Implements
ITileConstraint
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public abstract class SymmetryConstraint : ITileConstraint

Methods

| Edit this page View Source

Check(TilePropagator)

Called frequently during generation to help maintain the constraint.

Declaration
public void Check(TilePropagator propagator)
Parameters
Type Name Description
TilePropagator propagator

The propagator to constrain

| Edit this page View Source

Init(TilePropagator)

Called once when the propagator first initializes.

Declaration
public virtual void Init(TilePropagator propagator)
Parameters
Type Name Description
TilePropagator propagator

The propagator to constrain

| Edit this page View Source

TryMapIndex(TilePropagator, int, out int)

Declaration
protected abstract bool TryMapIndex(TilePropagator propagator, int i, out int i2)
Parameters
Type Name Description
TilePropagator propagator
int i
int i2
Returns
Type Description
bool
| Edit this page View Source

TryMapTile(Tile, out Tile)

Declaration
protected abstract bool TryMapTile(Tile tile, out Tile tile2)
Parameters
Type Name Description
Tile tile
Tile tile2
Returns
Type Description
bool

Implements

ITileConstraint
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX