C# Class Danmaku_no_Kyojin.BulletEngine.Bullet

This is the bullet class that outside assemblies will interact with. Just inherit from this class and override the abstract functions!
Inheritance: Danmaku_no_Kyojin.Entities.SpriteEntity
Afficher le fichier Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Méthodes publiques

Méthode Description
Bullet ( DnK gameRef, IBulletManager myBulletManager ) : System

Initializes a new instance of the BulletMLLib.Bullet class.

CreateTask ( ) : BulletMLTask

This is the method that should be used to create tasks for this dude, since they have to sync up with firedata objects

GetAimDir ( ) : float

Get the direction to aim that bullet

GetFireData ( ) : FireData

Gets the fire data for the current active task

Init ( BulletMLNode subNode ) : void

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

InitTop ( BulletMLNode rootNode ) : void

Initialize this bullet with a top level node

Update ( GameTime gameTime ) : 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 ( DnK gameRef, IBulletManager myBulletManager ) : System
gameRef DnK
myBulletManager IBulletManager My bullet manager.
Résultat System

CreateTask() public méthode

This is the method that should be used to create tasks for this dude, since they have to sync up with firedata objects
public CreateTask ( ) : BulletMLTask
Résultat BulletMLTask

GetAimDir() public méthode

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

GetFireData() public méthode

Gets the fire data for the current active task
public GetFireData ( ) : FireData
Résultat FireData

Init() public méthode

This bullet is fired from another bullet, initialize it from the node that fired it
public Init ( BulletMLNode subNode ) : void
subNode BulletMLNode Sub node that defines this bullet
Résultat void

InitTop() public méthode

Initialize this bullet with a top level node
public InitTop ( BulletMLNode rootNode ) : void
rootNode 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 ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void