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
Show file Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Public Methods

Method 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 method

Initializes a new instance of the BulletMLLib.Bullet class.
public Bullet ( DnK gameRef, IBulletManager myBulletManager ) : System
gameRef DnK
myBulletManager IBulletManager My bullet manager.
return System

CreateTask() public method

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
return BulletMLTask

GetAimDir() public method

Get the direction to aim that bullet
public GetAimDir ( ) : float
return float

GetFireData() public method

Gets the fire data for the current active task
public GetFireData ( ) : FireData
return FireData

Init() public method

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
return void

InitTop() public method

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
return void

Update() public method

Update this bullet. Called once every 1/60th of a second during runtime
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void