var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var RoleManager = (function () {
    function RoleManager() {
        this._roleDict = {};
        this._roleSex = {};
        this._roleSex["man1"] = 1;
        this._roleSex["man2"] = 1;
        this._roleSex["man3"] = 1;
        this._roleSex["woman1"] = 0;
        this._roleSex["woman2"] = 0;
        this._roleSex["woman3"] = 0;
    }
    RoleManager.prototype.getRole = function (roleName) {
        console.log(roleName);
        // if(this._roleDict[roleName] == null)
        // {
        return this._roleDict[roleName] = new Role(roleName, 1);
        // }
        // return <Role>this._roleDict[roleName];
    };
    RoleManager.prototype.getRoleSex = function (roleName) {
        return this._roleSex[roleName];
    };
    return RoleManager;
}());
RoleManager.ROLES = ["man1", "man2", "man3", "woman1", "woman2", "woman3"];
__reflect(RoleManager.prototype, "RoleManager");
//# sourceMappingURL=RoleManager.js.map