C# Class Danmaku_no_Kyojin.BulletEngine.BulletMLNode

This is a single node from a BulletML document.
显示文件 Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Public Properties

Property Type Description
ChildNodes List

Public Methods

Method Description
BulletMLNode ( ) : System

Initializes a new instance of the BulletMLLib.BulletMLNode class.

FindLabelNode ( string strLabel, ENodeName eName ) : BulletMLNode

Find a node of a specific type and label Recurse into the xml tree until we find it!

FindParentNode ( ENodeName nodeType ) : BulletMLNode

Find a parent node of the specified node type

GetChild ( ENodeName name ) : BulletMLNode
GetChildValue ( ENodeName name, BulletMLTask task ) : float
GetRootNode ( ) : BulletMLNode

Gets the root node.

GetValue ( BulletMLTask task ) : float

Gets the value of this node for a specific instance of a task.

Parse ( XmlNode bulletNodeElement, BulletMLNode parentNode ) : bool

Parse the specified bulletNodeElement. Read all the data from the xml node into this dude.

Private Methods

Method Description
StringToName ( string str ) : ENodeName

Convert a string to it's ENodeName enum equivalent

StringToType ( string str ) : ENodeType

Convert a string to it's ENodeType enum equivalent

Method Details

BulletMLNode() public method

Initializes a new instance of the BulletMLLib.BulletMLNode class.
public BulletMLNode ( ) : System
return System

FindLabelNode() public method

Find a node of a specific type and label Recurse into the xml tree until we find it!
public FindLabelNode ( string strLabel, ENodeName eName ) : BulletMLNode
strLabel string
eName ENodeName
return BulletMLNode

FindParentNode() public method

Find a parent node of the specified node type
public FindParentNode ( ENodeName nodeType ) : BulletMLNode
nodeType ENodeName Node type to find.
return BulletMLNode

GetChild() public method

public GetChild ( ENodeName name ) : BulletMLNode
name ENodeName
return BulletMLNode

GetChildValue() public method

public GetChildValue ( ENodeName name, BulletMLTask task ) : float
name ENodeName
task BulletMLTask
return float

GetRootNode() public method

Gets the root node.
public GetRootNode ( ) : BulletMLNode
return BulletMLNode

GetValue() public method

Gets the value of this node for a specific instance of a task.
public GetValue ( BulletMLTask task ) : float
task BulletMLTask Task.
return float

Parse() public method

Parse the specified bulletNodeElement. Read all the data from the xml node into this dude.
public Parse ( XmlNode bulletNodeElement, BulletMLNode parentNode ) : bool
bulletNodeElement System.Xml.XmlNode Bullet node element.
parentNode BulletMLNode
return bool

Property Details

ChildNodes public_oe property

A list of all the child nodes for this dude
public List ChildNodes
return List