C# 클래스 BulletMLLib.Bullet

This is the bullet class that outside assemblies will interact with. Just inherit from this class and override the abstract functions!
파일 보기 프로젝트 열기: pixelnest/BulletMLLib 1 사용 예제들

공개 메소드들

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

메소드 상세

Bullet() 공개 메소드

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

FindTaskByLabel() 공개 메소드

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.
리턴 BulletMLTask

FindTaskByLabelAndName() 공개 메소드

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
리턴 BulletMLTask

GetAimDir() 공개 메소드

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

InitBullet() 공개 추상적인 메소드

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

InitNode() 공개 메소드

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
리턴 void

InitTopNode() 공개 메소드

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
리턴 void

Update() 공개 메소드

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