///////////////////////////////////////////////////////////////////////////////// // 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 wk.pattern.singleton.WK_Multiton; /** * @autor Wolfgang Kowarschick * @category class * @langversion 3.0 */ public class Models { ///////////////////////////////////////////////////////////////////////////// // Singleton ///////////////////////////////////////////////////////////////////////////// public static const instance: Models = WK_Multiton.instance(Models) as Models; ///////////////////////////////////////////////////////////////////////////// // Attributes ///////////////////////////////////////////////////////////////////////////// public const dice: Vector. = new Vector.(); ///////////////////////////////////////////////////////////////////////////// // Constructor ///////////////////////////////////////////////////////////////////////////// public function Models() { WK_Multiton.ensureSingleton(Models); for (var i: int = 0; i < ConstantsDice.NUMBER_OF_DICE; i++) dice.push(new ModelDie()); } ///////////////////////////////////////////////////////////////////////////// // End of class ///////////////////////////////////////////////////////////////////////////// } } ///////////////////////////////////////////////////////////////////////////////// // End of File /////////////////////////////////////////////////////////////////////////////////