C# 클래스 flxSharp.flxSharp.FlxBasic

This is a useful "generic" Flixel object. Both FlxObject and FlxGroup extend this class, as do the plugins. Has no size, position or graphical data.
파일 보기 프로젝트 열기: jlorek/flxSharp

공개 프로퍼티들

프로퍼티 타입 설명
Cameras List
Position FlxPoint

공개 메소드들

메소드 설명
FlxBasic ( ) : System

Instantiate the basic flixel object.

destroy ( ) : void

Override this function to null out variables or manually call destroy() on class members if necessary. Don't forget to call super.destroy()!

draw ( ) : void

Override this function to control how the object is drawn. Overriding draw() is rarely necessary, but can be very useful.

drawDebug ( FlxCamera camera = null ) : void

Override this function to draw custom "debug mode" graphics to the specified camera while the debugger's visual mode is toggled on.

kill ( ) : void

Handy function for "killing" game objects. Default behavior is to flag them as nonexistent AND dead. However, if you want the "corpse" to remain in the game, like to animate an effect or whatever, you should override this, setting only alive to false, and leaving exists true.

postUpdate ( ) : void

Post-update is called right after update() on each object in the game loop.

preUpdate ( ) : void

Pre-update is called right before update() on each object in the game loop.

revive ( ) : void

Handy function for bringing game objects "back to life". Just sets alive and exists back to true. In practice, this function is most often called by FlxObject.reset().

toString ( ) : string

Convert object to readable string name. Useful for debugging, save games, etc.

update ( ) : void

Override this function to update your class's position and appearance. This is where most of your game rules and behavioral code will go.

메소드 상세

FlxBasic() 공개 메소드

Instantiate the basic flixel object.
public FlxBasic ( ) : System
리턴 System

destroy() 공개 메소드

Override this function to null out variables or manually call destroy() on class members if necessary. Don't forget to call super.destroy()!
public destroy ( ) : void
리턴 void

draw() 공개 메소드

Override this function to control how the object is drawn. Overriding draw() is rarely necessary, but can be very useful.
public draw ( ) : void
리턴 void

drawDebug() 공개 메소드

Override this function to draw custom "debug mode" graphics to the specified camera while the debugger's visual mode is toggled on.
public drawDebug ( FlxCamera camera = null ) : void
camera FlxCamera Which camera to draw the debug visuals to.
리턴 void

kill() 공개 메소드

Handy function for "killing" game objects. Default behavior is to flag them as nonexistent AND dead. However, if you want the "corpse" to remain in the game, like to animate an effect or whatever, you should override this, setting only alive to false, and leaving exists true.
public kill ( ) : void
리턴 void

postUpdate() 공개 메소드

Post-update is called right after update() on each object in the game loop.
public postUpdate ( ) : void
리턴 void

preUpdate() 공개 메소드

Pre-update is called right before update() on each object in the game loop.
public preUpdate ( ) : void
리턴 void

revive() 공개 메소드

Handy function for bringing game objects "back to life". Just sets alive and exists back to true. In practice, this function is most often called by FlxObject.reset().
public revive ( ) : void
리턴 void

toString() 공개 메소드

Convert object to readable string name. Useful for debugging, save games, etc.
public toString ( ) : string
리턴 string

update() 공개 메소드

Override this function to update your class's position and appearance. This is where most of your game rules and behavioral code will go.
public update ( ) : void
리턴 void

프로퍼티 상세

Cameras 공개적으로 프로퍼티

An array of camera objects that this object will use during draw(). This value will initialize itself during the first draw to automatically point at the main camera list out in FlxG unless you already set it. You can also change it afterward too, very flexible!
public List Cameras
리턴 List

Position 공개적으로 프로퍼티

flx# only - Internal position reference, safest if left untouched!
public FlxPoint,flxSharp.flxSharp Position
리턴 FlxPoint