C# Класс fliXNA_xbox.FlxBasic

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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