C# Класс Danmaku_no_Kyojin.BulletEngine.BulletMLTask

This is a task..each task is the action from a single xml node, for one bullet. basically each bullet makes a tree of these to match its pattern
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BulletMLTask ( BulletMLNode node, BulletMLTask owner ) : System.Collections.Generic

Initializes a new instance of the BulletMLLib.BulletMLTask class.

GetParamValue ( int iParamNumber ) : float

Get the value of a parameter of this task.

Parse ( BulletMLNode myNode, Bullet bullet ) : void

Parse a specified node and bullet into this task

Run ( Bullet bullet ) : ERunStatus

Run this task and all subtasks against a bullet This is called once a frame during runtime.

Защищенные методы

Метод Описание
Init ( ) : void

Init this task and all its sub tasks. This method should be called AFTER the nodes are parsed, but BEFORE run is called.

Описание методов

BulletMLTask() публичный Метод

Initializes a new instance of the BulletMLLib.BulletMLTask class.
public BulletMLTask ( BulletMLNode node, BulletMLTask owner ) : System.Collections.Generic
node BulletMLNode Node.
owner BulletMLTask Owner.
Результат System.Collections.Generic

GetParamValue() публичный Метод

Get the value of a parameter of this task.
public GetParamValue ( int iParamNumber ) : float
iParamNumber int the index of the parameter to get
Результат float

Init() защищенный Метод

Init this task and all its sub tasks. This method should be called AFTER the nodes are parsed, but BEFORE run is called.
protected Init ( ) : void
Результат void

Parse() публичный Метод

Parse a specified node and bullet into this task
public Parse ( BulletMLNode myNode, Bullet bullet ) : void
myNode BulletMLNode the node for this dude
bullet Bullet the bullet this dude is controlling
Результат void

Run() публичный Метод

Run this task and all subtasks against a bullet This is called once a frame during runtime.
public Run ( Bullet bullet ) : ERunStatus
bullet Bullet The bullet to update this task against.
Результат ERunStatus