C# Класс BulletMLLib.Bullet

This is the bullet class that outside assemblies will interact with. Just inherit from this class and override the abstract functions!
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Bullet ( IBulletManager myBulletManager ) : System

Initializes a new instance of the BulletMLLib.Bullet class.

FindTaskByLabel ( string strLabel ) : BulletMLTask

Finds the task by label. This recurses into child tasks to find the taks with the correct label Used only for unit testing!

FindTaskByLabelAndName ( string strLabel, ENodeName eName ) : BulletMLTask

given a label and name, find the task that matches

GetAimDir ( ) : float

Get the direction to aim that bullet

InitBullet ( ) : void

After the creation, initialize the bullet with its data (like the correct sprite, etc)

InitNode ( BulletMLLib.BulletMLNode subNode ) : void

This bullet is fired from another bullet, initialize it from the node that fired it

InitTopNode ( BulletMLLib.BulletMLNode rootNode ) : void

Initialize this bullet with a top level node

Update ( ) : void

Update this bullet. Called once every 1/60th of a second during runtime

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

Bullet() публичный метод

Initializes a new instance of the BulletMLLib.Bullet class.
public Bullet ( IBulletManager myBulletManager ) : System
myBulletManager IBulletManager My bullet manager.
Результат System

FindTaskByLabel() публичный метод

Finds the task by label. This recurses into child tasks to find the taks with the correct label Used only for unit testing!
public FindTaskByLabel ( string strLabel ) : BulletMLTask
strLabel string String label.
Результат BulletMLTask

FindTaskByLabelAndName() публичный метод

given a label and name, find the task that matches
public FindTaskByLabelAndName ( string strLabel, ENodeName eName ) : BulletMLTask
strLabel string String label of the task
eName ENodeName the name of the node the task should be attached to
Результат BulletMLTask

GetAimDir() публичный метод

Get the direction to aim that bullet
public GetAimDir ( ) : float
Результат float

InitBullet() публичный абстрактный метод

After the creation, initialize the bullet with its data (like the correct sprite, etc)
public abstract InitBullet ( ) : void
Результат void

InitNode() публичный метод

This bullet is fired from another bullet, initialize it from the node that fired it
public InitNode ( BulletMLLib.BulletMLNode subNode ) : void
subNode BulletMLLib.BulletMLNode Sub node that defines this bullet
Результат void

InitTopNode() публичный метод

Initialize this bullet with a top level node
public InitTopNode ( BulletMLLib.BulletMLNode rootNode ) : void
rootNode BulletMLLib.BulletMLNode This is a top level node... find the first "top" node and use it to define this bullet
Результат void

Update() публичный метод

Update this bullet. Called once every 1/60th of a second during runtime
public Update ( ) : void
Результат void