///////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2010 Wolfgang Kowarschick // // Permission is granted to copy, distribute and/or modify this document // under the terms of the WK License, Version 1.0 (WKL 1.0) or any later // version published by Wolfgang Kowarschick. ///////////////////////////////////////////////////////////////////////////////// package die.model { import mx.collections.ArrayCollection; import wk.mvcs.model.WK_Models; /** * @autor Wolfgang Kowarschick * @category class * @langversion 3.0 */ public class Models extends WK_Models { ///////////////////////////////////////////////////////////////////////////// // Singleton ///////////////////////////////////////////////////////////////////////////// public static const instance: Models = WK_Models.instance(Models) as Models; ///////////////////////////////////////////////////////////////////////////// // Attributes ///////////////////////////////////////////////////////////////////////////// public var dice: ArrayCollection = new ArrayCollection(); ///////////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////////// public function Models() { super(Object(this).constructor); // super(Models) does not work! for (var i: int = 0; i < ConstantsDice.NUMBER_OF_DICE; i++) dice.addItem(new ModelDie()); } ///////////////////////////////////////////////////////////////////////////// // End of class ///////////////////////////////////////////////////////////////////////////// } } ///////////////////////////////////////////////////////////////////////////////// // End of File /////////////////////////////////////////////////////////////////////////////////