Table of Contents

Class Term

Namespace
RandomizerCore.Logic
Assembly
RandomizerCore.dll
public class Term : ILogicInt, IStateProvider, ILogicVariable
Inheritance
Term
Implements
Inherited Members

Constructors

Term(int, string, TermType)

public Term(int Id, string Name, TermType Type)

Parameters

Id int
Name string
Type TermType

Fields

Id

A unique int identifier for the term. The index and type of the term can be recovered from the id using static methods on Term.

public readonly int Id

Field Value

int

Index

The index of the term, among terms of its type. Terms of different type may share the same index.

public readonly int Index

Field Value

int

Name

The name of the term.

public readonly string Name

Field Value

string

Type

The type of the term.

public readonly TermType Type

Field Value

TermType

Properties

TermTypeCount

public static int TermTypeCount { get; }

Property Value

int

Methods

GetIndex(int)

public static int GetIndex(int id)

Parameters

id int

Returns

int

GetTermType(int)

public static TermType GetTermType(int id)

Parameters

id int

Returns

TermType

ToString()

public override string ToString()

Returns

string

Operators

implicit operator int(Term)

public static implicit operator int(Term term)

Parameters

term Term

Returns

int