C# Class BulletMLLib.Bullet

This is the bullet class that outside assemblies will interact with. Just inherit from this class and override the abstract functions!
Afficher le fichier Open project: pixelnest/BulletMLLib Class Usage Examples

Méthodes publiques

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

Method Details

Bullet() public méthode

Initializes a new instance of the BulletMLLib.Bullet class.
public Bullet ( IBulletManager myBulletManager ) : System
myBulletManager IBulletManager My bullet manager.
Résultat System

FindTaskByLabel() public méthode

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.
Résultat BulletMLTask

FindTaskByLabelAndName() public méthode

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
Résultat BulletMLTask

GetAimDir() public méthode

Get the direction to aim that bullet
public GetAimDir ( ) : float
Résultat float

InitBullet() public abstract méthode

After the creation, initialize the bullet with its data (like the correct sprite, etc)
public abstract InitBullet ( ) : void
Résultat void

InitNode() public méthode

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
Résultat void

InitTopNode() public méthode

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
Résultat void

Update() public méthode

Update this bullet. Called once every 1/60th of a second during runtime
public Update ( ) : void
Résultat void