C# Class ElementNode

Inheritance: Node, IEnumerable
Afficher le fichier Open project: LilTsubaki/Les-fragments-d-Erule Class Usage Examples

Protected Properties

Свойство Type Description
_nodes SpellNode>.Dictionary

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ElementNode ( Element, element ) : UnityEngine

Initializes a new instance of the ElementNode class.

Private Methods

Méthode Description
ElementNode ( ) : UnityEngine

Initializes a new instance of the ElementNode class.

Method Details

ElementNode() protected méthode

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

GetInstance() public static méthode

Gets the instance.
public static GetInstance ( ) : ElementNode,
Résultat ElementNode,

GetSelfSpell() public méthode

Gets the self spell.
public GetSelfSpell ( Queue elements ) : SelfSpell,
elements Queue Elements.
Résultat SelfSpell,

GetTargetSpell() public méthode

Gets the target spell.
public GetTargetSpell ( Queue elements ) : TargetSpell,
elements Queue Elements.
Résultat TargetSpell,

IsTerminal() public méthode

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

SetSelfSpell() public méthode

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

SetTargetSpell() public méthode

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

Property Details

_nodes protected_oe property

The children nodes.
protected Dictionary _nodes
Résultat SpellNode>.Dictionary