C# 클래스 fliXNA_xbox.FlxBasic

파일 보기 프로젝트 열기: konamicode/fliXNA_xbox 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ID int
active System.Boolean
alive System.Boolean
cameras List
exists System.Boolean
ignoreDrawDebug System.Boolean
position FlxPoint
visible System.Boolean

공개 메소드들

메소드 설명
FlxBasic ( ) : System
destroy ( ) : void

Override this to null out variables or manually call destroy() on class members. Dont forget to call base.destroy()

draw ( ) : void

Override this to control how object is drawn. Refer to SpriteBatch.Draw() in MSDN documentation

drawDebug ( FlxCamera camera = null ) : void

Debugging, not yet implemented

kill ( ) : void

Killing objects, alive and exists are switched to false

postUpdate ( ) : void

Post-update is called right after update()

preUpdate ( ) : void

Pre-update is called right before update()

revive ( ) : void

Reviving objects, alive and exists are switched to true

toString ( ) : string

Returns the name of this class

update ( ) : void

Override this to update your class's position and appearance. Most of your game rules and behavioral code will go here.

메소드 상세

FlxBasic() 공개 메소드

public FlxBasic ( ) : System
리턴 System

destroy() 공개 메소드

Override this to null out variables or manually call destroy() on class members. Dont forget to call base.destroy()
public destroy ( ) : void
리턴 void

draw() 공개 메소드

Override this to control how object is drawn. Refer to SpriteBatch.Draw() in MSDN documentation
public draw ( ) : void
리턴 void

drawDebug() 공개 메소드

Debugging, not yet implemented
public drawDebug ( FlxCamera camera = null ) : void
camera FlxCamera
리턴 void

kill() 공개 메소드

Killing objects, alive and exists are switched to false
public kill ( ) : void
리턴 void

postUpdate() 공개 메소드

Post-update is called right after update()
public postUpdate ( ) : void
리턴 void

preUpdate() 공개 메소드

Pre-update is called right before update()
public preUpdate ( ) : void
리턴 void

revive() 공개 메소드

Reviving objects, alive and exists are switched to true
public revive ( ) : void
리턴 void

toString() 공개 메소드

Returns the name of this class
public toString ( ) : string
리턴 string

update() 공개 메소드

Override this to update your class's position and appearance. Most of your game rules and behavioral code will go here.
public update ( ) : void
리턴 void

프로퍼티 상세

ID 공개적으로 프로퍼티

IDs seem useful, but don't actually do anything yet
public int ID
리턴 int

active 공개적으로 프로퍼티

Controls whether update()is automatically called
public Boolean,System active
리턴 System.Boolean

alive 공개적으로 프로퍼티

Useful state for many game objects - "dead" (!alive) vs alive. kill() and revive() both flip this switch (along with exists, but you can override that.)
public Boolean,System alive
리턴 System.Boolean

cameras 공개적으로 프로퍼티

public List cameras
리턴 List

exists 공개적으로 프로퍼티

Controls whether update() and draw() are automatically called
public Boolean,System exists
리턴 System.Boolean

ignoreDrawDebug 공개적으로 프로퍼티

Setting this to true will prevent objects from appearing when visual debug mode is on. Not yet implemented
public Boolean,System ignoreDrawDebug
리턴 System.Boolean

position 공개적으로 프로퍼티

Internal position reference, safest if left untouched!
public FlxPoint position
리턴 FlxPoint

visible 공개적으로 프로퍼티

Controls whether draw() is automatically called
public Boolean,System visible
리턴 System.Boolean