text: // TypeScript file
  var TileMap = (function (_super) {
      __extends(TileMap, _super);
      function TileMap() {
          _super.call(this);
          this.size = 2;
          this.TextruesSize = 64;
          // this.width = this.size * this.TextruesSize;
          // this.height = this.size * this.TextruesSize;
          this.tileArray = [];
          this.init();
          this.startTile = this.tileArray[0];
          this.endTile = this.tileArray[0];
          this.MapCols = 10;
          this.MapRows = 10;
      }
      var d = __define,c=TileMap,p=c.prototype;
      p.init = function () {
          var Map = [
              { x: 0, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 6, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 7, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 8, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 0, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 6, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 1, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 6, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 2, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 4, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 6, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 8, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 3, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 0, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 1, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 2, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 3, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 4, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 6, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 4, y: 9, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 0, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 1, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 2, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 3, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 5, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 6, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 5, y: 9, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 0, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 1, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 2, walkable: false, pictureName: "snowMap_28_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 3, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 5, walkable: true, pictureName: "snowMap_14_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 6, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 8, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 6, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 5, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 6, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 7, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 2, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 5, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 6, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 8, y: 9, walkable: false, pictureName: "snowMap_13_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 0, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 1, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 2, walkable: true, pictureName: "snowMap_31_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 3, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 4, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 5, walkable: false, pictureName: "snowMap_07_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 6, walkable: false, pictureName: "snowMap_15_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 7, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 8, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
              { x: 9, y: 9, walkable: true, pictureName: "snowMap_01_png", f: 0, g: 0, h: 0, costMultiplier: 1.0 },
          ];
          for (var i = 0; i < Map.length; i++) {
              var tiledata = Map[i];
              var tile = new Tile(tiledata);
              this.addChild(tile);
              tile.x = tiledata.x * 64;
              tile.y = tiledata.y * 64;
              this.tileArray.push(tile);
          }
      };
      p.getTile = function (x, y) {
          for (var i = 0; i < this.tileArray.length; i++) {
              if (this.tileArray[i].x / this.TextruesSize == x && this.tileArray[i].y / this.TextruesSize == y) {
                  break;
              }
          }
          return this.tileArray[i];
      };
      p.setStartTile = function (x, y) {
          for (var i = 0; i < this.tileArray.length; i++) {
              if (this.tileArray[i].x / this.TextruesSize == x && this.tileArray[i].y / this.TextruesSize == y) {
                  break;
              }
          }
          this.startTile = this.tileArray[i];
      };
      p.setEndTile = function (x, y) {
          for (var i = 0; i < this.tileArray.length; i++) {
              if (this.tileArray[i].x / this.TextruesSize == x && this.tileArray[i].y / this.TextruesSize == y) {
                  break;
              }
          }
          this.endTile = this.tileArray[i];
      };
      p.getNumCols = function () {
          return this.MapCols;
      };
      p.getNumRows = function () {
          return this.MapRows;
      };
      p.getStartTile = function () {
          return this.startTile;
      };
      return TileMap;
  }(egret.DisplayObjectContainer));
  egret.registerClass(TileMap,'TileMap');
  var Tile = (function (_super) {
      __extends(Tile, _super);
      function Tile(tiledata) {
          _super.call(this);
          this.bitmapSize = 64;
          this.tileData = tiledata;
          this.bitmaps = new egret.Bitmap();
          this.addChild(this.bitmaps);
          this.bitmaps.texture = RES.getRes(tiledata.pictureName);
          this.bitmaps.width = this.bitmapSize;
          this.bitmaps.height = this.bitmapSize;
      }
      var d = __define,c=Tile,p=c.prototype;
      return Tile;
  }(egret.DisplayObjectContainer));
  egret.registerClass(Tile,'Tile');
  var TileData = (function () {
      function TileData() {
          this.costMultiplier = 1.0;
      }
      var d = __define,c=TileData,p=c.prototype;
      return TileData;
  }());
  egret.registerClass(TileData,'TileData');
  //# sourceMappingURL=CreateSnowMap.js.map