app
var cards; (function (cards) { var ImprovisationCards = (function () { function ImprovisationCards() { /*private*/ this.getalWorp = 0; this.werp(); } ImprovisationCards.prototype.werp = function () { var r = new java.util.Random(); this.getalWorp = r.nextInt(4) + 1; }; ImprovisationCards.prototype.getGetalWorp = function () { return this.getalWorp; }; ImprovisationCards.prototype.cardResult = function () { var cardResult = ""; this.werp(); this.getGetalWorp(); if (this.getalWorp === 1) { cardResult = "Angry"; } else if (this.getalWorp === 2) { cardResult = "Sad"; } else if (this.getalWorp === 3) { cardResult = "Happy"; } else if (this.getalWorp === 4) { cardResult = "Scared"; } return cardResult; }; return ImprovisationCards; }()); cards.ImprovisationCards = ImprovisationCards; ImprovisationCards["__class"] = "cards.ImprovisationCards"; })(cards || (cards = {}));