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
파일 보기 프로젝트 열기: Noxalus/Danmaku-no-Kyojin 1 사용 예제들

공개 메소드들

메소드 설명
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