| Package | com.bomski.engine.kernel.view |
| Class | public class AView |
| Inheritance | AView starling.display.Sprite |
| Implements | IView |
| Subclasses | EntityView, GameView, SceneView |
| Property | Defined By | ||
|---|---|---|---|
| canRemove : Boolean
Can remove the view
| AView | ||
| displayObject : DisplayObject [read-only]
The displayobject representing the view
| AView | ||
| name : String [override] [read-only]
The name
| AView | ||
| Property | Defined By | ||
|---|---|---|---|
| _controller : IController | AView | ||
| _model : IModel | AView | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
| AView | ||
dispose():void [override]
Free all data from an object
| AView | ||
| Method | Defined By | ||
|---|---|---|---|
handleAddToStage(event:Event):void
Handle add to stage event and add the listener for the controller
| AView | ||
handleKeyDown(key:KeyboardEvent):void
Handle key down
| AView | ||
handleKeyUp(key:KeyboardEvent):void
Handle key up
| AView | ||
handleModelChange(event:ModelChangeEvent):void
Handle model change event
| AView | ||
handleModelStateChange(event:ModelChangeEvent):void
Handle model state change event
| AView | ||
handleRemoveFromStage(event:Event):void
Handle remove from stage event
| AView | ||
handleStageTouch(touch:TouchEvent):void
Handle stage touch
| AView | ||
handleTouch(touch:TouchEvent):void
Handle touch
| AView | ||
| _controller | property |
protected var _controller:IController| _model | property |
protected var _model:IModel| canRemove | property |
canRemove:BooleanCan remove the view
public function get canRemove():Boolean public function set canRemove(value:Boolean):void| displayObject | property |
displayObject:DisplayObject [read-only] The displayobject representing the view
public function get displayObject():DisplayObject| name | property |
name:String [read-only] [override] The name
public function get name():String| AView | () | Constructor |
public function AView(name:String, model:IModel = null, controller:IController = null)Constructor
Parametersname:String — The name
| |
model:IModel (default = null) — Optional a model
| |
controller:IController (default = null) — Optional a controller
|
| dispose | () | method |
override public function dispose():voidFree all data from an object
| handleAddToStage | () | method |
protected function handleAddToStage(event:Event):voidHandle add to stage event and add the listener for the controller
Parameters
event:Event |
| handleKeyDown | () | method |
protected function handleKeyDown(key:KeyboardEvent):voidHandle key down
Parameters
key:KeyboardEvent |
| handleKeyUp | () | method |
protected function handleKeyUp(key:KeyboardEvent):voidHandle key up
Parameters
key:KeyboardEvent |
| handleModelChange | () | method |
protected function handleModelChange(event:ModelChangeEvent):voidHandle model change event
Parameters
event:ModelChangeEvent |
| handleModelStateChange | () | method |
protected function handleModelStateChange(event:ModelChangeEvent):voidHandle model state change event
Parameters
event:ModelChangeEvent |
| handleRemoveFromStage | () | method |
protected function handleRemoveFromStage(event:Event):voidHandle remove from stage event
Parameters
event:Event |
| handleStageTouch | () | method |
protected function handleStageTouch(touch:TouchEvent):voidHandle stage touch
Parameters
touch:TouchEvent |
| handleTouch | () | method |
protected function handleTouch(touch:TouchEvent):voidHandle touch
Parameters
touch:TouchEvent |