This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.robotlegs.mvcs | |
| { | |
| import org.osflash.signals.ISignal; | |
| import flash.utils.Dictionary; | |
| public class SignalMap implements ISignalMap | |
| { | |
| protected var _handlersBySignal:Dictionary; | |
| public function SignalMap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function selectedHandler(option:IBudgetGameOption, vo:BudgetGameOptionVO):void | |
| { | |
| enable(vo.enables); | |
| disable(vo.disables); | |
| dispatchUpdate(vo.cost, vo.productivity); | |
| } | |
| protected function enable(option:IDisableable):void | |
| { | |
| option.enable(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IDisableable | |
| { | |
| function enable():void; | |
| function disable():void; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NullBudgetGameOption | |
| { | |
| public function NullBudgetGameOption() | |
| { | |
| } | |
| public function select():void { } | |
| public function deselect():void { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IBudgetGameOption | |
| { | |
| function select():void; | |
| function deselect():void; | |
| function enable():void; | |
| function disable():void; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected function selectedHandler(option:IBudgetGameOption, vo:BudgetGameOptionVO):void | |
| { | |
| enable(vo.enables); | |
| disable(vo.disables); | |
| dispatchUpdate(vo.cost, vo.productivity); | |
| } | |
| protected function enable(option:IBudgetGameOption):void | |
| { | |
| if(option != null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class InterestingEventTypesLookup { | |
| protected var _eventClassesByType:Dictionary; | |
| public function get eventClassesByType():Dictionary | |
| { | |
| return _eventClassesByType ||= new Dictionary(); | |
| } | |
| public function appendEventInterest(eventClass:Class, eventType:String):void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private var _currentTargetPosition:LinkedListPoint; | |
| private function createPositionTargets():void | |
| { | |
| var onPosition:LinkedListPoint = new LinkedListPoint(0, ON_STAGE_Y, null); | |
| var offPosition:LinkedListPoint = new LinkedListPoint(0, OFF_STAGE_Y, onPosition); | |
| onPosition.next = offPosition; | |
| _currentTargetPosition = offPosition; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package animation.geom | |
| { | |
| import flash.geom.Point; | |
| public class LinkedListPoint extends Point | |
| { | |
| public var next:LinkedListPoint; | |
| public function LinkedListPoint(x:Number, y:Number, nextPoint:LinkedListPoint) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private var _nextMotion:Function = revealPanel; | |
| private function togglePanelPosition(e:MouseEvent):void | |
| { | |
| _nextMotion(); | |
| } | |
| private function revealPanel():void | |
| { | |
| moveTo(ON_STAGE_Y); |