PageRenderTime 70ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 1ms

/World.hx

http://portable-monsters.googlecode.com/
Haxe | 1167 lines | 1018 code | 111 blank | 38 comment | 38 complexity | 423494543572eec840ac6bcb1d7a1ef5 MD5 | raw file
  1. import flash.display.Sprite;
  2. import flash.display.Bitmap;
  3. import flash.display.BitmapData;
  4. import flash.events.Event;
  5. import flash.events.KeyboardEvent;
  6. import flash.events.MouseEvent;
  7. import flash.geom.Point;
  8. import flash.geom.Rectangle;
  9. import flash.text.TextField;
  10. import flash.text.TextFieldAutoSize;
  11. import flash.text.TextFormat;
  12. import flash.text.TextFormatAlign;
  13. import flash.utils.Timer;
  14. import haxe.Timer;
  15. import flash.net.SharedObject;
  16. import Images;
  17. import Kongregate;
  18. import Monster;
  19. import CustomList;
  20. class World extends Sprite{
  21. private var myTimer:Timer;
  22. public var volume:Bool;
  23. var kongVar : CKongregate;
  24. public var Items:ItemList;
  25. public var Characters:List<Character>;
  26. public var Trainers:List<EnemyTrainer>;
  27. public var currentTrainer:EnemyTrainer;
  28. public var currentTalkingCharacter:Character;
  29. public var currentTalkingStep:Int;
  30. public var ExclamationMark:TileModel;
  31. public var currentPlot:Plot;
  32. public var WaitTime:Int;
  33. //List Of Buildings
  34. public var Buildings:List<Building>;
  35. public var currentBuilding:Building;
  36. private var _terrainBitmapData:BitmapData;
  37. private var _terrainBitmap:Bitmap;
  38. private var _backgroundBitmapData:BitmapData;
  39. private var _backgroundBitmap:Bitmap;
  40. private var _frontBitmapData:BitmapData;
  41. private var _frontBitmap:Bitmap;
  42. private var _doorsBitmapData:BitmapData;
  43. private var _doorsBitmap:Bitmap;
  44. private var _itemsBitmapData:BitmapData;
  45. private var _itemsBitmap:Bitmap;
  46. private var _foregroundBitmapData:BitmapData;
  47. private var _foregroundBitmap:Bitmap;
  48. private var _tileSheetBitmapData:TileSheet;
  49. private var _collisionController:TileCollisionController;
  50. public var Nathan:Character;
  51. private var _MainCharacterModel:TileModel;
  52. private var _MainCharacterController:MainCharacterController;
  53. private var _MainCharacterView:MainCharacterView;
  54. public static inline var MAX_TILE_SIZE:Int = 32;
  55. private var MAP_COLUMNS:Int;
  56. private var MAP_ROWS:Int;
  57. private var MAP_WIDTH:Int;
  58. private var MAP_HEIGHT:Int;
  59. private var MAP_X:Int;
  60. private var MAP_Y:Int;
  61. public var _terrainMap:Array<Array<Int>>;
  62. public var _backgroundMap:Array<Array<Int>>;
  63. private var _frontMap:Array<Array<Int>>;
  64. private var _doorsMap:Array<Array<Int>>;
  65. public var _itemsMap:Array<Array<Int>>;
  66. private var _gameObjectMap:Array<Array<Int>>;
  67. private var _trainerMap:Array<Array<Int>>;
  68. private var _trainerSightMap:Array<Array<Int>>;
  69. private var _characterMap:Array<Array<Int>>;
  70. private var MAIN:Int;
  71. //Objects
  72. private var ITEM:Int;
  73. private var TOMB:Int;
  74. public var TREE:Int;
  75. public var PLNT:Int;
  76. public var HBED:Int;
  77. //House
  78. private var HUPL:Int;
  79. private var HUPC:Int;
  80. private var HUPR:Int;
  81. private var HLOL:Int;
  82. private var DOOR:Int;
  83. private var HLOR:Int;
  84. public var HBUL:Int;
  85. public var HBUC:Int;
  86. public var HBUR:Int;
  87. public var HBLL:Int;
  88. public var BDOR:Int;
  89. public var HBLR:Int;
  90. public var HOUL:Int;
  91. public var HOUC:Int;
  92. public var HOUR:Int;
  93. public var HOLL:Int;
  94. public var ODOR:Int;
  95. public var HOLR:Int;
  96. public var HPUL:Int;
  97. public var HPUC:Int;
  98. public var HPUR:Int;
  99. public var HPLL:Int;
  100. public var PDOR:Int;
  101. public var HPLR:Int;
  102. public var HWUL:Int;
  103. public var HWUC:Int;
  104. public var HWUR:Int;
  105. public var HWLL:Int;
  106. public var WDOR:Int;
  107. public var HWLR:Int;
  108. public var HCUL:Int;
  109. public var HCUC:Int;
  110. public var HCUR:Int;
  111. public var HCLL:Int;
  112. public var CDOR:Int;
  113. public var HCLR:Int;
  114. public var TNHL:Int;
  115. public var HLTH:Int;
  116. public var MART:Int;
  117. public var STRS:Int;
  118. //Gym
  119. public var BGM1:Int;
  120. public var BGM2:Int;
  121. public var BGM3:Int;
  122. public var BGM4:Int;
  123. public var BGM5:Int;
  124. public var BGM6:Int;
  125. public var BGM7:Int;
  126. public var BGM8:Int;
  127. public var OGM1:Int;
  128. public var OGM2:Int;
  129. public var OGM3:Int;
  130. public var OGM4:Int;
  131. public var OGM5:Int;
  132. public var OGM6:Int;
  133. public var OGM7:Int;
  134. public var OGM8:Int;
  135. public var PGM1:Int;
  136. public var PGM2:Int;
  137. public var PGM3:Int;
  138. public var PGM4:Int;
  139. public var PGM5:Int;
  140. public var PGM6:Int;
  141. public var PGM7:Int;
  142. public var PGM8:Int;
  143. public var WGM1:Int;
  144. public var WGM2:Int;
  145. public var WGM3:Int;
  146. public var WGM4:Int;
  147. public var WGM5:Int;
  148. public var WGM6:Int;
  149. public var WGM7:Int;
  150. public var WGM8:Int;
  151. //Terrian
  152. private var GRAS:Int;
  153. private var GGRA:Int;
  154. private var MONT:Int;
  155. private var STRM:Int;
  156. private var BRDG:Int;
  157. private var BRKN:Int;
  158. private var SAND:Int;
  159. private var LK01:Int;
  160. private var LK02:Int;
  161. private var LK03:Int;
  162. private var LK04:Int;
  163. private var LK05:Int;
  164. private var LK06:Int;
  165. private var LK07:Int;
  166. private var LK08:Int;
  167. private var LK09:Int;
  168. //Roads
  169. //Regular
  170. private var ROAD:Int;
  171. //up
  172. private var ROUP:Int;
  173. //Corners
  174. private var RURC:Int;
  175. public var RLRC:Int;
  176. public var RLLC:Int;
  177. public var RULC:Int;
  178. //1 openings
  179. public var RD1O:Int;
  180. public var RL1O:Int;
  181. public var RU1O:Int;
  182. public var RR1O:Int;
  183. public var R4WY:Int;
  184. //Fence
  185. private var FEUP:Int;
  186. private var FERT:Int;
  187. private var FEDN:Int;
  188. private var FELT:Int;
  189. public var EXIT:Int;
  190. public var EXRI:Int;
  191. public var EXUP:Int;
  192. public var EXLE:Int;
  193. public var TILE:Int;
  194. public var KTIL:Int;
  195. public var YTIL:Int;
  196. public var BFLR:Int;
  197. public var RTIL:Int;
  198. public var OFLR:Int;
  199. public var PTIL:Int;
  200. public var GFLR:Int;
  201. public var E400:Int;
  202. public var E401:Int;
  203. public var E402:Int;
  204. public var E403:Int;
  205. public var E404:Int;
  206. public var E405:Int;
  207. public var E406:Int;
  208. public var E407:Int;
  209. public var E408:Int;
  210. public var E409:Int;
  211. public var E410:Int;
  212. public var E411:Int;
  213. public var E412:Int;
  214. public var E413:Int;
  215. public var E414:Int;
  216. public var E415:Int;
  217. public var E416:Int;
  218. public var E417:Int;
  219. public var E418:Int;
  220. public var E419:Int;
  221. public var E420:Int;
  222. public var E421:Int;
  223. public var E422:Int;
  224. public var E423:Int;
  225. public var E424:Int;
  226. public var E425:Int;
  227. public var E426:Int;
  228. public var E427:Int;
  229. public var E428:Int;
  230. public var E429:Int;
  231. public var E430:Int;
  232. public var E431:Int;
  233. public var E432:Int;
  234. public var E433:Int;
  235. public var E434:Int;
  236. public var E435:Int;
  237. public var E436:Int;
  238. public var E437:Int;
  239. public var E438:Int;
  240. public var E439:Int;
  241. public var E440:Int;
  242. public var E441:Int;
  243. public var E442:Int;
  244. public var E443:Int;
  245. public var E444:Int;
  246. public var E445:Int;
  247. public var E446:Int;
  248. public var E447:Int;
  249. public var E448:Int;
  250. public var E449:Int;
  251. public var E450:Int;
  252. public var E451:Int;
  253. public var E452:Int;
  254. public var E453:Int;
  255. public var E454:Int;
  256. public var E455:Int;
  257. public var E456:Int;
  258. public var E457:Int;
  259. public var E458:Int;
  260. public var E459:Int;
  261. public var E460:Int;
  262. public var E461:Int;
  263. public var E462:Int;
  264. public var E463:Int;
  265. public var E464:Int;
  266. public var E465:Int;
  267. public var E466:Int;
  268. public var E467:Int;
  269. public var E468:Int;
  270. public var E469:Int;
  271. public var E470:Int;
  272. public var E471:Int;
  273. public var E472:Int;
  274. public var E473:Int;
  275. public var E474:Int;
  276. public var E475:Int;
  277. public var E476:Int;
  278. public var E477:Int;
  279. public var E478:Int;
  280. public var E479:Int;
  281. public var E480:Int;
  282. public var E481:Int;
  283. public var E482:Int;
  284. public var E483:Int;
  285. public var E484:Int;
  286. public var E485:Int;
  287. public var E486:Int;
  288. public var E487:Int;
  289. public var E488:Int;
  290. public var E489:Int;
  291. public var E490:Int;
  292. public var E491:Int;
  293. public var E492:Int;
  294. public var E493:Int;
  295. public var E494:Int;
  296. public var E495:Int;
  297. public var TE00:Int;
  298. public var TE01:Int;
  299. public var TE02:Int;
  300. public var TE03:Int;
  301. public var TE04:Int;
  302. public var TE05:Int;
  303. public var TE06:Int;
  304. public var TE07:Int;
  305. public var TE08:Int;
  306. public var TE09:Int;
  307. public var TE10:Int;
  308. public var TE11:Int;
  309. public var TE12:Int;
  310. public var TE13:Int;
  311. public var TE14:Int;
  312. public var TE15:Int;
  313. public var TE16:Int;
  314. public var TE17:Int;
  315. public var TE18:Int;
  316. public var TE19:Int;
  317. public var TE20:Int;
  318. public var TE21:Int;
  319. public var TE22:Int;
  320. public var TE23:Int;
  321. public var PromptYes:Sprite;
  322. public var PromptNo:Sprite;
  323. public var WorldMap:Sprite;
  324. public var TextBox:Sprite;
  325. public var Text:TextField;
  326. public var RandomBattleImage:Sprite;
  327. public var BattleField:Sprite;
  328. public var CurrentBattle:BattleScreen;
  329. public var BattleWait:Int;
  330. public var State:String;
  331. public var MainTrainer:Trainer;
  332. public var ZakiTrainer:EnemyTrainer;
  333. private var mKeyDown:Array<Bool>;
  334. private var Pause:String;
  335. public var pauseMenu:PauseMenu;
  336. private var _camera:Rectangle;
  337. public function new(){
  338. super();
  339. haxe.remoting.AMFConnection.registerClassAlias("TrainerAlias",Trainer);
  340. haxe.remoting.AMFConnection.registerClassAlias("MonsterAlias",Monster);
  341. haxe.remoting.AMFConnection.registerClassAlias("PlotAlias",Plot);
  342. haxe.remoting.AMFConnection.registerClassAlias("ItemAlias",Item);
  343. haxe.remoting.AMFConnection.registerClassAlias("MoveAlias", Move);
  344. haxe.remoting.AMFConnection.registerClassAlias("AttackTextAlias", AttackText);
  345. haxe.remoting.AMFConnection.registerClassAlias("PointAlias",Point);
  346. haxe.remoting.AMFConnection.registerClassAlias("EnemyTrainerDataAlias",EnemyTrainerData);
  347. haxe.remoting.AMFConnection.registerClassAlias("CharactersDataAlias",CharactersData);
  348. haxe.remoting.AMFConnection.registerClassAlias("BuildingDataAlias",BuildingData);
  349. haxe.remoting.AMFConnection.registerClassAlias("MonsterListAlias",MonsterList);
  350. haxe.remoting.AMFConnection.registerClassAlias("ItemListAlias",ItemList);
  351. haxe.remoting.AMFConnection.registerClassAlias("MoveListAlias",MoveList);
  352. haxe.remoting.AMFConnection.registerClassAlias("EnemyTrainerDataListAlias",EnemyTrainerDataList);
  353. haxe.remoting.AMFConnection.registerClassAlias("CharactersDataListAlias",CharactersDataList);
  354. haxe.remoting.AMFConnection.registerClassAlias("BuildingDataListAlias",BuildingDataList);
  355. LoadConstants();
  356. volume = false;
  357. Items = new ItemList();
  358. //addChild(WorldMap);
  359. State = "Playing";
  360. mKeyDown = [];
  361. Pause = "UnPaused";
  362. var tileSheetColumn:Int = Std.int(03 / 100);
  363. var tileSheetRow:Int = Std.int(03 % 100);
  364. ExclamationMark = new TileModel
  365. (
  366. MAX_TILE_SIZE,
  367. tileSheetColumn, tileSheetRow,
  368. 1, 1,
  369. MAX_TILE_SIZE, MAX_TILE_SIZE
  370. );
  371. MAP_X = 0;
  372. MAP_Y = 0;
  373. initializeNewData();
  374. Trainers = new List<EnemyTrainer>();
  375. Characters = new List<Character>();
  376. currentTalkingStep = 0;
  377. // myTimer = new Timer(12);
  378. // myTimer.addEventListener("timer", OnEnter);
  379. // myTimer.start();
  380. RandomBattleImage = new Sprite();
  381. RandomBattleImage.graphics.beginFill(0x000000);
  382. RandomBattleImage.graphics.drawRect(0,0,640,512);
  383. RandomBattleImage.graphics.endFill();
  384. TextBox = new Sprite();
  385. TextBox.graphics.beginFill(0xFFFFFF);
  386. TextBox.graphics.lineStyle(10);
  387. TextBox.graphics.drawRect(5,5,630,100);
  388. TextBox.graphics.endFill();
  389. Text = new TextField();
  390. Text.htmlText = "";
  391. Text.x = 10;
  392. Text.y = 10;
  393. Text.width = 620;
  394. Text.wordWrap = true;
  395. Text.selectable = false;
  396. TextBox.addChild(Text);
  397. PromptYes = new Sprite();
  398. PromptYes.graphics.beginFill(0xFFFFFF);
  399. PromptYes.graphics.lineStyle(1);
  400. PromptYes.graphics.drawRect(5,5,30,30);
  401. PromptYes.graphics.endFill();
  402. var YesText = new TextField();
  403. YesText.htmlText = "Yes";
  404. YesText.x = 10;
  405. YesText.y = 10;
  406. YesText.width = 620;
  407. YesText.wordWrap = true;
  408. YesText.selectable = false;
  409. YesText.mouseEnabled = false;
  410. PromptYes.addChild(YesText);
  411. PromptYes.addEventListener(MouseEvent.CLICK, onPromptYesClicked);
  412. PromptYes.buttonMode =true;
  413. //TextBox.addChild(PromptYes);
  414. PromptYes.y = 60;
  415. PromptYes.x = 300;
  416. PromptNo = new Sprite();
  417. PromptNo.graphics.beginFill(0xFFFFFF);
  418. PromptNo.graphics.lineStyle(1);
  419. PromptNo.graphics.drawRect(5,5,30,30);
  420. PromptNo.graphics.endFill();
  421. var NoText = new TextField();
  422. NoText.htmlText = "No";
  423. NoText.x = 10;
  424. NoText.y = 10;
  425. NoText.width = 620;
  426. NoText.wordWrap = true;
  427. NoText.selectable = false;
  428. NoText.mouseEnabled = false;
  429. PromptNo.addChild(NoText);
  430. PromptNo.buttonMode = true;PromptNo.addEventListener(MouseEvent.CLICK, onPromptNoClicked);
  431. //TextBox.addChild(PromptNo);
  432. PromptNo.y = 60;
  433. PromptNo.x = 360;
  434. _tileSheetBitmapData = new TileSheet();
  435. _collisionController = new TileCollisionController();
  436. LoadMapData();
  437. LoadTrainerData();
  438. buildMap(_terrainMap,_terrainBitmapData);
  439. buildMap(_backgroundMap,_backgroundBitmapData);
  440. buildMap(_frontMap,_frontBitmapData);
  441. buildMap(_doorsMap,_doorsBitmapData);
  442. drawItems();
  443. WorldMap = new Sprite();
  444. addChild(WorldMap);
  445. WorldMap.addChild(_terrainBitmap);
  446. WorldMap.addChild(_backgroundBitmap);
  447. WorldMap.addChild(_doorsBitmap);
  448. WorldMap.addChild(_itemsBitmap);
  449. WorldMap.addChild(_foregroundBitmap);
  450. WorldMap.addChild(_frontBitmap);
  451. //Buildings
  452. }
  453. public function updateGymCost()
  454. {
  455. var tempBuilding:Building;
  456. if(currentPlot.JoyBadge)
  457. {
  458. tempBuilding = new BuildingGym1();
  459. for(building in Buildings)
  460. {
  461. if(building.MapDoorLocation.x == tempBuilding.MapDoorLocation.x && building.MapDoorLocation.y == tempBuilding.MapDoorLocation.y)
  462. {
  463. building.Cost = -1;
  464. break;
  465. }
  466. }
  467. }
  468. if(currentPlot.AngerBadge)
  469. {
  470. var tempBuilding = new BuildingGym2();
  471. for(building in Buildings)
  472. {
  473. if(building.MapDoorLocation.x == tempBuilding.MapDoorLocation.x && building.MapDoorLocation.y == tempBuilding.MapDoorLocation.y)
  474. {
  475. building.Cost = -1;
  476. break;
  477. }
  478. }
  479. }
  480. if(currentPlot.ConfusionBadge)
  481. {
  482. var tempBuilding = new BuildingGym3();
  483. for(building in Buildings)
  484. {
  485. if(building.MapDoorLocation.x == tempBuilding.MapDoorLocation.x && building.MapDoorLocation.y == tempBuilding.MapDoorLocation.y)
  486. {
  487. building.Cost = -1;
  488. break;
  489. }
  490. }
  491. }
  492. if(currentPlot.BlankBadge)
  493. {
  494. var tempBuilding = new BuildingGym4();
  495. for(building in Buildings)
  496. {
  497. if(building.MapDoorLocation.x == tempBuilding.MapDoorLocation.x && building.MapDoorLocation.y == tempBuilding.MapDoorLocation.y)
  498. {
  499. building.Cost = -1;
  500. break;
  501. }
  502. }
  503. }
  504. }
  505. public function onPromptYesClicked(event:MouseEvent)
  506. {
  507. TextBox.removeChild(PromptYes);
  508. TextBox.removeChild(PromptNo);
  509. removeChild(TextBox);
  510. stage.focus = stage;
  511. MainTrainer.Money -= currentBuilding.Cost;
  512. removeChild(WorldMap);
  513. currentBuilding.LoadBuilding(volume,kongVar,MainTrainer,currentPlot);
  514. addChild(currentBuilding);
  515. currentBuilding.addEventListener("Exit",onBuildingExit);
  516. currentBuilding.addEventListener("Save",onSave);
  517. State = "";
  518. }
  519. public function onPromptNoClicked(event:MouseEvent)
  520. {
  521. TextBox.removeChild(PromptYes);
  522. TextBox.removeChild(PromptNo);
  523. removeChild(TextBox);
  524. stage.focus = stage;
  525. _MainCharacterModel.setY = _MainCharacterModel.yPos + MAX_TILE_SIZE;
  526. _MainCharacterModel.vy = 0;_MainCharacterModel.vx = 0;
  527. _MainCharacterModel.update();
  528. State = "Playing";
  529. }
  530. public function onSaveBuildingData():BuildingDataList
  531. {
  532. var buildings = new BuildingDataList();
  533. for(building in Buildings)
  534. {
  535. var buildingData = new BuildingData();
  536. buildingData.Characters = new CharactersDataList();
  537. for(char in building.Characters)
  538. {
  539. var charData = new CharactersData();
  540. charData.TalkedTo = char.TalkedTo;
  541. charData.ID = char.ID;
  542. charData.Location = new Point(char.centerX*MAX_TILE_SIZE,char.centerY*MAX_TILE_SIZE);
  543. buildingData.Characters.add(charData);
  544. }
  545. buildingData.Trainers = new EnemyTrainerDataList();
  546. for(trainer in building.Trainers)
  547. {
  548. var trainerData = new EnemyTrainerData();
  549. trainerData.Battled = trainer.Battled;
  550. trainerData.ID = trainer.ID;
  551. trainerData.Location = new Point(trainer.Model.centerX*MAX_TILE_SIZE,trainer.Model.centerY*MAX_TILE_SIZE);
  552. buildingData.Trainers.add(trainerData);
  553. }
  554. buildingData.BackgroundMap = building._backgroundMap;
  555. buildingData.Location = new Point(building.MapDoorLocation.x,building.MapDoorLocation.y);
  556. buildings.add(buildingData);
  557. }
  558. return buildings;
  559. }
  560. public function onSaveCharacterData():CharactersDataList
  561. {
  562. var characters = new CharactersDataList();
  563. for(char in Characters)
  564. {
  565. var charData = new CharactersData();
  566. charData.TalkedTo = char.TalkedTo;
  567. charData.ID = char.ID;
  568. charData.Location = new Point(char.centerX*MAX_TILE_SIZE,char.centerY*MAX_TILE_SIZE);
  569. characters.add(charData);
  570. }
  571. return characters;
  572. }
  573. public function onSaveTrainerData():EnemyTrainerDataList
  574. {
  575. var trainers = new EnemyTrainerDataList();
  576. for(trainer in Trainers)
  577. {
  578. var trainerData = new EnemyTrainerData();
  579. trainerData.Battled = trainer.Battled;
  580. trainerData.ID = trainer.ID;
  581. trainerData.Location = new Point(trainer.Model.centerX*MAX_TILE_SIZE,trainer.Model.centerY*MAX_TILE_SIZE);
  582. trainers.add(trainerData);
  583. }
  584. return trainers;
  585. }
  586. public function onSave(event:Event)
  587. {
  588. try
  589. {
  590. kongVar.SubmitStat("MoneySentHome", MainTrainer.MoneySentHome);
  591. var count = 0;
  592. for(monster in MainTrainer.Monsters)
  593. {
  594. count++;
  595. }
  596. for(monster in MainTrainer.MonstersArchive)
  597. {
  598. count++;
  599. }
  600. kongVar.SubmitStat("MonstersCaught", count);
  601. var Badges = 0;
  602. if(currentPlot.JoyBadge)
  603. {
  604. Badges++;
  605. }
  606. if(currentPlot.AngerBadge)
  607. {
  608. Badges++;
  609. }
  610. if(currentPlot.ConfusionBadge)
  611. {
  612. Badges++;
  613. }
  614. if(currentPlot.BlankBadge)
  615. {
  616. Badges++;
  617. }
  618. kongVar.SubmitStat("Badges", Badges);
  619. }
  620. catch (e:Dynamic)
  621. {
  622. }
  623. var savedData = SharedObject.getLocal("GameData");
  624. //savedData.data.DoorsMap = _doorsMap;
  625. savedData.data.MainTrainer = MainTrainer;
  626. savedData.data.Plot = currentPlot;
  627. savedData.data.ModelXPos = _MainCharacterModel.centerX*MAX_TILE_SIZE;
  628. savedData.data.ModelYPos = _MainCharacterModel.centerY*MAX_TILE_SIZE;
  629. savedData.data.ModelDirection = _MainCharacterModel.direction;
  630. //Maps
  631. savedData.data.Items = Items;
  632. savedData.data.TerrianMap = _terrainMap;
  633. savedData.data.BackgroundMap = _backgroundMap;
  634. savedData.data.EnemyTrainerDataList = onSaveTrainerData();
  635. savedData.data.CharactersDataList = onSaveCharacterData();
  636. savedData.data.BuildingDataList = onSaveBuildingData();
  637. var Saved = new FadingMovingText();
  638. Saved.htmlText = "Saved";
  639. Saved.Direction = "DOWN";
  640. Saved.x =640-75;
  641. Saved.y =255;
  642. Saved.start();
  643. // savedData.data.Money = MainTrainer.Money;
  644. // savedData.data.Monsters = MainTrainer.Monsters;
  645. // savedData.data.MonstersArchive = MainTrainer.MonstersArchive;
  646. // savedData.data.CurrentMonster = MainTrainer.CurrentMonster;
  647. // savedData.data.CurrentInventory = Items;
  648. // savedData.flush();
  649. // trace(savedData.data.Money);
  650. }
  651. public function LoadConstants()
  652. {
  653. MAIN = Constants.MAIN;
  654. //Objects
  655. ITEM = Constants.ITEM;
  656. TOMB = Constants.TOMB;
  657. TREE = Constants.TREE;
  658. PLNT = Constants.PLNT;
  659. HBED = Constants.HBED;
  660. //House
  661. HUPL = Constants.HUPL;
  662. HUPC = Constants.HUPC;
  663. HUPR = Constants.HUPR;
  664. HLOL = Constants.HLOL;
  665. DOOR = Constants.DOOR;
  666. HLOR = Constants.HLOR;
  667. HBUL = Constants.HBUL;
  668. HBUC = Constants.HBUC;
  669. HBUR = Constants.HBUR;
  670. HBLL = Constants.HBLL;
  671. BDOR = Constants.BDOR;
  672. HBLR = Constants.HBLR;
  673. HOUL = Constants.HOUL;
  674. HOUC = Constants.HOUC;
  675. HOUR = Constants.HOUR;
  676. HOLL = Constants.HOLL;
  677. ODOR = Constants.ODOR;
  678. HOLR = Constants.HOLR;
  679. HPUL = Constants.HPUL;
  680. HPUC = Constants.HPUC;
  681. HPUR = Constants.HPUR;
  682. HPLL = Constants.HPLL;
  683. PDOR = Constants.PDOR;
  684. HPLR = Constants.HPLR;
  685. HWUL = Constants.HWUL;
  686. HWUC = Constants.HWUC;
  687. HWUR = Constants.HWUR;
  688. HWLL = Constants.HWLL;
  689. WDOR = Constants.WDOR;
  690. HWLR = Constants.HWLR;
  691. HCUL = Constants.HCUL;
  692. HCUC = Constants.HCUC;
  693. HCUR = Constants.HCUR;
  694. HCLL = Constants.HCLL;
  695. CDOR = Constants.CDOR;
  696. HCLR = Constants.HCLR;
  697. TNHL = Constants.TNHL;
  698. HLTH = Constants.HLTH;
  699. MART = Constants.MART;
  700. STRS = Constants.STRS;
  701. //Gym
  702. BGM1 = Constants.BGM1;
  703. BGM2 = Constants.BGM2;
  704. BGM3 = Constants.BGM3;
  705. BGM4 = Constants.BGM4;
  706. BGM5 = Constants.BGM5;
  707. BGM6 = Constants.BGM6;
  708. BGM7 = Constants.BGM7;
  709. BGM8 = Constants.BGM8;
  710. OGM1 = Constants.OGM1;
  711. OGM2 = Constants.OGM2;
  712. OGM3 = Constants.OGM3;
  713. OGM4 = Constants.OGM4;
  714. OGM5 = Constants.OGM5;
  715. OGM6 = Constants.OGM6;
  716. OGM7 = Constants.OGM7;
  717. OGM8 = Constants.OGM8;
  718. PGM1 = Constants.PGM1;
  719. PGM2 = Constants.PGM2;
  720. PGM3 = Constants.PGM3;
  721. PGM4 = Constants.PGM4;
  722. PGM5 = Constants.PGM5;
  723. PGM6 = Constants.PGM6;
  724. PGM7 = Constants.PGM7;
  725. PGM8 = Constants.PGM8;
  726. WGM1 = Constants.WGM1;
  727. WGM2 = Constants.WGM2;
  728. WGM3 = Constants.WGM3;
  729. WGM4 = Constants.WGM4;
  730. WGM5 = Constants.WGM5;
  731. WGM6 = Constants.WGM6;
  732. WGM7 = Constants.WGM7;
  733. WGM8 = Constants.WGM8;
  734. //Terrian
  735. GRAS = Constants.GRAS;
  736. GGRA = Constants.GGRA;
  737. MONT = Constants.MONT;
  738. STRM = Constants.STRM;
  739. BRDG = Constants.BRDG;
  740. BRKN = Constants.BRKN;
  741. SAND = Constants.SAND;
  742. LK01 = Constants.LK01;
  743. LK02 = Constants.LK02;
  744. LK03 = Constants.LK03;
  745. LK04 = Constants.LK04;
  746. LK05 = Constants.LK05;
  747. LK06 = Constants.LK06;
  748. LK07 = Constants.LK07;
  749. LK08 = Constants.LK08;
  750. LK09 = Constants.LK09;
  751. //Roads
  752. //Regular
  753. ROAD = Constants.ROAD;
  754. //up
  755. ROUP = Constants.ROUP;
  756. //Corners
  757. RURC = Constants.RURC;
  758. RLRC = Constants.RLRC;
  759. RLLC = Constants.RLLC;
  760. RULC = Constants.RULC;
  761. //1 openings
  762. RD1O = Constants.RD1O;
  763. RL1O = Constants.RL1O;
  764. RU1O = Constants.RU1O;
  765. RR1O = Constants.RR1O;
  766. R4WY = Constants.R4WY;
  767. //Fence
  768. FEUP = Constants.FEUP;
  769. FERT = Constants.FERT;
  770. FEDN = Constants.FEDN;
  771. FELT = Constants.FELT;
  772. EXIT= Constants.EXIT;
  773. EXRI= Constants.EXRI;
  774. EXUP= Constants.EXUP;
  775. EXLE= Constants.EXLE;
  776. TILE = Constants.TILE;
  777. KTIL = Constants.KTIL;
  778. YTIL = Constants.YTIL;
  779. BFLR = Constants.BFLR;
  780. RTIL = Constants.RTIL;
  781. OFLR = Constants.OFLR;
  782. PTIL = Constants.PTIL;
  783. GFLR = Constants.GFLR;
  784. E400 = Constants.E400;
  785. E401 = Constants.E401;
  786. E402 = Constants.E402;
  787. E403 = Constants.E403;
  788. E404 = Constants.E404;
  789. E405 = Constants.E405;
  790. E406 = Constants.E406;
  791. E407 = Constants.E407;
  792. E408 = Constants.E408;
  793. E409 = Constants.E409;
  794. E410 = Constants.E410;
  795. E411 = Constants.E411;
  796. E412 = Constants.E412;
  797. E413 = Constants.E413;
  798. E414 = Constants.E414;
  799. E415 = Constants.E415;
  800. E416 = Constants.E416;
  801. E417 = Constants.E417;
  802. E418 = Constants.E418;
  803. E419 = Constants.E419;
  804. E420 = Constants.E420;
  805. E421 = Constants.E421;
  806. E422 = Constants.E422;
  807. E423 = Constants.E423;
  808. E424 = Constants.E424;
  809. E425 = Constants.E425;
  810. E426 = Constants.E426;
  811. E427 = Constants.E427;
  812. E428 = Constants.E428;
  813. E429 = Constants.E429;
  814. E430 = Constants.E430;
  815. E431 = Constants.E431;
  816. E432 = Constants.E432;
  817. E433 = Constants.E433;
  818. E434 = Constants.E434;
  819. E435 = Constants.E435;
  820. E436 = Constants.E436;
  821. E437 = Constants.E437;
  822. E438 = Constants.E438;
  823. E439 = Constants.E439;
  824. E440 = Constants.E440;
  825. E441 = Constants.E441;
  826. E442 = Constants.E442;
  827. E443 = Constants.E443;
  828. E444 = Constants.E444;
  829. E445 = Constants.E445;
  830. E446 = Constants.E446;
  831. E447 = Constants.E447;
  832. E448 = Constants.E448;
  833. E449 = Constants.E449;
  834. E450 = Constants.E450;
  835. E451 = Constants.E451;
  836. E452 = Constants.E452;
  837. E453 = Constants.E453;
  838. E454 = Constants.E454;
  839. E455 = Constants.E455;
  840. E456 = Constants.E456;
  841. E457 = Constants.E457;
  842. E458 = Constants.E458;
  843. E459 = Constants.E459;
  844. E460 = Constants.E460;
  845. E461 = Constants.E461;
  846. E462 = Constants.E462;
  847. E463 = Constants.E463;
  848. E464 = Constants.E464;
  849. E465 = Constants.E465;
  850. E466 = Constants.E466;
  851. E467 = Constants.E467;
  852. E468 = Constants.E468;
  853. E469 = Constants.E469;
  854. E470 = Constants.E470;
  855. E471 = Constants.E471;
  856. E472 = Constants.E472;
  857. E473 = Constants.E473;
  858. E474 = Constants.E474;
  859. E475 = Constants.E475;
  860. E476 = Constants.E476;
  861. E477 = Constants.E477;
  862. E478 = Constants.E478;
  863. E479 = Constants.E479;
  864. E480 = Constants.E480;
  865. E481 = Constants.E481;
  866. E482 = Constants.E482;
  867. E483 = Constants.E483;
  868. E484 = Constants.E484;
  869. E485 = Constants.E485;
  870. E486 = Constants.E486;
  871. E487 = Constants.E487;
  872. E488 = Constants.E488;
  873. E489 = Constants.E489;
  874. E490 = Constants.E490;
  875. E491 = Constants.E491;
  876. E492 = Constants.E492;
  877. E493 = Constants.E493;
  878. E494 = Constants.E494;
  879. E495 = Constants.E495;
  880. TE00 = Constants.TE00;
  881. TE01 = Constants.TE01;
  882. TE02 = Constants.TE02;
  883. TE03 = Constants.TE03;
  884. TE04 = Constants.TE04;
  885. TE05 = Constants.TE05;
  886. TE06 = Constants.TE06;
  887. TE07 = Constants.TE07;
  888. TE08 = Constants.TE08;
  889. TE09 = Constants.TE09;
  890. TE10 = Constants.TE10;
  891. TE11 = Constants.TE11;
  892. TE12 = Constants.TE12;
  893. TE13 = Constants.TE13;
  894. TE14 = Constants.TE14;
  895. TE15 = Constants.TE15;
  896. TE16 = Constants.TE16;
  897. TE17 = Constants.TE17;
  898. TE18 = Constants.TE18;
  899. TE19 = Constants.TE19;
  900. TE20 = Constants.TE20;
  901. TE21 = Constants.TE21;
  902. TE22 = Constants.TE22;
  903. TE23 = Constants.TE23;
  904. }
  905. public function initBlankArrays()
  906. {
  907. _trainerMap = [[]];
  908. _trainerSightMap = [[]];
  909. _characterMap = [[]];
  910. for(mapRow in 0...MAP_HEIGHT)
  911. {
  912. _trainerMap[mapRow] = [];
  913. _trainerSightMap[mapRow] = [];
  914. _characterMap[mapRow] = [];
  915. }
  916. for(mapColumn in 0...MAP_WIDTH)
  917. {
  918. for(mapRow in 0...MAP_HEIGHT)
  919. {
  920. _trainerMap[mapRow][mapColumn] = -1;
  921. _trainerSightMap[mapRow][mapColumn] = -1;
  922. _characterMap[mapRow][mapColumn] = -1;
  923. }
  924. }
  925. }
  926. public function LoadTrainerData()
  927. {
  928. initBlankArrays();
  929. initializeTrainers();
  930. initializeCharacters();
  931. updateTrainerMap();
  932. }
  933. public function LoadMapData()
  934. {
  935. MAP_COLUMNS = 40;
  936. MAP_ROWS = 40;
  937. MAP_WIDTH = 80;
  938. MAP_HEIGHT = 80;
  939. _terrainBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  940. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  941. _terrainBitmap = new Bitmap(_terrainBitmapData);
  942. _backgroundBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  943. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  944. _backgroundBitmap = new Bitmap(_backgroundBitmapData);
  945. _frontBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  946. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  947. _frontBitmap = new Bitmap(_frontBitmapData);
  948. _doorsBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  949. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  950. _doorsBitmap = new Bitmap(_doorsBitmapData);
  951. _itemsBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  952. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  953. _itemsBitmap = new Bitmap(_itemsBitmapData);
  954. _foregroundBitmapData = new BitmapData(MAP_COLUMNS * MAX_TILE_SIZE,
  955. MAP_ROWS * MAX_TILE_SIZE, true, 0);
  956. _foregroundBitmap = new Bitmap(_foregroundBitmapData);
  957. _backgroundMap =
  958. [
  959. // 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45
  960. /*01*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  961. /*02*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  962. /*03*/[-100,-100,-100,HUPL,HUPC,HUPR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  963. /*04*/[-100,-100,-100,HLOL,-100,HLOR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  964. /*05*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  965. /*06*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  966. /*07*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,FEDN,-100,FEDN,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  967. /*08*/[-100,-100,-100,-100,-100,HUPL,HUPC,HUPR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,FERT,-100,-100,-100,FELT,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  968. /*09*/[-100,-100,-100,-100,-100,HLOL,DOOR,TNHL,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,FERT,TOMB,-100,TOMB,FELT,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  969. /*10*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,FERT,-100,-100,-100,FELT,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  970. /*11*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,FEUP,FEUP,FEUP,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  971. /*12*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  972. /*13*/[TREE,TREE,TREE,TREE,FEUP,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,E400,E401,E402,E403,E404,E405,E406,E407,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  973. /*14*/[STRM,STRM,STRM,STRM,-100,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,STRM,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,E408,E409,E410,E411,E412,E413,E414,E415,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  974. /*15*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,E416,E417,E418,E419,-100,E421,E422,E423,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  975. /*16*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,E424,-100,-100,-100,-100,-100,-100,E431,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  976. /*17*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,E432,E433,E434,E435,E436,E437,E438,E439,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE],
  977. /*18*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,E440,E441,E442,E443,-100,E445,E446,E447,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  978. /*19*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,E448,-100,-100,-100,-100,-100,-100,E455,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  979. /*20*/[TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,E456,E457,E458,E459,E460,E461,E462,E463,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  980. /*T2*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HBUL,HBUC,HBUR,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,E464,E465,E466,E467,-100,E469,E470,E471,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  981. /*22*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HBLL,-100,HLTH,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,E472,-100,-100,-100,-100,-100,-100,E479,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  982. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,HCUL,HCUC,HCUR,-100,E480,E481,E482,E483,E484,E485,E486,E487,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  983. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,BGM1,BGM2,BGM3,BGM4,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,HCLL,-100,MART,-100,E488,E489,E490,E491,E492,E493,E494,E495,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  984. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,BGM5,BGM6,-100,BGM8,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  985. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  986. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  987. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HCUL,HCUC,HCUR,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  988. [-100,-100,-100,-100,HBUL,HBUC,HBUR,-100,-100,-100,TREE,-100,LK01,LK02,LK02,LK02,LK02,LK02,LK02,LK03,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HCLL,-100,HLTH,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  989. [-100,-100,-100,-100,HBLL,-100,MART,-100,-100,-100,TREE,-100,LK04,LK05,LK05,LK05,LK05,LK05,LK05,LK06,-100,-100,-100,TREE,TREE,TREE,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  990. /*30*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,LK04,LK05,LK05,LK05,LK05,LK05,LK05,LK06,-100,-100,-100,TREE,TREE,TREE,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100],
  991. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,LK04,LK05,LK05,LK05,LK05,LK05,LK05,LK06,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100],
  992. [TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,LK04,LK05,LK05,LK05,LK05,LK05,LK05,LK06,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  993. [TREE,TREE,TREE,-100,-100,TREE,-100,-100,-100,-100,-100,-100,LK07,LK08,LK08,LK08,LK08,LK08,LK08,LK09,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  994. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,-100,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  995. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,TREE,-100,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  996. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  997. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  998. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  999. /*40*/[TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE],
  1000. /*41*/[TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE],
  1001. /*T3*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1002. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1003. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1004. [TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1005. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1006. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HUPL,HUPC,HUPR,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1007. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HLOL,-100,HLOR,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,HWUL,HWUC,HWUR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,WGM1,WGM2,WGM3,WGM4,-100,-100,-100,-100,-100,-100,-100],
  1008. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,HWLL,-100,HLTH,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,WGM5,WGM6,-100,WGM8,-100,-100,-100,-100,-100,-100,-100],
  1009. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1010. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1011. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1012. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1013. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1014. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1015. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1016. [TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,PLNT,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1017. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1018. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1019. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE],
  1020. /*61*/[-100,-100,HOUL,HOUC,HOUR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HOUL,HOUC,HOUR,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,HPUL,HPUC,HPUR,-100,-100,-100,-100],
  1021. /*62*/[-100,-100,HOLL,-100,MART,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HOLL,ODOR,HOLR,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,HPLL,-100,MART,-100,-100,-100,-100],
  1022. /*T4*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1023. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1024. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1025. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1026. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1027. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,OGM1,OGM2,OGM3,OGM4,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1028. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,OGM5,OGM6,-100,OGM8,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1029. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1030. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE],
  1031. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1032. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,-100,TREE,-100,HPUL,HPUC,HPUR,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100],
  1033. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,-100,HPLL,-100,HLTH,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100],
  1034. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100],
  1035. [-100,-100,HOUL,HOUC,HOUR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HOUL,HOUC,HOUR,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100],
  1036. [-100,-100,HOLL,ODOR,HOLR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,HOLL,-100,HLTH,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,TREE,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,-100,TREE,TREE,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100],
  1037. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,TREE,-100,TREE,TREE,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,PGM1,PGM2,PGM3,PGM4],
  1038. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,TREE,-100,PGM5,PGM6,-100,PGM8],
  1039. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,TREE,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100],
  1040. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1041. /*82*/[-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,TREE,TREE,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,TREE,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1042. ];
  1043. _doorsMap =
  1044. [
  1045. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1046. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1047. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1048. [-100,-100,-100,-100,DOOR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1049. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1050. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1051. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1052. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1053. [-100,-100,-100,-100,-100,-100,DOOR,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1054. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1055. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100],
  1056. [-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100,-100