C# Класс 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!
Наследование: Danmaku_no_Kyojin.Entities.SpriteEntity
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

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

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

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

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
Результат BulletMLTask

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

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

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

Gets the fire data for the current active task
public GetFireData ( ) : FireData
Результат FireData

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

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
Результат void

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

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
Результат void

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

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