C# Class ElementNode

Inheritance: Node, IEnumerable
Datei anzeigen Open project: LilTsubaki/Les-fragments-d-Erule Class Usage Examples

Protected Properties

Property Type Description
_nodes SpellNode>.Dictionary

Public Methods

Method Description
GetInstance ( ) : ElementNode,

Gets the instance.

GetSelfSpell ( Queue elements ) : SelfSpell,

Gets the self spell.

GetTargetSpell ( Queue elements ) : TargetSpell,

Gets the target spell.

IsTerminal ( Queue elements ) : bool

Does the node have no child ?

SetSelfSpell ( SelfSpell, &selfSpell, Queue elements ) : void

Sets the self spell.

SetTargetSpell ( TargetSpell, &targetSpell, Queue elements ) : void

Sets the target spell.

Protected Methods

Method Description
ElementNode ( Element, element ) : UnityEngine

Initializes a new instance of the ElementNode class.

Private Methods

Method Description
ElementNode ( ) : UnityEngine

Initializes a new instance of the ElementNode class.

Method Details

ElementNode() protected method

Initializes a new instance of the ElementNode class.
protected ElementNode ( Element, element ) : UnityEngine
element Element, Element.
return UnityEngine

GetInstance() public static method

Gets the instance.
public static GetInstance ( ) : ElementNode,
return ElementNode,

GetSelfSpell() public method

Gets the self spell.
public GetSelfSpell ( Queue elements ) : SelfSpell,
elements Queue Elements.
return SelfSpell,

GetTargetSpell() public method

Gets the target spell.
public GetTargetSpell ( Queue elements ) : TargetSpell,
elements Queue Elements.
return TargetSpell,

IsTerminal() public method

Does the node have no child ?
public IsTerminal ( Queue elements ) : bool
elements Queue The Queue of elements composing the spell.
return bool

SetSelfSpell() public method

Sets the self spell.
public SetSelfSpell ( SelfSpell, &selfSpell, Queue elements ) : void
selfSpell SelfSpell, Self spell.
elements Queue Elements.
return void

SetTargetSpell() public method

Sets the target spell.
public SetTargetSpell ( TargetSpell, &targetSpell, Queue elements ) : void
targetSpell TargetSpell, Target spell.
elements Queue Elements.
return void

Property Details

_nodes protected_oe property

The children nodes.
protected Dictionary _nodes
return SpellNode>.Dictionary