Skip to content

ParseCommandStacks Class

A list of behaviors applied as a string is processed.

C#
public class ParseCommandStacks

Inheritance object

Creates new stacks of commands.

C#
public ParseCommandStacks()

The commands that affect the foreground.

C#
public Stack<ParseCommandBase> Foreground { get; set; }

The commands that affect the background.

C#
public Stack<ParseCommandBase> Background { get; set; }

The commands that affect the glyph.

C#
public Stack<ParseCommandBase> Glyph { get; set; }

The commands that affect the mirror setting.

C#
public Stack<ParseCommandBase> Mirror { get; set; }

The commands that affect the glyph effect.

C#
public Stack<ParseCommandBase> Effect { get; set; }

The commands that affect the glyph decorators.

C#
public Stack<ParseCommandBase> Decorator { get; set; }

All commands.

C#
public Stack<ParseCommandBase> All { get; set; }

Returns the active array that is calculated from the Decorator stack.

C#
public CellDecorator[] CalculatedDecorators { get; set; }

Adds a behavior to the All collection and the collection based on the CommandType type.

C#
public void AddSafe(ParseCommandBase command)

command ParseCommandBase

Removes a command from the appropriate command stack and from the All stack.

C#
public void RemoveSafe(ParseCommandBase command)

command ParseCommandBase
The command to remove