module GameApp . Models { 'use strict' ; export enum ChainType { chainTypeHorizontal , chainTypeVertical } export class Chain { cookies : Cookie [ ] ; chainType : ChainType ; score : number ; addCookie ( cookie ) { if ( this . cookies == null ) { this . cookies = [ ] ; } this . cookies . push ( cookie ) ; } getCookies ( ) { return this . cookies ; } } }