STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
217813
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2382 · P4763

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/31475659?noj=FRM31475659-24DC" width="1" height="1"></div>

tank-tactics.swf

This is the info page for
Flash #109399

(Click the ID number above for more basic data on this flash file.)


Text
River

Rivier

Rivière

Fluss

Río

Rio

Fiume

Flod

Rzeka

Речка

Sungai

河流

Port

Haven

Hafen

Puerto

Porto

Hamn

Port

Порт

Pelabuhan

港口

Defence Tower

Verdedigingstoren

Tour de défense

Verteidigungsturm

Torre de defensa

Torre de Defesa

Torre di difesa

Försvarstorn

Wieża obronna

Оборонительная башня

Menara pertahanan

要塞

防御炮台

HQ

Basis

QG

Hauptquartier

Cuartel general

Quartier generale

Bas

Kwatera główna

Штаб

Pusat

司令本部

总部

Factory

Fabriek

Usine

Fabrik

Fábrica

Fabbrica

Fabryka

Завод

Pabrik

工場

工厂

City

Stad

Ville

Stadt

Ciudad

Cidade

Città

Miasto

Город

Kota

市街地

城市

Airport

Airport

Luchthaven

Aéroport

Flughafen

Aeropuerto

Aeroporto

Flygplats

Lotnisko

Аэродром

Bandara

空港

机场

Armor

Armour

Pantser

Armure

Rüstung

Blindaje

Armadura

Blindagem

Armatura

Pansar

Opancerzenie

Броня

Lapis Baja

攻撃部隊 

敌军势力

99

More Free Online Games at:

More free online games at:

Meer gratis online games op:

Plus de jeux gratuits en ligne sur :

Mehr kostenlose Onlinespiele auf:

Más juegos en línea gratis en:

Mais jogos online grátis em:

Mais jogos online gratuitos em:

Più giochi online gratis su:

Fler gratis onlinespel på:

Więcej darmowych gier na:

Другие бесплатные игры на:

Lebih banyak lagi permainan online gratis di:

他の無料オンラインゲームで遊ぶ

更多免费游戏尽在:

More Free Online Game At:

Loading...

Laden...

Chargement...

Wird geladen…

Cargando...

Carregando…

A carregar...

Caricamento…

Laddar …

Ładowanie…

Загрузка…

Pengisian…

Loading…

读取中

Now Loading

100

%

MAP SAVED

KAART OPGESLAGEN

CARTE SAUVEGARDÉE

KARTE GESPEICHERT

MAPA GUARDADO

MAPA SALVO

MAPPA SALVATA

KARTA SPARAD

MAPA ZAPISANA

КАРТА СОХРАНЕНА

PETA TERSIMPAN

マップの保存

记录地图

DO YOU WANT TO SAVE THIS MAP?

WIL JE DEZE KAART OPSLAAN?

VEUX-TU SAUVEGARDER CETTE CARTE ?

MÖCHTEST DU DIESE KARTE SPEICHERN?

¿QUIERES GUARDAR ESTE MAPA?

DESEJA SALVAR ESTE MAPA?

QUERES GUARDAR ESTE MAPA?

VUOI SALVARE QUESTA MAPPA?

VILL DU SPARA DENNA KARTA?

CZY CHCESZ ZAPISAĆ TĘ MAPĘ?

СОХРАНИТЬ ЭТУ КАРТУ?

APAKAH ANDA INGIN MENYIMPAN PETA INI?

このマップを保存しますか?

您是否想记录这张地图

YOU CAN FIND THIS MAP AT "LEVEL MAP"

DEZE KAART STAAT ONDER 'LEVELKAART'

TU PEUX TROUVER CETTE CARTE SOUS "CARTE DE NIVEAU"

DU KANNST DIESE KARTE UNTER "LEVELKARTE" FINDEN.

PUEDES ENCONTRAR ESTE MAPA EN EL "MAPA DEL NIVEL"

VOCÊ PODERÁ ENCONTRAR ESTE MAPA EM "MAPA DOS NÍVEIS"

ENCONTRARÁS ESTE MAPA NO "MAPA DO NÍVEL"

PUOI TROVARE LA MAPPA SU "MAPPA DEL LIVELLO"

DU HITTAR DENNA KARTA PÅ ''NIVÅKARTA''

ZNAJDZIESZ TĘ MAPĘ NA "MAPIE POZIOMÓW"

ЭТУ КАРТУ МОЖНО НАЙТИ НА КАРТЕ УРОВНЕЙ

ANDA BISA MENEMUKAN PETA INI DI "PETA LEVEL"

このマップはレベルマップの中で探すことができます

您可以在这里选择已经保存的编辑地图开始游戏

YOU CAN FIND THIS MAP AT LEVEL MAP

Cancel

Annuleren

Annuler

Abbrechen

Cancelar

Annulla

Avbryt

Zrezygnuj

Отменить

Batal

キャンセル

取消

Save

Opslaan

Sauvegarder

Speichern

Guardar

Gravar

Salva

Spara

Zapisz

Сохранить

Simpan

セーブ

记录

PortuguêsBR

Nederlands

Deutsch

Español

Français

India

Italiano

Bahasa melayu

Philipines

Polski

Português

Русский язык

Svenska

Türkçe

English (UK)

English (US)

Bahasa Ind.

BR

NL

CN

DE

ES

FR

IN

IT

JP

MY

PH

PL

PT

RU

SE

TR

UK

US

ID

Airport

Luchthaven

Aéroport

Flughafen

Aeropuerto

Aeroporto

Flygplats

Lotnisko

Аэродром

Bandara

空港

机场

TUTORIAL LEVEL

INLEIDEND LEVEL

NIVEAU D’INSTRUCTIONS

EINFÜHRUNG

NIVEL TUTORIAL

NÍVEL DE TUTORIAL

LIVELLO DEL TUTORIAL

LEKTIONSNIVÅ

POZIOM SZKOLENIOWY

УЧЕБНЫЙ УРОВЕНЬ

LEVEL AJARAN TAMBAHAN

TUTORIAL LEVEL

教程关卡

Tutorial 1: MOVE AND FIRE

1: BEWEGEN EN SCHIETEN

Instructions 1: SE DÉPLACER ET TIRER

Einführung 1: BEWEGEN UND SCHIESSEN

Tutorial 1: MOVERSE Y DISPARAR

Tutorial 1: MOVIMENTOS E DISPAROS

Tutorial 1: MOVIMENTO E TIRO

Tutorial 1: MUOVI E FAI FUOCO

Lektion 1: FLYTTA OCH SKJUTA

Tutorial 1: PORUSZANIE SIĘ I STRZELANIE

Часть 1: ДВИЖЕНИЕ И ОГОНЬ

1: BERGERAK DAN MENEMBAK

チュートリアル1:移動とミサイル発射

教程-1:移动与开火

Tutorial-1: MOVE AND FIRE.

Basic controls: Move and Fire
Use the arrows to move and Space to fire.

Basic controls: Move and Fire
Use the arrow keys to move and the spacebar to fire.

Besturing: Bewegen en schieten
Beweeg met de pijlen en schiet met de spatiebalk.

Commandes de base : se déplacer et tirer
Utilise les flèches directionnelles pour te déplacer et la
barre d'espace pour tirer.

Basissteuerung: Bewegen und schießen
Drücke die Pfeiltasten zum Bewegen und die Leertaste
zum Schießen.

Controles básicos: moverse y disparar
Usa las flechas para moverte y espacio para disparar.

Controles básicos: Movimento e disparar
Use as setas para se movimentar e a barra de espaço
para disparar

Controlos básicos: Movimento e Tiro
Usa as setas para movimento e Espaço para disparar.

Comandi di base: muovi e fai fuoco
Usa i tasti freccia per muovere e la barra spaziatrice
per fare fuoco.

Grunderna: Flytta och skjuta
Flytta med pilarna och skjut med mellanslag.

Sterowanie podstawowe: Poruszanie się i strzelanie
Użyj strzałek, aby się poruszać i spacji, aby wystrzelić.

Основное управление: движение и огонь
Нажимай клавиши со стрелками, чтобы двигаться, и
пробел, чтобы стрелять

Pengaturan dasar: Bergerak dan Menembak
Pergunakan tombol tanda panah untuk bergerak dan
Spasi untuk menembak

基本操作:移動とミサイル発射
方向キーを使用して移動、スペースでミサイル発射

基本操作:移动与开火
使用箭头键移动,并使用空格键开火射击

Basic control: Move and Fire
Use arrow key to move and use space to fire.

Tutorial 2: BUILDING UNITS

2: EENHEDEN BOUWEN

Instructions 2 : CONSTITUER DES UNITÉS

Einführung 2: GEBÄUDEEINHEITEN

Tutorial 2: CONSTRUIR UNIDADES

Tutorial 2: CRIANDO UNIDADES

Tutorial 2: CREA LE UNITÀ

Lektion 2: SKAPA ENHETER

Tutorial 2: TWORZENIE JEDNOSTEK

Часть 2: СОЗДАНИЕ БОЕВЫХ ЕДИНИЦ

2: UNIT GEDUNG

チュートリアル2:ユニット配備

教程-2:生产作战单位

Tutorial-2: BATTLE UNIT DEVELOP.

Click on a unit to build that unit at your base.

Klik op een eenheid om deze te bouwen op de basis.

Clique sur une unité pour constituer une unité de ce
genre dans ta base.

Klicke auf eine Einheit, um diese an deinem Stützpunkt
aufzustellen.

Haz clic en una unidad para construirla en tu base.

Clique em uma unidade para criá-la em sua base.

Clica numa unidade para construir essa unidade na
tua base.

Clicca su un'unità per creare quell'unità nella tua base.

Klicka på en enhet för att skapa den vid din bas.

Kliknij na jednostkę, aby utworzyć ją w swojej bazie.

Щелкни мышью по боевой единице, чтобы создать ее
на своей базе.

Klik pada sebuah unit untuk mendirikan unit itu di
pangkalan anda.

クリックして自分の基地にユニットを配備する。

点击界面上您所想要的作战单位即可生产

Tutorial 3: DEFENCE TOWER AND DISTANCE SHOTS

3: VERDEDIGINGSTOREN EN SCHOTEN VAN AFSTAND

Instructions 3 : TOUR DE DÉFENSE ET TIRS À DISTANCE

Einführung 3: VERTEIDIGUNGSTURM UND DISTANZSCHÜSSE

Tutorial 3: TORRE DE DEFENSA Y DISPAROS A DISTANCIA

Tutorial 3: TORRE DE DEFESA E TIROS À DISTÂNCIA

Tutorial 3: TORRE DE DEFESA E TIRO À DISTÂNCIA

Tutorial 3: TORRE DI DIFESA E SPARI A DISTANZA

Lektion 3: FÖRSVARSTORN OCH SKJUTA PÅ AVSTÅND

Tutorial 3: WIEŻE OBRONNE I STRZAŁY Z DYSTANSU

Часть 3: ОБОРОНИТЕЛЬНАЯ БАШНЯ И ДАЛЬНИЕ ВЫСТРЕЛЫ

3: MENARA PERTAHANAN DAN TEMBAKAN JARAK JAUH

チュートリアル3:要塞と遠隔射撃

教程-3:防御炮台与射程

Tutorial-3: DEFENCE TOWER AND SHOT DISTANCE.

Avoid attacking enemy cannons head on; only heavy
units can take these out.

Val vijandelijke kanonnen niet rechtstreeks aan; alleen
zware eenheden kunnen deze uitschakelen.

Évite d'attaquer les canons ennemis de front ; seules
les unités lourdes peuvent les éliminer

Vermeide es, feindliche Geschütze frontal zu
attackieren; nur schwere Einheiten können mit diesen
fertig werden.

Evita los ataques de los cañones enemigos, solo las
unidades pesadas pueden eliminarlos.

Evite atacar os canhões inimigos diretamente; apenas
as unidades pesadas conseguirão derrubá-los.

Evita atacar os canhões inimigos de frente; só as
unidades pesadas os podem eliminar.

Evita di attaccare i cannoni nemici in maniera frontale;
solo le unità pesanti possono toglierli di mezzo.

Undvik att anfalla fiendekanoner rakt på. Endast
tunga enheter kan slå ut dem.

Unikaj bezpośredniego ataku na działa wroga; tylko
ciężkie jednostki mogą je pokonać.

Избегай лобовых атак на вражескую артиллерию;
одолеть ее под силу только тяжелым частям.

Hindari serangan terhadap kepala meriam musuh;
hanya unit berat yang bisa melakukannya.

敵の大砲からの撃破を避け重戦車だけが対応可能である。

防御炮台是前进中的重大障碍,只有特定的作战单位的射
程超越它们。

Avoid attacking enemy cannons head on only heavy
units can take these out.

Tutorial 4: OCCUPYING AN ENEMY'S FACTORY

4: EEN VIJANDELIJKE FABRIEK BEZETTEN

Instructions 4 : OCCUPER UNE USINE ENNEMIE

Einführung 4: BESETZEN EINER FEINDLICHEN FABRIK

Tutorial 4: OCUPAR LA FÁBRICA DE UN ENEMIGO

Tutorial 4: OCUPANDO A FÁBRICA DE UM INIMIGO

Tutorial 4: OCUPAR UMA FÁBRICA DO INIMIGO

Tutorial 4: OCCUPA UNA FABBRICA NEMICA

Lektion 4: OCKUPERA EN FIENDEFABRIK

Tutorial 4: ZAJĘCIE FABRYKI WROGA

Часть 4: ЗАХВАТ ВРАЖЕСКОГО ЗАВОДА

4: MENEMPATI PABRIK MUSUH

チュートリアル4:敵の工場を占拠する

教程-4:占领敌人的工厂

Tutorial-4: OCCUPY ENEMY'S FACTORY.

All units can capture buildings. The blue bar shows
how long you need to stand on the building to capture
it. Enemies cannot develop anything if you capture
their factories.

All units can capture buildings. The blue bar shows
how long you have to stand on the building to capture
it. Enemies cannot develop any units if you capture
their factories.

Elke eenheid kan gebouwen veroveren. De blauwe balk
geeft aan hoe lang het duurt om het in te nemen. Als je
hun fabrieken verovert, kunnen vijanden niets
ontwikkelen.

Toutes les unités peuvent s'emparer de bâtiments. La
barre bleue indique combien de temps tu dois rester dans
un bâtiment pour t'en emparer. Les ennemis ne peuvent
plus rien fabriquer si tu t'empares de leurs usines.

Alle Einheiten können Gebäude besetzen. Der blaue
Balken zeigt, wie lange du auf dem Gebäude stehen
bleiben musst, um dieses zu erobern. Feinde können
nichts entwickeln, wenn du ihre Fabriken besetzt.

Todas las unidades pueden capturar edificios. La
barra azul muestra cuánto tiempo tienes que estar en
el edificio para capturarlo. Los enemigos no pueden
desarrollar nada si capturas sus fábricas.

Todas as unidades podem capturar edfícios. A barra azul
mostra quanto tempo você precisa permanecer sobre o
edifício para capturá-lo. Os inimigos não conseguirão
desenvolver novos itens se você capturar as fábricas deles.

Todas as unidades podem capturar edifícios. A barra
azul mostra de quanto tempo precisas de ficar sobre o
edifício para o capturares. Os inimigos não podem
capturar nada se tu capturares as suas fábricas.

Tutte le unità possono catturare edifici. La barra blu
mostra per quanto tempo devi stare sull'edificio per
catturarlo. Se catturi le loro fabbriche, i nemici non
saranno in grado di sviluppare niente.

Alla enheter kan inta byggnader. Den blå mätaren
visar hur länge du måste stå på en byggnad för att
inta den. Fiender kan inte skapa något om du intar
deras fabriker.

Wszystkie jednostki mogą przejmować budynki. Niebieski
pasek pokazuje, jak długo musisz okupować budynek,
aby go przejąć. Wróg nie będzie w stanie opracowywać
nowych wynalazków, jeśli przejmiesz jego fabryki.

Все части способны захватывать здания. Синяя
полоса показывает, сколько времени тебе требуется
провести в здании, чтобы его захватить.

Semua unit bisa menempati gedung. Batangan berwarna
biru menunjukkan lamanya waktu yang anda butuhkan
untuk menduduki gedung tersebut. Musuh-musuh tidak bisa
mendirikan apapun jika anda menempati pabrik mereka.

全てのユニットは建物を占領することができる。青のバー
はその建物を占拠するのに必要な時間を示している。敵は
占拠された工場では、何もことができない。

所有的作战单位都可以占领建筑物。控制您的作战单位停
留在非己方的建筑上就可以看见占领进度条。如果能够及
时占领地方工厂,敌人就无法在这里成产和集结部队了。

All units can capture buildings. The blue bar indicates
the time you need to stay on the building. Enemies
cannot develop anything if you capture their factories.

Tutorial 5: REINFORCEMENTS AND POWER-UPS

5: VERSTERKING EN POWER-UPS

Instructions 5 : RENFORTS ET POWER-UPS

Einführung 5: VERSTÄRKUNG UND ENERGIEBONI

Tutorial 5: REFUERZOS Y POTENCIADORES

Tutorial 5: REFORÇOS E PRÊMIOS

Tutorial 5: REFORÇOS E MELHORAMENTOS

Tutorial 5: RINFORZI E POTENZIAMENTI

Lektion 5: FÖRSTÄRKNING OCH KRAFTFÖREMÅL

Tutorial 5: ODDZIAŁY POSIŁKOWE I ZRZUT ZAOPATRZENIA

Часть 5: ПОДКРЕПЛЕНИЕ И ПОВЫШЕНИЕ МОЩНОСТИ

5: PENGUATAN DAN PENAMBAHAN KEKUATAN

チュートリアル5:補強物資とパワーアップアイテム

教程-5:援军与道具

Tutorial – 5: REINFORCEMENTS AND POWER UP.

Reinforcements will arrive on the battlefield if you
occupy a harbor. Power-ups will be dropped when you
occupy an airport.

Reinforcements will arrive on the battlefield if you
occupy a harbour. Power-ups will be dropped when
you occupy an airport.

Als je een haven bezet, kunnen versterkingstroepen
worden gestuurd. Als je een luchthaven bezet, worden
er power-ups gedropt.

Si tu occupes un port, des renforts arriveront sur le
champ de bataille. Des power-ups tomberont si tu
occupes un aéroport.

Verstärkung wird auf dem Schlachtfeld ankommen,
wenn du einen Hafen besetzt. Energieboni werden
abgeworfen, wenn du einen Flughafen eroberst.

Los refuerzos llegarán al campo de batalla si ocupas
un puerto. Los potenciadores se lanzarán cuando
ocupes un aeropuerto.

Se você ocupar um porto, os reforços se dirigirão ao
campo de batalha. Prêmios serão derrubados quando
você ocupar um aeroporto.

Os reforços chegam ao campo de batalha se ocupares
um porto. Os melhoramentos caem quando ocupas um
aeroporto.

I rinforzi arriveranno sul campo di battaglia se occupi
un porto. I potenziamenti verranno sganciati dall'alto
quando occupi un aeroporto.

När du ockuperar en hamn skickas förstärkningar till
slagfältet. När du intar en flygplats släpps
kraftföremål från skyn.

Oddziały posiłkowe przybędą na pole bitwy w momencie
zajęcia portu. Zaopatrzenie zostanie zrzucone w
momencie zajęcia lotniska.

Подкрепления придут на поле боя, если ты захватишь
гавань. Если захватить аэродром, то в зону боевых
действий сбрасываются повышающие мощность
бонусы.

Penguatan akan tiba di medan perang jika anda
menduduki sebuah pelabuhan. Penambahan kekuatan
akan jatuh jika anda menempati sebuah bandara.

港を占拠すると戦場に補強物資が届けられ、パワーアッ
プアイテムは空港を占拠した時に上空から落とされる。

如果能够占领港口,援军就会进入战场。如果你想获得补
给道具,就需要先占领机场。

Reinforcements will arrive on the battlefield if you
occupy a harbor. Power ups will be dropped when you
occupy an airport.

Tutorial 6: WINNING AND LOSING

6: WINNEN EN VERLIEZEN

Instructions 6 : GAGNER ET PERDRE

Einführung 6: GEWINNEN UND VERLIEREN

Tutorial 6: VICTORIA Y DERROTA

Tutorial 6: VITÓRIA E DERROTA

Tutorial 6: GANHAR E PERDER

Tutorial 6: VINCI E PERDI

Lektion 6: VINNA OCH FÖRLORA

Tutorial 6: ZWYCIĘSTWO I PRZEGRANA

Часть 6: ПОБЕДА И ПОРАЖЕНИЕ

6: KEMENANGAN DAN KEKALAHAN

チュートリアル6:勝敗を分けるもの

教程-6:胜利与失败

Tutorial-6: WIN AND LOSE

All units have different strengths and weaknesses.
For example: use infantry to capture buildings quickly
and tanks to take out enemy artillery.

All the units have different strengths and weaknesses.
For example: use infantry to capture buildings quickly
and deploy tanks to take out enemy artillery.

Alle eenheden hebben sterke en zwakke punten.
Gebruik bijvoorbeeld infanterie om gebouwen snel te
veroveren en tanks om vijandelijke artillerie uit te
schakelen.

Les unités ont toutes des points forts et des points
faibles. Par exemple : utilise l'infanterie pour t'emparer
rapidement d'un bâtiment et utilise les chars pour
écraser l'artillerie ennemie.

Alle Einheiten besitzen verschiedene Stärken und
Schwächen. Zum Beispiel: Nutze die Infanterie, um
Gebäude schnell zu besetzen, und Panzer, um
feindliche Artillerie auszuschalten.

Todas las unidades tienen puntos fuertes y débiles.
Por ejemplo: usa la infantería para capturar los
edificios de forma rápida y los tanques para acabar
con la artillería enemiga.

Todas as unidades possuem diferentes pontos fortes
e fraquezas. Por exemplo: use a infantaria para
capturar edifícios rapidamente e tanques para
derrubar a artilharia inimiga.

Cada unidade possui vantagens e desvantagens. Por
exemplo: usa a infantaria para capturar edifícios com
rapidez e tanques para eliminar a artilharia inimiga.

Tutte le unità hanno differenti punti forti e deboli. Per
esempio: usa la fanteria per catturare velocemente gli
edifici ed i carri armati per togliere di mezzo
l'artiglieria nemica.

Alla enheter har olika styrkor och svagheter. Till
exempel: Använd infanteri för att snabbt inta
byggnader och stridsvagnar för att slå ut artilleri.

Każda jednostka ma swoje silne i słabe punkty. Na
przykład: wykorzystaj piechotę, aby szybko przejąć
budynki wroga, a czołgi - by przejąć artylerię.

Все боевые единицы обладают различными
преимуществами и недостатками. Например, ты
можешь использовать пехоту для быстрого захвата
зданий, а танки - для нейтрализации вражеской
артиллерии.

Semua unit memiliki kekuatan dan kelemahan yang berbeda-
beda. Sebagai contoh: pergunakan infanteri untuk
menempati gedung-gedung dengan cepat dan tangki-tangki
untuk mengeluarkan pasukan meriam milik musuh.

全てのユニットはそれぞれ異なる強さと弱さを備えてい
る。例えば、建物の占拠には素早さのある歩兵ユニット
を、敵の大砲を撃退するには戦車を投入するなど、状況
によっての判断が不可欠である。

每一种作战单位都有自己的特定,例如:士兵能快速占领
建筑但火力较弱,坦克是战场主力但占领能力不强。

Skip

Overslaan

Passer

Überspringen

Saltar

Pular

Ignorar

Salta

Skippa

Pomiń

Пропустить

Lewati

スキップ

略过

Start Game

Spel starten

Jouer

Spiel starten

Iniciar partida

Começar

Iniciar jogo

Avvia partita

Starta spel

Start

Начать игру

Memulai permainan

ゲームを始める

开始游戏

Level Editor

Level-editor

Éditeur de niveau

Leveleditor

Editor de niveles

Editor de níveis

Editor de Níveis

Editor di livelli

Nivåeditor

Edytor poziomów

Редактор уровней

Level Penerbitan

レベル設定

关卡编辑器

How to Play

Instructies

Instructions

Anleitung

Cómo jugar

Como jogar

Como Jogar

Come giocare

Spelregler

Jak grać

Как играть

Cara bermain

遊び方

游戏帮助

High Scores

Topscores

Meilleurs scores

Highscores

Puntuaciones máximas

Recordes

Pontuações mais altas

Punteggi più alti

Toppoäng

Ranking

Рекорды

Nilai tertinggi

ハイスコア

排行榜

Best

Hoog

Haute

Hoch

Alta

Ótima

Óptima

Hög

Dobra

Высокое

Terbaik

Normal

Normaal

Normale

Normalny

нормальный

標準

普通

Low

Laag

Basse

Niedrig

Baja

Baixa

Bassa

Låg

Niska

Низкое

Buruk

On

Aan

Activé

An

Ligado

Ligada

Włączony

Включить

Hidupkan

オン

Off

Uit

Désactivé

Aus

No

Desligado

Desligada

Av

Wyłączony

Выключить

Matikan

オフ

オフ

© www.spilgames.com

© www.spilgames.com

More Games

Meer spellen

Plus de jeux

Mehr Spiele

Más juegos

Mais jogos

Più giochi

Fler spel

Więcej gier

Другие игры

Permainan lainnya

他のゲームをもっと遊ぶ

更多游戏

Back

Terug

Retour

Zurück

Atrás

Anterior

Voltar

Indietro

Bakåt

Powrót

Обратно

Kembali

戻る

返回

HOW TO PLAY

INSTRUCTIES

INSTRUCTIONS

ANLEITUNG

CÓMO JUGAR

COMO JOGAR

COME GIOCARE

SPELREGLER

JAK GRAĆ

КАК ИГРАТЬ

CARA BERMAIN

HOW TO PLAY

游戏帮助

Stop Time

Stop de tijd

Arrêter le temps

Zeit anhalten

Detener tiempo

Parar o Tempo

Ferma il tempo

Stoppa tid

Zatrzymaj czas

Остановка

Hentikan Waktu

タイムストップ

时间停止

Time Stop

Repair

Repareren

Remettre en état

Reparieren

Reparar

Consertar

Ripara

Reparera

Napraw

Ремонт

Perbaikan

修理

修理

Missile

Raket

Rakete

Misil

Míssil

Rakieta

Ракета

Peluru

ミサイル

导弹

Invincibility

Onkwetsbaarheid

Invincibilité

Unbesiegbarkeit

Invencibilidad

Invencibilidade

Invincibilità

Osynlighet

Niezwyciężoność

Неуязвимость

Tak tertandingi

無敵

无敌

Invincible

Money

Geld

Argent

Dinero

Dinheiro

Soldi

Pengar

Pieniądze

Деньги

Uang

お金

金钱

Move

Bewegen

Se déplacer

Mover

Movimento

Muovi

Flytta

Poruszanie się

Передвижение

Gerakkan

移動

移动

Fire

Schieten

Tirer

Schießen

Disparar

Fogo

Fai fuoco

Skjuta

Ognia

Огонь

Menembak

攻撃

开火

Controls

Besturing

Commandes

Steuerung

Controles

Comandos

Comandi

Kontroller

Sterowanie

Управление

Kontrol

コントロール

操作

Power-Ups

Power-ups

Energieboni

Potenciadores

Prêmios

Reforços de energia

Potenziamenti

Kraftföremål

Zaopatrzenie

Повышение мощности

Kekuatan bertambah

パワーアップアイテム

道具

Power Ups

パワーアップ アイテム

SPACE

You can occupy an enemy building by positioning a battle unit on it until the blue line is full.
Once a building is occupied, you can position a unit on it to receive repairs. But, be careful:
enemy units can occupy your buildings as well!

You can occupy an enemy building by positioning a battle unit on it until the blue bar is
full. Once a building is occupied, you can position a unit on it to obtain repairs. Be careful,
however: enemy units can also occupy your buildings!

Ga net zolang op een gebouw staan om het in te nemen tot de blauwe balk vol is. Zodra een
gebouw is ingenomen, kun je er een eenheid laten repareren. Let op: andersom kunnen
jouw gebouwen ook worden bezet!

Tu peux occuper un bâtiment ennemi en y installant une unité de combat jusqu'à ce que la
ligne bleue soit remplie. Une fois un bâtiment occupé, tu peux y positionner une unité pour
la remettre en état. Mais attention : les unités ennemies elles aussi peuvent occuper tes
bâtiments !

Du kannst ein feindliches Gebäude besetzen, indem du eine Kampfeinheit auf diesem
positionierst, bis der blaue Balken voll ist. Nachdem ein Gebäude erobert wurde, kannst du
eine Einheit auf diesem abstellen, um Reparaturen vorzunehmen. Aber sei vorsichtig:
feindliche Einheiten können auch deine Gebäude besetzen!

Puedes ocupar un edificio enemigo situando en él una unidad de combate hasta que la
línea azul esté llena. Una vez que el edificio esté ocupado, puedes situar una unidad en él
para recibir reparaciones. Pero cuidado, ¡las unidades enemigas también pueden ocupar
tus edificios!

Você poderá ocupar um edifício inimigo posicionando uma unidade de combate até que a
linha azul fique cheia. Depois de ocupar o edifício, você poderá posicionar uma unidade
nele para receber os consertos. Mas tenha cuidado: as unidades inimigas também podem
ocupar os seus edifícios!

Podes ocupar um edifício inimigo posicionando uma unidade de combate sobre ele até a
linha azul estar preenchida. Quando o edifício está ocupado, podes posicionar uma
unidade sobre ele para sofrer reparações. Mas tem cuidado: as unidades inimigas também
podem ocupar os teus edifícios!

Puoi occupare un edificio nemico sistemandoci sopra un'unità di battaglia finché la linea
blu sarà piena. Non appena un edificio viene occupato, puoi metterci sopra un'unità per
ricevere riparazioni. Ma stai attento: anche le unità nemiche possono occupare il tuo
edificio!

Du kan inta en fiendebyggnad genom att placera en stridsenhet på den tills den blå linjen
är full. När en byggnad ockuperats, kan du placera en enhet på den för att få reparationer.
Men, fienden kan också ockupera dina byggnader!

Możesz zająć budynek wroga utrzymując na nim jednostkę bojową, dopóki niebieski pasek się
nie zapełni. Kiedy budynek zostanie zajęty, możesz umieścić na nim jednostkę w celu
dokonania napraw. Ale uważaj: jednostki wroga mogą zajmować także twoje budynki!

Захвати вражеское здание, удерживая в нем боевую единицу, пока полоска над зданием
не станет полностью синей. Когда здание захвачено, его можно использовать для
ремонта боевых единиц. Но помни: враг тоже может захватывать твои здания!

Anda bisa menempati gedung musuh dengan menempatkan sebuah unit pertarungan
hingga garis biru tersebut penuh. Saat sebuah gedung ditempati, anda bisa menempatkan
sebuah unit untuk menerima perbaikan. Tapi, berhati-hatilah: unit musuh bisa menempati
gedung anda juga!

青のバーがいっぱいになるまで自分の戦闘ユニットを置き続けると、敵の建物を占拠すること
ができる。すでに占拠した建物の上にユニットを置くと、修理を受けることが可能だ。ただ
し、敵のユニットも同じように君の建物を占拠することができるので、注意が必要!

控制作战单位停留在敌方或中立的建筑上,就可以占领它们。一旦占领了这些建筑,作战单位就
可以在它们上面修理和回复。

You can occupy enemy's building or nonaligned building when your battle unit stay on one
building.
Every battle unit move to already occupy building and stay here, then they can be repair.

Occupy & Repair

Bezetten en repareren

Occuper & remettre en état

Besetzen & Reparieren

Ocupar y reparar

Ocupar e consertar

Ocupar e Reparar

Occupa & ripara

Ockupera & reparera

Zajmowanie terytorium i naprawa

Захват и ремонт

Menempati & Memperbaiki

占拠と修理

占领与修理

Building

Gebouw

Bâtiment

Gebäude

Edificio

Edifícios

Construção

Byggnad

Budynek

Здание

Gedung

建物

建筑物

0

0:0

00000000

Score

Punkte

Puntuación

Pontuação

Punteggio

Poäng

Wynik

Счет

Skor

スコア

分数

Pause

Pauze

Pausar

Pausa

Pauza

Пауза

Berhenti sebentar

中断する

暂停

A

A

A

01

Difficulty

Time

Money

Tijd

Temps

Zeit

Tiempo

Tempo

Tid

Czas

Время

Waktu

時間

时间

Power

Power

Kracht

Énergie

Energie

Potencia

Energia

Potência

Forza

Kraft

Siła

Мощность

Kekuatan

パワー

武器威力

Speed

Speed

Snelheid

Rapidité

Geschwindigkeit

Velocidad

Velocidade

Velocità

Hastighet

Prędkość

Скорость

Kecepatan

スピード

移动速度

Capture

Capture

Veroveren

Eroberung

Capturar

Captura

Cattura

Ockupation

Przejmowanie

Захват

Penempatan

占拠能力

占领速度

Occupy

New battle unit unlocked!

Nieuwe gevechtseenheid vrijgespeeld!

Nouvelle unité de bataille déverrouillée !

Neue Kampfeinheit freigeschaltet!

¡Nueva unidad de combate desbloqueada!

Nova unidade de combate desbloqueada!

Sbloccata una nuova unità di battaglia!

Ny stridsenhet upplåst!

Odblokowano nową jednostkę bojową!

Открыта новая боевая единица!

Unit pertarungan baru telah dibuka!

新しい戦闘ユニットが解除されました!

新的作战单位解锁

New level unlocked!

Nieuw level vrijgespeeld!

Nouveau niveau déverrouillé !

Neues Level freigeschaltet!

¡Nuevo nivel desbloqueado!

Novo nível desbloqueado!

Sbloccato un nuovo livello!

Ny nivå upplåst!

Odblokowano nowy poziom!

Открыт новый уровень!

Level baru telah dibuka!

新しいレベルが解除されました!

新的战场地图解锁

VICTORY

GEWONNEN

VICTOIRE

SIEG

VICTORIA

VITÓRIA

VITTORIA

SEGER

ZWYCIĘSTWO

ПОБЕДА!

KEMENANGAN

VICTORY

胜利

00000000

00000000

Next Level

Volgend level

Niveau suivant

Nächtes Level

Siguiente nivel

Próximo nível

Nível seguinte

Prossimo livello

Nästa nivå

Następny poziom

Следующий уровень

Level Berikutnya

次のレベル

下一关

Quit

Stoppen

Quitter

Beenden

Abandonar

Sair

Esci

Avsluta

Koniec

Конец

Keluar

終了する

退出

Capture Building:
Completed Level Bonus:
Level Score:
Total Score:

Capture Building:
Completed Level Bonus:
Level score:
Total score:

Gebouw veroveren:
Bonus voor doorlopen level:
Levelscore:
Totaalscore:

Prendre un bâtiment:
Bonus de niveau complété:
Score de niveau:
Score total:

Gebäude erobern:
Bonus Beendigung Level:
Levelpunkte:
Gesamtpunktzahl:

Capturar edificio:
Bonificación por nivel completado:
Puntuación del nivel:
Puntuación total:

Edifícios capturados:
Bônus de níveis completos:
Pontuação do nível:
Total de pontos:

Capturar um Edifício:
Bónus do Nível Concluído:
Pontuação do Nível:
Pontuação Total:

Cattura l'edificio:
Bonus di livello completato:
Punteggio livello:
Punteggio totale:

Intagna byggnader:
Nivåbonus:
Nivåpoäng:
Poäng totalt:

Przejęcie budynków:
Bonus za ukończenie poziomu:
Wynik za poziom:
Łączny wynik:

Захват зданий:
Бонус за пройденный уровень:
Счет за уровень:
Общий счет:

Penempatan Gedung:
Bonus Level Terselesaikan:
Skor Level:
Total Skor:

占拠した建物:
レベルクリアボーナス:
レベルスコア:
トータルスコア:

占领建筑:
关卡完成奖励:
关卡分数:
合计总分:

Occupy Building:
Level Complete Bonus:
Level Score:
Total Score:

00000000

00000000

000000

00

X

000000

00

000000

00

000000

00

000000

00

000000

00

000000

00

<p align="center"><font face="Arial Black" size="18" color="#000000" letterSpacing="0.000000" kerning="1">999999999</font></p>

<p align="center"><font face="Arial Black" size="15" color="#990000" letterSpacing="-1.000000" kerning="1">WWWWWWWWWWW</font></p>

<p align="center"><font face="Arial Black" size="18" color="#000000" letterSpacing="0.000000" kerning="1">999999999</font></p>

GAME OVER

FIN DE PARTIDA

ACABOU

FIM DO JOGO

GIOCO FINITO

KONIEC GRY

КОНЕЦ ИГРЫ

BERAKHIR

ゲームオーバー

游戏结束

Submit Score

Score verzenden

Enregistrer le score

Punkte eintragen

Enviar puntuación

Enviar pontuação

Invia punteggio

Skicka poäng

Zapisz wynik

Сохранить результат

Kumpulkan skor

スコアを登録する

提交分数

0

Your Score

Your score

Je score

Ton score

Deine Punkte

Tu puntuación

Seu placar

A tua pontuação

Il tuo punteggio

Din poäng

Twój wynik

Ваш результат

Skor anda

あなたのスコア

您的分数

Your Name

Your name

Je naam

Ton nom

Dein Name

Tu nombre

Seu nome

O teu nome

Il tuo nome

Ditt namn

Twoje imię

Ваше имя

Nama anda

あなたの名前

您的名字

Try Again

Try again

Opnieuw

Essayer de nouveau

Nochmal probieren

¿Volver a intentar?

Tentar de novo

Tentar novamente

Riprova

Försök igen

Jeszcze raz

Еще раз

Coba lagi

もう1度トライしますか

重试

More Games

Meer spellen

Plus de jeux

Mehr Spiele

Más juegos

Mais jogos

Più giochi

Fler spel

Więcej gier

Другие игры

Permainan lainnya

他のゲームをもっと遊ぶ

更多游戏

HIGH SCORES

TOPSCORES

MEILLEURS SCORES

HIGHSCORES

PUNTUACIONES MÁXIMAS

RECORDES

PUNTEGGI PIÙ ALTI

TOPPOÄNG

RANKING

РЕКОРДЫ

NILAI TERTINGGI

ハイスコア

排行榜

01

ABCDEFGHIJKLM

00000000

02

ABCDEFGHIJKLM

00000000

03

ABCDEFGHIJKLM

00000000

04

ABCDEFGHIJKLM

00000000

05

ABCDEFGHIJKLM

00000000

06

ABCDEFGHIJKLM

00000000

07

ABCDEFGHIJKLM

00000000

08

ABCDEFGHIJKLM

00000000

09

ABCDEFGHIJKLM

00000000

10

ABCDEFGHIJKLM

00000000

Rank

Plaats

Rang

Platz

Posición

Classificação

Lugar

Posizione

Plats

Pozycja

Место

Peringkat

ランク

排名

No.

Name

Naam

Nom

Nombre

Nome

Nome

Namn

Imię

Имя

Nama

名前

名字

Score

Punkte

Puntuación

Pontuação

Punteggio

Poäng

Wynik

Счет

Skor

スコア

分数

Grid: On

Raster: Aan

Grille: Activé

Raster : An

Cuadrícula: Sí

Grade: Ligado

Grelha: Ligada

Griglia: On

Rutor: På

Siatka: Włącz

Сетка: Включить

Jaringan listrik:
Hidupkan

グリッド: オン

网格:开

Grid: Off

Raster: Uit

Grille: Désactivé

Raster : Aus

Cuadrícula: No

Grade: Desligado

Grelha: Desligada

Griglia: Off

Rutor: Av

Siatka: Wyłącz

Сетка: Выключить

Jaringan listrik:
Matikan

グリッド: オフ

网格:关

Infantry

Infanterie

Infantería

Infantaria

Fanteria

Infanteri

Piechota

Пехота

歩兵

突击步兵

Recon

Verkenning

Éclaireur

Erkundung

Reconocimiento

Reconhecimento

Batedores

Ricognizione

Span

Rozpoznanie

Разведка

Pengintai

特殊偵察

侦查吉普车

Tank

Char

Panzer

Tanque

Carro armato

Stridsvagn

Czołg

Танки

Tangki

戦車

中型坦克

Heavy Tank

Zware tank

Char lourd

Schwerpanzer

Tanque pesado

Tanque Pesado

Carri armati pesanti

Tung stridsvagn

Czołg ciężki

Тяжелые танки

Tangki Berat

重戦車

重型坦克

Heavy tank

Demon Robot

Oorlogsrobot

Robot démon

Kampfroboter

Robot demonio

Robô Demônio

Robô Demónio

Demonrobot

Demoniczny Robot

Демонотрон

Robot setan

デーモンロボット

恶魔机甲

Demon robot

Artillery

Artillerie

Artillería

Artilharia

Artiglieria

Artilleri

Artyleria

Артиллерия

Pasukan bagian
meriam

大砲

自走跑车

0

0

Cost

Kosten

Coût

Coste

Preço

Custo

Costo

Pris

Koszt

Стоимость

Biaya

費用

花费

Start Battle

Gevecht starten

Commencer la bataille

Kampf starten

Iniciar combate

Começar batalha

Iniciar Batalha

Inizia la battaglia

Starta strid

Rozpocznij bitwę

Начать битву

Memulai Pertarungan

戦闘開始

开始战斗

Done

01

Difficulty

LEVEL MAP

LEVELKAART

CARTE DE NIVEAU

LEVELKARTE

MAPA DEL NIVEL

MAPA DOS NÍVEIS

MAPA DO NÍVEL

Mappa del livello

NIVÅKARTA

MAPA POZIOMÓW

КАРТА УРОВНЕЙ

PETA LEVEL

LEVEL MAP

关卡地图

Paused

Gepauzeerd

En pause

Angehalten

En pausa

Em pausa

In pausa

Pausat

Pauza

Пауза

Berhenti sebentar

中断中

游戏暂停

Game Pause

Click Mouse or Press Any Key to Resume

Click the mouse or press any key to resume

Klik met de muis of druk op een toets om door te gaan

Clique sur le bouton de la souris ou Appuie sur n'importe
quelle touche du clavier pour reprendre

Zum Fortfahren Maustaste oder beliebige Taste auf
der Tastatur drücken

Haz clic con el ratón o pulsa cualquier tecla para reanudar

Clique ou pressione qualquer tecla para continuar

Clica no Rato ou prime qualquer tecla para retomar

Clicca il mouse o premi qualsiasi tasto per continuare

Klicka eller tryck en tangent för att fortsätta

Kliknij lub nacisnij dowolny klawisz, aby kontynuować

Щелкни мышью или нажми любую клавишу, чтобы продолжить

Klik Mouse atau Tekan tombol apapun untuk memulai lagi

マウスでクリックするかいずれかのキーを押して再開

点击鼠标或按任意键重返游戏

Easy

Makkelijk

Facile

Einfach

Fácil

Lätt

Łatwy

Легкий

Mudah

簡単

简单

Hard

Moeilijk

Difficile

Schwer

Difícil

Ardua

Svårt

Trudny

Трудный

Sukar

難しい

困难

ActionScript [AS3]

Section 1
//Action (code.ai.Action) package code.ai { import flash.events.*; import code.game.*; import code.game.mainItem.*; public class Action extends EventDispatcher { private var _arriveSurrogate:Function; private var _direct:String; private var _aimX:int; private var _aimY:int; private var _step:int; private var _endY:int; private var _endX:int; private var _ai:AI; private var _unit:AbstractUnit; private var _stepArray:Array; private var _reviseNum:int; public function Action(_arg1:AI){ _ai = _arg1; init(); } function setAim(_arg1:int, _arg2:int):void{ _aimX = _arg1; _aimY = _arg2; } private function moveCtl():void{ if (_step < _stepArray.length){ if (_unit.xGrid != _stepArray[_step][0]){ if (_unit.xGrid > _stepArray[_step][0]){ _direct = "left"; } else { if (_unit.xGrid < _stepArray[_step][0]){ _direct = "right"; }; }; } else { if (_unit.yGrid > _stepArray[_step][1]){ _direct = "up"; } else { if (_unit.yGrid < _stepArray[_step][1]){ _direct = "down"; }; }; }; moveFunc(_direct, _stepArray[_step][0], _stepArray[_step][1]); _step++; } else { _direct = null; }; } private function robotStop(_arg1:String):void{ var _local2:AiEvent; _local2 = new AiEvent("_keyUp", _arg1); _ai.dispatchEvent(_local2); } private function init():void{ _arriveSurrogate = new Function(); } function setEnd(_arg1:int, _arg2:int):void{ _endX = _arg1; _endY = _arg2; } public function set unit(_arg1:AbstractUnit):void{ _unit = _arg1; } private function moveFunc(_arg1:String, _arg2:int, _arg3:int):void{ var _local4:AiEvent; _local4 = new AiEvent("_keyDown", _arg1); _ai.dispatchEvent(_local4); setAim(_arg2, _arg3); Game.instance.gameEngine.addEngine(orienta); } function setAction(_arg1:int, _arg2:int, _arg3:Function):Array{ setEnd(_arg1, _arg2); _arriveSurrogate = _arg3; return (robotMove(_arg1, _arg2)); } public function clearSelf():void{ _unit = null; _ai = null; _stepArray = null; _arriveSurrogate = null; } private function orienta():void{ var _local1:int; var _local2:int; _local1 = _unit.xGrid; _local2 = _unit.yGrid; if ((((_local1 == _aimX)) && ((_local2 == _aimY)))){ robotStop(_direct); Game.instance.gameEngine.minEngine(orienta); moveCtl(); if ((((_local1 == _endX)) && ((_local2 == _endY)))){ Game.instance.gameEngine.minEngine(reviseMove); robotStop(_unit.direct); _arriveSurrogate(); }; }; } public function turning(_arg1:String):void{ var _local2:AiEvent; _local2 = new AiEvent("_keyDown", _arg1); _ai.dispatchEvent(_local2); _local2 = new AiEvent("_keyUp", _arg1); _ai.dispatchEvent(_local2); } public function pauseAction():void{ Game.instance.gameEngine.minEngine(orienta); Game.instance.gameEngine.minEngine(reviseMove); } function robotMove(_arg1:int, _arg2:int):Array{ Game.instance.gameEngine.minEngine(reviseMove); Game.instance.gameEngine.minEngine(orienta); _stepArray = null; _step = 0; _stepArray = Tool.instance.fidePath(_unit, _arg1, _arg2); if (_stepArray != null){ moveCtl(); Game.instance.gameEngine.addEngine(reviseMove); }; return (_stepArray); } private function reviseMove():void{ if (_reviseNum > 20){ _stepArray = Tool.instance.fidePath(_unit, _endX, _endY); _step = 0; _reviseNum = 0; Game.instance.gameEngine.minEngine(orienta); if (_stepArray != null){ moveCtl(); } else { Game.instance.gameEngine.minEngine(orienta); Game.instance.gameEngine.minEngine(reviseMove); robotStop(_unit.direct); this.dispatchEvent(new Event("clearStateFunc")); }; } else { _reviseNum++; }; } public function reInit():void{ _stepArray = null; _step = 0; _direct = null; _aimX = 0; _aimY = 0; _endX = 0; _endY = 0; _arriveSurrogate = null; } public function spaceKey():void{ var _local1:AiEvent; _local1 = new AiEvent("_keyDown", "spaceKey"); _ai.dispatchEvent(_local1); } } }//package code.ai
Section 2
//AiEvent (code.ai.AiEvent) package code.ai { import flash.events.*; public class AiEvent extends Event { private var _code:String; private var _eventType:String; public function AiEvent(_arg1:String, _arg2:String){ _eventType = _arg1; _code = _arg2; super(_eventType); } override public function toString():String{ return (formatToString("AiEvent", "type", "bubbles", "cancelable", "eventPhase", "code")); } public function get keyCode():String{ return (_code); } override public function clone():Event{ var _local1:AiEvent; _local1 = new AiEvent(_eventType, _code); return (_local1); } public function set keyCode(_arg1:String):void{ _code = _arg1; } public static function get KEY_DOWN():String{ return ("_keyDown"); } public static function get KEY_UP():String{ return ("_keyUp"); } } }//package code.ai
Section 3
//Apperceive (code.ai.Apperceive) package code.ai { import code.game.*; import code.game.mainItem.*; import code.game.prop.*; public class Apperceive { private var _findRange:int; private var _buildingArr:Array; private var _freeArr:Array; private var _unit:AbstractUnit; private var _otherUnitArr:Array; private var _propArr:Array; public function Apperceive(){ init(); } public function set unit(_arg1:AbstractUnit):void{ _unit = _arg1; } function get otherUnitArr():Array{ return (_otherUnitArr); } private function init():void{ _findRange = 5; _buildingArr = new Array(); _propArr = new Array(); _otherUnitArr = new Array(); _freeArr = new Array(); } function get buildingArr():Array{ return (_buildingArr); } function get freeArr():Array{ return (_freeArr); } public function apperceiveMap():void{ var _local1:AbstractBuilding; var _local2:AbstractProp; var _local3:AbstractUnit; var _local4:int; var _local5:int; var _local6:int; _buildingArr.splice(0); for each (_local1 in Game.instance.gameData.buildingArr) { if (((!((_local1.owner == _unit.player))) && ((_local1.occupant == null)))){ _buildingArr.push(_local1); }; }; _propArr.splice(0); for each (_local2 in Game.instance.gameData.propArr) { _propArr.push(_local2); }; _otherUnitArr.splice(0); for each (_local3 in Game.instance.gameData.unitArr) { if (_local3.player != _unit.player){ _otherUnitArr.push(_local3); }; }; _freeArr.splice(0); _local4 = 0; while (_local4 < Game.instance.gameData.mapSize.x) { _local5 = 0; while (_local5 < Game.instance.gameData.mapSize.y) { if (Tool.instance.ifNull(_unit, _local4, _local5)){ _local6 = (Math.abs((_unit.xGrid - _local4)) + Math.abs((_unit.yGrid - _local5))); if (_local6 > 1){ _freeArr.push(new Array(_local4, _local5)); }; }; _local5++; }; _local4++; }; } public function reInit():void{ _buildingArr.splice(0); _propArr.splice(0); _otherUnitArr.splice(0); _freeArr.splice(0); } public function clearSelf():void{ _unit = null; _buildingArr = null; _propArr = null; _freeArr = null; _otherUnitArr = null; } function get propArr():Array{ return (_propArr); } } }//package code.ai
Section 4
//Decision (code.ai.Decision) package code.ai { import flash.events.*; import flash.display.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class Decision extends Sprite { private var _apperceive:Apperceive; private var _aimUnit:AbstractUnit; private var _lastunitArr:Array; private var _engineArr:Array; private var _unit:AbstractUnit; private var _lastBuildingArr:Array; private var _stateArr:Array; private var _stateFunc:Function; private var _action:Action; private var _actionChosArr:Array; private var _time:int; private var _lastPropArr:Array; private var _attackPro:Number; private var _setActionArr:Array; private var _occupingBuilding:AbstractBuilding; public function Decision(_arg1:AI){ init(_arg1); } public function reInit():void{ _time = 0; _stateFunc = null; _action.reInit(); _apperceive.reInit(); _lastPropArr.splice(0); _lastBuildingArr.splice(0); _lastunitArr.splice(0); _aimUnit = null; _unit = null; _occupingBuilding = null; if (Game.instance.gameEngine.indexEngine(judgeOccupy)){ Game.instance.gameEngine.minEngine(judgeOccupy); }; } public function set unit(_arg1:AbstractUnit):void{ _unit = _arg1; _apperceive.unit = _unit; _action.unit = _unit; } public function stop():void{ if (Game.instance.gameData.getAiWorkArr(Game.instance.gameData.stageNum)){ _action.pauseAction(); Game.instance.gameEngine.minEngine(action); }; } private function buildingHandle():void{ var _local1:Boolean; var _local2:Array; if (_apperceive.buildingArr.length == 0){ if (_stateFunc == buildingHandle){ _stateFunc = null; }; return; }; if (turnAction(buildingHandle)){ if (_stateFunc != buildingHandle){ _local1 = true; } else { if (!Tool.instance.arrCompare(_apperceive.buildingArr, _lastBuildingArr)){ _local1 = true; }; }; }; if (_local1){ Tool.instance.taxisDistan(_unit, _apperceive.buildingArr); _local2 = findAppropriateAim(_apperceive.buildingArr); if (_local2 != null){ _action.setAction(_local2[0], _local2[1], buildingHandleEnd); _stateFunc = buildingHandle; _lastBuildingArr = ArrayManager.arrayClone(_apperceive.buildingArr); }; }; } private function init(_arg1:AI):void{ Tool.creatInstance(); _attackPro = Game.instance.gameData.aiAttackPro; _unit = _arg1.controlObj; _apperceive = new Apperceive(); _action = new Action(_arg1); _action.addEventListener("clearStateFunc", clearStateHandle, false, 0, true); _lastPropArr = new Array(); _lastBuildingArr = new Array(); _lastunitArr = new Array(); _stateArr = new Array(otherUnitHandle, buildingHandle, propHandle, freeHandle); _engineArr = new Array(otherUnitHandle, buildingHandle, propHandle, freeHandle); _actionChosArr = new Array(); _actionChosArr["attack"] = setOtherUnitAction; _actionChosArr["building"] = setBuildingAction; _actionChosArr["prop"] = setPropAction; _setActionArr = new Array(); } private function setBuildingAction():void{ if (_apperceive.buildingArr.length != 0){ _engineArr.push(buildingHandle); }; } private function turnAction(_arg1:Function):Boolean{ var _local2:int; var _local3:int; _local3 = 0; while (_local3 < _stateArr.length) { if (_stateArr[_local3] == _arg1){ _local2 = _local3; break; }; _local3++; }; _local3 = 0; while (_local3 < _local2) { if (_stateArr[_local3] == _stateFunc){ return (false); }; _local3++; }; return (true); } private function otherUnitHandle():void{ var _local1:Boolean; var _local2:Array; if (_apperceive.otherUnitArr.length == 0){ if (_stateFunc == otherUnitHandle){ _stateFunc = null; }; return; }; if (turnAction(otherUnitHandle)){ if (_stateFunc != otherUnitHandle){ _local1 = true; } else { if (!Tool.instance.arrCompare(_apperceive.otherUnitArr, _lastunitArr)){ _local1 = true; }; }; }; if (_local1){ Tool.instance.taxisDistan(_unit, _apperceive.otherUnitArr); _local2 = beelineSearchPos(_apperceive.otherUnitArr); if (_local2 != null){ attackEnemy(_local2); _lastunitArr = ArrayManager.arrayClone(_apperceive.otherUnitArr); }; }; } private function attackEnemy(_arg1:Array):void{ _action.setAction(_arg1[0], _arg1[1], turnDirectAction); _stateFunc = otherUnitHandle; } public function play():void{ if (Game.instance.gameData.getAiWorkArr(Game.instance.gameData.stageNum)){ Game.instance.gameEngine.addEngine(action); }; } private function action():void{ if (_time > Game.instance.gameData.aiAnswerTime){ _apperceive.apperceiveMap(); decisionCenter(); _time = 0; } else { _time++; }; } public function setAction(... _args):void{ var _local2:String; for each (_local2 in _args) { _setActionArr.push(_actionChosArr[_local2]); }; } private function beenAttackedHandle(_arg1:Event):void{ Game.instance.gameEngine.minEngine(judgeOccupy); occupyEnd(); } private function buildingHandleEnd():void{ if (Game.instance.gameEngine.indexEngine(judgeOccupy)){ Game.instance.gameEngine.minEngine(judgeOccupy); }; if ((Game.instance.gameData.map.getItem(_unit.xGrid, _unit.yGrid) as AbstractBuilding)){ _occupingBuilding = AbstractBuilding(Game.instance.gameData.map.getItem(_unit.xGrid, _unit.yGrid)); if (_occupingBuilding.occupant == _unit){ Game.instance.gameEngine.addEngine(judgeOccupy); _unit.addEventListener("beenAttacked", beenAttackedHandle, false, 0, true); } else { _occupingBuilding = null; _stateFunc = null; }; } else { throw (new Error(" 占领流程完成后 所在位置不是建筑...")); }; } public function clearSelf():void{ _stateFunc = null; _action.clearSelf(); _apperceive.clearSelf(); _lastPropArr = null; _lastBuildingArr = null; _lastunitArr = null; _aimUnit = null; _unit = null; _occupingBuilding = null; if (Game.instance.gameEngine.indexEngine(judgeOccupy)){ Game.instance.gameEngine.minEngine(judgeOccupy); }; } private function setOtherUnitAction():void{ if (_apperceive.otherUnitArr.length != 0){ _engineArr.push(otherUnitHandle); }; } private function decisionCenter():void{ var _local1:Function; var _local2:Array; var _local3:int; _engineArr.splice(0); _engineArr.push(freeHandle, freeHandle, freeHandle); for each (_local1 in _setActionArr) { _local1(); }; _local2 = lineSearch(_apperceive.otherUnitArr); if (((!((_local2 == null))) && ((Math.random() < _attackPro)))){ lineAttack(_local2); }; if (_stateFunc == null){ _local3 = (Math.random() * _engineArr.length); var _local4 = _engineArr; _local4[_local3](); }; } private function propHandle():void{ var _local1:Boolean; var _local2:Array; if (_apperceive.propArr.length == 0){ if (_stateFunc == propHandle){ _stateFunc = null; }; return; }; if (turnAction(propHandle)){ if (_stateFunc != propHandle){ _local1 = true; } else { if (!Tool.instance.arrCompare(_apperceive.propArr, _lastPropArr)){ _local1 = true; }; }; }; if (_local1){ Tool.instance.taxisDistan(_unit, _apperceive.propArr); _local2 = findAppropriateAim(_apperceive.propArr); if (_local2 != null){ _action.setAction(_local2[0], _local2[1], clearStateFunc); _stateFunc = propHandle; _lastPropArr = ArrayManager.arrayClone(_apperceive.propArr); }; }; } public function clearStateFunc():void{ _stateFunc = null; } private function lineAttack(_arg1:Array):void{ if (_apperceive.otherUnitArr.length == 0){ if (_stateFunc == otherUnitHandle){ _stateFunc = null; }; return; }; if (_arg1 != null){ attackEnemy(_arg1); }; } private function findAppropriateAim(_arg1:Array):Array{ var _local2:Array; var _local3:int; _local3 = 0; for (;_local3 < _arg1.length;_local3++) { if (Tool.instance.fidePath(_unit, _arg1[_local3].xGrid, _arg1[_local3].yGrid)){ _local2 = new Array(_arg1[_local3].xGrid, _arg1[_local3].yGrid); return (_local2); }; continue; }; return (null); } private function setPropAction():void{ if (_apperceive.propArr.length != 0){ _engineArr.push(propHandle); }; } public function get unit():AbstractUnit{ return (_unit); } private function clearStateHandle(_arg1:Event):void{ _stateFunc = null; } private function freeHandle():void{ var _local1:Boolean; var _local2:Array; var _local3:*; if (_apperceive.freeArr.length == 0){ if (_stateFunc == freeHandle){ _stateFunc = null; }; return; }; if (turnAction(freeHandle)){ if (_stateFunc != freeHandle){ _local1 = true; }; }; if (_local1){ do { _local3 = int((Math.random() * _apperceive.freeArr.length)); _local2 = _apperceive.freeArr[_local3]; if (Tool.instance.fidePath(_unit, _local2[0], _local2[1])){ _action.setAction(_local2[0], _local2[1], clearStateFunc); _stateFunc = freeHandle; return; }; _apperceive.freeArr.splice(_local3, 1); } while (_apperceive.freeArr.length != 0); }; } protected function beelineSearchPos(_arg1:Array):Array{ var _local2:Array; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:Array; _local3 = 100; _local7 = Math.floor((_unit.weapon.shotDistance / Game.instance.gameData.gridWid)); _local4 = 0; while (_local4 < _arg1.length) { _local8 = new Array(); _local5 = 1; for (;_local5 < (_local7 + 1);_local5++) { if ((_arg1[_local4].xGrid + _local5) < Game.instance.gameData.mapSize.x){ if (_local5 == _local7){ _local8.push(new Array((_arg1[_local4].xGrid + _local5), _arg1[_local4].yGrid)); break; }; if (Tool.instance.cannonballIfNull((_arg1[_local4].xGrid + _local5), _arg1[_local4].yGrid)){ _local8.push(new Array((_arg1[_local4].xGrid + _local5), _arg1[_local4].yGrid)); continue; } else { break; }; } else { break; }; }; _local5 = 1; for (;_local5 < (_local7 + 1);_local5++) { if ((_arg1[_local4].xGrid - _local5) > -1){ if (_local5 == _local7){ _local8.push(new Array((_arg1[_local4].xGrid - _local5), _arg1[_local4].yGrid)); break; }; if (Tool.instance.cannonballIfNull((_arg1[_local4].xGrid - _local5), _arg1[_local4].yGrid)){ _local8.push(new Array((_arg1[_local4].xGrid - _local5), _arg1[_local4].yGrid)); continue; } else { break; }; } else { break; }; }; _local5 = 1; for (;_local5 < (_local7 + 1);_local5++) { if ((_arg1[_local4].yGrid - _local5) > -1){ if (_local5 == _local7){ _local8.push(new Array(_arg1[_local4].xGrid, (_arg1[_local4].yGrid - _local5))); break; }; if (Tool.instance.cannonballIfNull(_arg1[_local4].xGrid, (_arg1[_local4].yGrid - _local5))){ _local8.push(new Array(_arg1[_local4].xGrid, (_arg1[_local4].yGrid - _local5))); continue; } else { break; }; } else { break; }; }; _local5 = 1; for (;_local5 < (_local7 + 1);_local5++) { if ((_arg1[_local4].yGrid + _local5) < Game.instance.gameData.mapSize.y){ if (_local5 == _local7){ _local8.push(new Array(_arg1[_local4].xGrid, (_arg1[_local4].yGrid + _local5))); break; }; if (Tool.instance.cannonballIfNull(_arg1[_local4].xGrid, (_arg1[_local4].yGrid + _local5))){ _local8.push(new Array(_arg1[_local4].xGrid, (_arg1[_local4].yGrid + _local5))); continue; } else { break; }; } else { break; }; }; _local5 = 0; while (_local5 < _local8.length) { if (Tool.instance.fidePath(_unit, _local8[_local5][0], _local8[_local5][1])){ _local6 = (Math.abs((_local8[_local5][0] - _unit.xGrid)) + Math.abs((_local8[_local5][1] - _unit.yGrid))); if (_local6 < _local3){ _aimUnit = _arg1[_local4]; _local2 = new Array(_local8[_local5][0], _local8[_local5][1]); _local3 = _local6; }; }; _local5++; }; _local4++; }; return (_local2); } private function turnDirectAction():void{ if (Game.instance.gameData.unitArr.indexOf(_aimUnit) != -1){ if (_aimUnit.xGrid > _unit.xGrid){ _action.turning("right"); } else { if (_aimUnit.xGrid < _unit.xGrid){ _action.turning("left"); } else { if (_aimUnit.yGrid > _unit.yGrid){ _action.turning("down"); } else { if (_aimUnit.yGrid < _unit.yGrid){ _action.turning("up"); }; }; }; }; }; _action.spaceKey(); _stateFunc = null; _aimUnit = null; } private function lineSearch(_arg1:Array):Array{ var _local2:int; var _local3:AbstractUnit; _local2 = _unit.weapon.shotDistance; for each (_local3 in _arg1) { if (Math.abs((_unit.xPos - _local3.xPos)) < 15){ if (Math.abs((_unit.yPos - _local3.yPos)) < _local2){ _aimUnit = _local3; return (new Array(_unit.xGrid, _unit.yGrid)); }; } else { if (Math.abs((_unit.yPos - _local3.yPos)) < 15){ if (Math.abs((_unit.xPos - _local3.xPos)) < _local2){ _aimUnit = _local3; return (new Array(_unit.xGrid, _unit.yGrid)); }; }; }; }; return (null); } private function occupyEnd():void{ _unit.removeEventListener("beenAttacked", beenAttackedHandle); _occupingBuilding = null; _stateFunc = null; } private function judgeOccupy():void{ if (((!((_occupingBuilding.occupant == _unit))) || ((_occupingBuilding.owner == _unit.player)))){ Game.instance.gameEngine.minEngine(judgeOccupy); occupyEnd(); }; } } }//package code.ai
Section 5
//Tool (code.ai.Tool) package code.ai { import code.game.*; import code.game.mainItem.*; public class Tool { private var _fideArithmeticProxy:Function; private static var _instance:Tool; public function Tool(_arg1:ToolSingletonEnforcer){ trace(_arg1); init(); } public function cannonballIfNull(_arg1:int, _arg2:int):Boolean{ var _local3:AbstractItem; _local3 = Game.instance.gameData.map.getItem(_arg1, _arg2); if (_local3 == null){ return (true); }; if ((((_local3 as AbstractBuilding)) || ((_local3 as River)))){ return (true); }; return (false); } public function arrCompare(_arg1:Array, _arg2:Array):Boolean{ var _local3:Boolean; var _local4:int; var _local5:int; if ((((_arg1 == null)) || ((_arg2 == null)))){ return (false); }; if (_arg1.length == _arg2.length){ _local4 = 0; while (_local4 < _arg1.length) { _local5 = 0; while (_local5 < _arg2.length) { if ((((_arg1[_local4].xGrid == _arg2[_local5].xGrid)) && ((_arg1[_local4].yGrid == _arg2[_local5].yGrid)))){ if (_local4 == (_arg1.length - 1)){ _local3 = true; return (_local3); }; //unresolved jump }; _local5++; }; _local3 = false; _local4++; }; } else { _local3 = false; }; return (_local3); } public function fidePath(_arg1:AbstractUnit, _arg2:int, _arg3:int):Array{ var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:String; var _local11:int; var _local12:Array; var _local13:Array; var _local14:Array; var _local15:Array; var _local16:Array; var _local17:Array; var _local18:Array; var _local19:Array; _local6 = _arg1.xGrid; _local7 = _arg1.yGrid; _local8 = _arg2; _local9 = _arg3; if (!ifNull(_arg1, _arg2, _arg3)){ return (null); }; _local12 = _fideArithmeticProxy(_arg1, _arg2, _arg3); if (_local12.length == 0){ return (null); }; _local4 = 0; while (_local4 < _local12.length) { _local5 = (_local4 + 1); while (_local5 < _local12.length) { if (_local12[_local5][0] <= _local12[_local4][0]){ _local19 = new Array(); _local19 = _local12[_local4]; _local12[_local4] = _local12[_local5]; _local12[_local5] = _local19; }; _local5++; }; _local4++; }; _local13 = new Array(); _local13.push(_local12[0]); _local4 = 1; while (_local4 < _local12.length) { if (_local12[_local4][0] == _local12[0][0]){ _local13.push(_local12[_local4]); }; _local4++; }; _local14 = _local13[Math.floor((Math.random() * _local13.length))]; _local10 = _local14[2]; _local11 = _local14[1]; _local17 = new Array(_local8, _local9); _local18 = new Array(); if ((((_local6 == _local11)) && ((_local8 == _local11)))){ _local18.push(_local17); } else { if ((((_local7 == _local11)) && ((_local9 == _local11)))){ _local18.push(_local17); } else { if (_local10 == "X"){ if (_local11 == _local8){ _local15 = new Array(_local11, _local7); _local18.push(_local15); _local18.push(_local17); } else { _local15 = new Array(_local11, _local7); _local16 = new Array(_local11, _local9); _local18.push(_local15); _local18.push(_local16); _local18.push(_local17); }; } else { if (_local10 == "Y"){ if (_local11 == _local9){ _local15 = new Array(_local6, _local11); _local18.push(_local15); _local18.push(_local17); } else { _local15 = new Array(_local6, _local11); _local16 = new Array(_local8, _local11); _local18.push(_local15); _local18.push(_local16); _local18.push(_local17); }; }; }; }; }; if (_local10 != null){ return (_local18); }; return (null); } public function deleDouble(_arg1:Array):void{ var _local2:int; var _local3:int; _local2 = 0; while (_local2 < _arg1.length) { _local3 = (_local2 + 1); while (_local3 < _arg1.length) { if ((((_arg1[_local2][0] == _arg1[_local3][0])) && ((_arg1[_local2][1] == _arg1[_local3][1])))){ _arg1.splice(_local3, 1); _local3--; }; _local3++; }; _local2++; }; } public function taxisDistan(_arg1:AbstractUnit, _arg2:Array):void{ var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:AbstractItem; _local3 = _arg1.xGrid; _local4 = _arg1.yGrid; _local5 = 0; while (_local5 < _arg2.length) { _local6 = _local5; while (_local6 < _arg2.length) { if ((Math.abs((_arg2[_local5].xGrid - _local3)) + Math.abs((_arg2[_local5].yGrid - _local4))) > (Math.abs((_arg2[_local6].xGrid - _local3)) + Math.abs((_arg2[_local6].yGrid - _local4)))){ _local7 = _arg2[_local5]; _arg2[_local5] = _arg2[_local6]; _arg2[_local6] = _local7; }; _local6++; }; _local5++; }; _local5 = 0; while (_local5 < _arg2.length) { if ((Math.abs((_arg2[0].xGrid - _local3)) + Math.abs((_arg2[0].yGrid - _local4))) == (Math.abs((_arg2[_local5].xGrid - _local3)) + Math.abs((_arg2[_local5].yGrid - _local4)))){ if (Math.random() > 0.4){ _local7 = _arg2[0]; _arg2[0] = _arg2[_local5]; _arg2[_local5] = _local7; }; } else { break; }; _local5++; }; } private function init():void{ _fideArithmeticProxy = normalFidePath; } public function setFideArithmetic(_arg1:String):void{ if (_arg1 == "normal"){ _fideArithmeticProxy = normalFidePath; }; } private function normalFidePath(_arg1:AbstractUnit, _arg2:int, _arg3:int):Array{ var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:int; var _local12:int; var _local13:int; var _local14:int; var _local15:int; var _local16:int; var _local17:int; var _local18:int; var _local19:int; var _local20:int; var _local21:int; var _local22:Array; var _local23:Array; var _local24:Array; var _local25:Boolean; var _local26:int; var _local27:int; _local4 = _arg1.xGrid; _local5 = _arg1.yGrid; _local6 = _arg2; _local7 = _arg3; _local8 = _arg1.xGrid; _local9 = _arg2; _local10 = _arg1.xGrid; _local11 = _arg2; _local12 = _arg1.yGrid; _local13 = _arg3; _local14 = _arg1.yGrid; _local15 = _arg3; _local16 = (_local8 - 1); while (_local16 > -1) { if (ifNull(_arg1, _local16, _local5)){ _local8 = _local16; } else { break; }; _local16--; }; _local16 = (_local10 + 1); while (_local16 < Game.instance.gameData.mapSize.x) { if (ifNull(_arg1, _local16, _local5)){ _local10 = _local16; } else { break; }; _local16++; }; _local16 = (_local12 - 1); while (_local16 > -1) { if (ifNull(_arg1, _local4, _local16)){ _local12 = _local16; } else { break; }; _local16--; }; _local16 = (_local14 + 1); while (_local16 < Game.instance.gameData.mapSize.y) { if (ifNull(_arg1, _local4, _local16)){ _local14 = _local16; } else { break; }; _local16++; }; _local16 = (_local9 - 1); while (_local16 > -1) { if (ifNull(_arg1, _local16, _local7)){ _local9 = _local16; } else { break; }; _local16--; }; _local16 = (_local11 + 1); while (_local16 < Game.instance.gameData.mapSize.x) { if (ifNull(_arg1, _local16, _local7)){ _local11 = _local16; } else { break; }; _local16++; }; _local16 = (_local13 - 1); while (_local16 > -1) { if (ifNull(_arg1, _local6, _local16)){ _local13 = _local16; } else { break; }; _local16--; }; _local16 = (_local15 + 1); while (_local16 < Game.instance.gameData.mapSize.y) { if (ifNull(_arg1, _local6, _local16)){ _local15 = _local16; } else { break; }; _local16++; }; _local17 = Math.max(_local8, _local9); _local18 = Math.min(_local10, _local11); _local19 = Math.max(_local12, _local13); _local20 = Math.min(_local14, _local15); _local24 = new Array(); if (_local17 <= _local18){ _local16 = _local17; while (_local16 <= _local18) { _local22 = new Array(); _local25 = true; _local21 = (Math.abs((_local16 - _local4)) + Math.abs((_local16 - _local6))); _local26 = Math.min(_local5, _local7); while (_local26 < Math.max(_local5, _local7)) { if (!ifNull(_arg1, _local16, _local26)){ _local25 = false; } else { _local21++; }; _local26++; }; if (_local25){ _local22.push(_local21); _local22.push(_local16); _local22.push("X"); if ((((((_local16 == _local4)) && ((_local16 == _local6)))) && ((_local5 == _local7)))){ _local22.push(new Array(_local4, _local5)); }; if ((((_local16 >= _local4)) && ((_local16 <= _local6)))){ _local27 = (_local4 + 1); while (_local27 <= _local16) { _local22.push(new Array(_local27, _local5)); _local27++; }; if (_local5 != _local7){ _local27 = (Math.min(_local5, _local7) + 1); while (_local27 < Math.max(_local5, _local7)) { _local22.push(new Array(_local16, _local27)); _local27++; }; _local27 = _local16; while (_local27 <= _local6) { _local22.push(new Array(_local27, _local7)); _local27++; }; } else { _local27 = (_local16 + 1); while (_local27 <= _local6) { _local22.push(new Array(_local27, _local7)); _local27++; }; }; } else { if ((((_local16 >= _local4)) && ((_local16 >= _local6)))){ _local27 = (_local4 + 1); while (_local27 <= _local16) { _local22.push(new Array(_local27, _local5)); _local27++; }; if (_local5 != _local7){ _local27 = (Math.min(_local5, _local7) + 1); while (_local27 < Math.max(_local5, _local7)) { _local22.push(new Array(_local16, _local27)); _local27++; }; _local27 = _local16; while (_local27 >= _local6) { _local22.push(new Array(_local27, _local7)); _local27--; }; } else { _local27 = (_local16 - 1); while (_local27 >= _local6) { _local22.push(new Array(_local27, _local7)); _local27--; }; }; } else { if ((((_local16 <= _local4)) && ((_local16 <= _local6)))){ _local27 = (_local4 - 1); while (_local27 >= _local16) { _local22.push(new Array(_local27, _local5)); _local27--; }; if (_local5 != _local7){ _local27 = (Math.min(_local5, _local7) + 1); while (_local27 < Math.max(_local5, _local7)) { _local22.push(new Array(_local16, _local27)); _local27++; }; _local27 = _local16; while (_local27 <= _local6) { _local22.push(new Array(_local27, _local7)); _local27++; }; } else { _local27 = (_local16 + 1); while (_local27 <= _local6) { _local22.push(new Array(_local27, _local7)); _local27++; }; }; } else { if ((((_local16 <= _local4)) && ((_local16 >= _local6)))){ _local27 = (_local4 - 1); while (_local27 >= _local16) { _local22.push(new Array(_local27, _local5)); _local27--; }; if (_local5 != _local7){ _local27 = (Math.min(_local5, _local7) + 1); while (_local27 < Math.max(_local5, _local7)) { _local22.push(new Array(_local16, _local27)); _local27++; }; _local27 = _local16; while (_local27 >= _local6) { _local22.push(new Array(_local27, _local7)); _local27--; }; } else { _local27 = (_local16 - 1); while (_local27 >= _local6) { _local22.push(new Array(_local27, _local7)); _local27--; }; }; }; }; }; }; _local24.push(_local22); }; _local16++; }; }; if (_local19 <= _local20){ _local16 = _local19; while (_local16 <= _local20) { _local23 = new Array(); _local25 = true; _local21 = (Math.abs((_local16 - _local5)) + Math.abs((_local16 - _local7))); _local26 = Math.min(_local4, _local6); while (_local26 < Math.max(_local4, _local6)) { if (!ifNull(_arg1, _local26, _local16)){ _local25 = false; } else { _local21++; }; _local26++; }; if (_local25){ _local23.push(_local21); _local23.push(_local16); _local23.push("Y"); if ((((((_local16 == _local5)) && ((_local16 == _local7)))) && ((_local4 == _local6)))){ _local23.push(new Array(_local4, _local5)); }; if ((((_local16 >= _local5)) && ((_local16 <= _local7)))){ _local27 = (_local5 + 1); while (_local27 <= _local16) { _local23.push(new Array(_local4, _local27)); _local27++; }; if (_local4 != _local6){ _local27 = (Math.min(_local4, _local6) + 1); while (_local27 < Math.max(_local4, _local6)) { _local23.push(new Array(_local27, _local16)); _local27++; }; _local27 = _local16; while (_local27 <= _local7) { _local23.push(new Array(_local6, _local27)); _local27++; }; } else { _local27 = (_local16 + 1); while (_local27 <= _local7) { _local23.push(new Array(_local6, _local27)); _local27++; }; }; } else { if ((((_local16 >= _local5)) && ((_local16 >= _local7)))){ _local27 = (_local5 + 1); while (_local27 <= _local16) { _local23.push(new Array(_local4, _local27)); _local27++; }; if (_local4 != _local6){ _local27 = (Math.min(_local4, _local6) + 1); while (_local27 < Math.max(_local4, _local6)) { _local23.push(new Array(_local27, _local16)); _local27++; }; _local27 = _local16; while (_local27 >= _local7) { _local23.push(new Array(_local6, _local27)); _local27--; }; } else { _local27 = (_local16 - 1); while (_local27 >= _local7) { _local23.push(new Array(_local6, _local27)); _local27--; }; }; } else { if ((((_local16 <= _local5)) && ((_local16 >= _local7)))){ _local27 = (_local5 - 1); while (_local27 >= _local16) { _local23.push(new Array(_local4, _local27)); _local27--; }; if (_local4 != _local6){ _local27 = (Math.min(_local4, _local6) + 1); while (_local27 < Math.max(_local4, _local6)) { _local23.push(new Array(_local27, _local16)); _local27++; }; _local27 = _local16; while (_local27 >= _local7) { _local23.push(new Array(_local6, _local27)); _local27--; }; } else { _local27 = (_local16 - 1); while (_local27 >= _local7) { _local23.push(new Array(_local6, _local27)); _local27--; }; }; } else { if ((((_local16 <= _local5)) && ((_local16 <= _local7)))){ _local27 = (_local5 - 1); while (_local27 >= _local16) { _local23.push(new Array(_local4, _local27)); _local27--; }; if (_local4 != _local6){ _local27 = (Math.min(_local4, _local6) + 1); while (_local27 < Math.max(_local4, _local6)) { _local23.push(new Array(_local27, _local16)); _local27++; }; _local27 = _local16; while (_local27 <= _local7) { _local23.push(new Array(_local6, _local27)); _local27++; }; } else { _local27 = (_local16 + 1); while (_local27 <= _local7) { _local23.push(new Array(_local6, _local27)); _local27++; }; }; }; }; }; }; _local24.push(_local23); }; _local16++; }; }; return (_local24); } public function ifNull(_arg1:AbstractUnit, _arg2:int, _arg3:int):Boolean{ var _local4:Boolean; var _local5:AbstractItem; var _local6:Array; var _local7:AbstractUnit; _local5 = Game.instance.gameData.map.getItem(_arg2, _arg3); if (_local5 == null){ _local4 = true; } else { if ((_arg1 as Soldier)){ if ((((_local5 as ClarityWall)) || ((_local5 as Sea)))){ _local4 = false; } else { _local4 = true; }; } else { if ((_local5 as AbstractBuilding)){ _local4 = true; } else { _local4 = false; }; }; }; _local6 = Game.instance.gameData.unitArr; for each (_local7 in _local6) { if (_local7 != _arg1){ if ((((_local7.xGrid == _arg2)) && ((_local7.yGrid == _arg3)))){ _local4 = false; break; }; }; }; return (_local4); } public function countDis(_arg1:Array, _arg2:Array):int{ var _local3:int; _local3 = (Math.abs((_arg1[0] - _arg2[0])) + Math.abs((_arg1[1] - _arg2[1]))); return (_local3); } public static function get instance():Tool{ return (_instance); } public static function creatInstance():void{ if (Tool._instance == null){ Tool._instance = new Tool(new ToolSingletonEnforcer()); }; } public static function deleInstance():void{ Tool._instance = null; } } }//package code.ai class ToolSingletonEnforcer { private function ToolSingletonEnforcer(){ } }
Section 6
//AbstractLandform (code.game.landform.AbstractLandform) package code.game.landform { import code.game.*; import code.system.*; import code.game.mainItem.*; public class AbstractLandform extends AbstractItem { public function AbstractLandform(_arg1:int, _arg2:int){ init(_arg1, _arg2); } protected function setMc():void{ _mc = DisplayManager.instance.getDefinition(landformName); DisplayManager.instance.addChild(_mc, _container); } protected function get landformName():String{ return (null); } protected function init(_arg1:int, _arg2:int):void{ addMap(_arg1, _arg2); DisplayManager.instance.addChild(_container, DisplayManager.instance.gameMainContainer); setMc(); Game.instance.gameData.addImpactObj(this); Game.instance.gameData.addItemArr(this); } override public function clearSelf():void{ DisplayManager.instance.removeChild(_container); super.clearSelf(); } protected function addMap(_arg1:int, _arg2:int):void{ Game.instance.gameData.map.addItem(this, _arg1, _arg2); } public function touchOffHandle(_arg1:AbstractItem):void{ } } }//package code.game.landform
Section 7
//AbstractBuilding (code.game.mainItem.AbstractBuilding) package code.game.mainItem { import flash.events.*; import flash.display.*; import code.ui.*; import code.game.*; import code.system.*; public class AbstractBuilding extends AbstractWall { protected var _beginOccupyTime:int; protected var _occupant:AbstractUnit; protected var _countTime:int; protected var _occupyScheduleMc:OccupyScheduleItem; protected var _eventDispatcher:EventDispatcher; protected var _occupyFuncArr:Array; protected var _owner:AbstractPlayer; protected var _occupyLight:MovieClip; protected var _occupyTime:int; protected var _repairMc:RepairMc; public function AbstractBuilding(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } protected function initScheduleMc(_arg1:AbstractUnit):void{ } public function set occupant(_arg1:AbstractUnit):void{ if (_occupant == null){ _occupant = _arg1; Game.instance.gameEngine.addEngine(occupantControl); }; if (_occupant.player != _owner){ judgeBeginOccupy(); } else { if (_occupant.player == _owner){ repair(); }; }; } protected function initPlayer(_arg1:int):void{ if (_arg1 == 1){ _owner = Game.instance.gameData.protagonistPlayer; } else { if (_arg1 == 2){ _owner = Game.instance.gameData.enemyPlayer; }; }; } protected function repair():void{ if (_occupant.blood < _occupant.totalBlood){ if ((_occupant.totalBlood - _occupant.blood) > _occupant.repairSpeed){ if (_repairMc == null){ _repairMc = new RepairMc(); _occupant.addNeedDisObjArr(_repairMc); }; _occupant.repair(_occupant.repairSpeed); } else { _occupant.repair((_occupant.totalBlood - _occupant.blood)); if (_repairMc != null){ _occupant.minNeedDisObjArr(_repairMc); _repairMc = null; }; }; }; } public function get occupant():AbstractUnit{ return (_occupant); } public function minOccupyFunc(_arg1:Function):void{ var _local2:int; _local2 = _occupyFuncArr.indexOf(_arg1); if (_local2 != -1){ _occupyFuncArr.splice(_local2, 1); }; } public function get owner():AbstractPlayer{ return (_owner); } protected function clearOccupant():void{ if (_occupyScheduleMc != null){ _occupant.minNeedDisObjArr(_occupyScheduleMc); _occupyScheduleMc = null; }; if (_occupyLight != null){ DisplayManager.instance.removeChild(_occupyLight); _occupyLight = null; }; if (_repairMc != null){ _occupant.minNeedDisObjArr(_repairMc); _repairMc = null; }; _countTime = 0; _occupant = null; Game.instance.gameEngine.minEngine(occupantControl); } override public function clearSelf():void{ _occupant = null; _owner = null; _occupyScheduleMc = null; DisplayManager.instance.removeChild(_mc); _mc = null; _bmp = null; super.clearSelf(); } public function dispatchEvent(_arg1:Event):void{ _eventDispatcher.dispatchEvent(_arg1); } protected function judgeBeginOccupy():void{ if (_countTime > (_beginOccupyTime * Game.instance.gameData.frameRate)){ _countTime = (_countTime + _occupant.occupySpeed); if (_occupyScheduleMc == null){ initScheduleMc(_occupant); _occupant.stop(); }; if (_occupyLight == null){ _occupyLight = DisplayManager.instance.getDefinition("occupyMc"); _occupyLight.x = (this.xPos + UiManager.instance.uiData.excursion.x); _occupyLight.y = ((this.yPos + UiManager.instance.uiData.excursion.y) + (Game.instance.gameData.gridWid / 2)); DisplayManager.instance.addChild(_occupyLight, DisplayManager.instance.skyContainer); }; _occupyScheduleMc.restetOccupyMc(((_countTime - (_beginOccupyTime * Game.instance.gameData.frameRate)) / (_occupyTime * Game.instance.gameData.frameRate))); if ((_countTime - _beginOccupyTime) >= (_occupyTime * Game.instance.gameData.frameRate)){ occupiedHandle(); }; } else { _countTime++; }; } override protected function resetMc(_arg1:int):void{ DisplayManager.instance.removeChild(_bmp); DisplayManager.instance.bitmapDataArr.splice(DisplayManager.instance.bitmapDataArr.indexOf(_bmp.bitmapData), 1); _bmp.bitmapData.dispose(); _bmp = DisplayManager.instance.getBitMap(DisplayManager.instance.getDefinition(_mcArr[this.mcNum])); _bmp.x = (-(_bmp.width) / 2); _bmp.y = (-(_bmp.height) / 2); DisplayManager.instance.addChild(_bmp, _mc); } protected function get mcNum():int{ if (_owner != null){ return (_owner.unitMcNum); }; return (0); } public function removeEventListener(_arg1:String, _arg2:Function):void{ _eventDispatcher.removeEventListener(_arg1, _arg2); } public function addOccupyFunc(_arg1:Function):void{ _occupyFuncArr.push(_arg1); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=true):void{ _eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } override protected function initMc():void{ _mc = new MovieClip(); _bmp = DisplayManager.instance.getBitMap(DisplayManager.instance.getDefinition(_mcArr[this.mcNum])); _bmp.x = (-(_bmp.width) / 2); _bmp.y = (-(_bmp.height) / 2); DisplayManager.instance.addChild(_bmp, _mc); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); _eventDispatcher = new EventDispatcher(); } protected function occupantControl():void{ var _local1:Boolean; var _local2:AbstractUnit; for each (_local2 in Game.instance.gameData.unitArr) { if (_local2 == _occupant){ _local1 = true; }; }; if (!_local1){ clearOccupant(); return; }; if (((!((this.xGrid == _occupant.xGrid))) || (!((this.yGrid == _occupant.yGrid))))){ clearOccupant(); }; } protected function occupiedHandle():void{ Game.instance.gameEngine.minEngine(judgeBeginOccupy); _occupant.minNeedDisObjArr(_occupyScheduleMc); _occupant.stop(); _occupyScheduleMc = null; DisplayManager.instance.removeChild(_occupyLight); _occupyLight = null; _owner = _occupant.player; _owner.buildingPoint = (_owner.buildingPoint + Game.instance.gameData.buildingPoint); resetMc(this.mcNum); _countTime = 0; this.dispatchEvent(new Event("occupyEnd")); } override protected function setMapInfo():void{ Game.instance.gameData.addBuildingArr(this); Game.instance.gameData.map.addItem(this, xGrid, yGrid); } public function set owner(_arg1:AbstractPlayer):void{ _owner = _arg1; } protected function occupyFunc():void{ var _local1:int; _local1 = (_occupyFuncArr.length - 1); while (_local1 > -1) { var _local2 = _occupyFuncArr; _local2[_local1](); _local1--; }; } } }//package code.game.mainItem
Section 8
//AbstractItem (code.game.mainItem.AbstractItem) package code.game.mainItem { import flash.display.*; import code.game.*; import code.system.*; public class AbstractItem { protected var _container:Sprite; protected var _height:int; protected var _speed:CoordinateVector; protected var _power:CoordinateVector; protected var _rotation:Number; protected var _wide:int; protected var _mc:MovieClip; public function AbstractItem(){ _container = new Sprite(); _power = new CoordinateVector(); _speed = new CoordinateVector(); _rotation = 0; } public function set rotation(_arg1:Number):void{ _rotation = _arg1; if (_mc != null){ _mc.rotation = ((_arg1 * 180) / Math.PI); }; } public function get power():CoordinateVector{ return (_power); } public function set power(_arg1:CoordinateVector):void{ _power = _arg1; } public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } public function get speed():CoordinateVector{ return (_speed); } public function set speedr(_arg1:CoordinateVector):void{ _speed = _arg1; } public function setImpact(_arg1:Boolean):void{ if (_arg1){ Game.instance.gameData.addImpactObj(this); } else { Game.instance.gameData.minImpactObj(this); }; } public function get container():Sprite{ return (_container); } public function get wide():int{ return (_wide); } public function get yPos():Number{ return (((_container.y + (_height / 2)) - Game.instance.gameData.excursion.y)); } public function get xGrid():int{ return (Math.floor((xPos / Game.instance.gameData.gridWid))); } public function get yGrid():int{ return (Math.floor((yPos / Game.instance.gameData.gridWid))); } public function get mc():MovieClip{ return (_mc); } public function get height():int{ return (_height); } public function addPower(_arg1:CoordinateVector):void{ _power = CoordinateVector.add(_power, _arg1); } public function set yPos(_arg1:Number):void{ _container.y = ((_arg1 - (_height / 2)) + Game.instance.gameData.excursion.y); } public function set xPos(_arg1:Number):void{ _container.x = ((_arg1 - (_wide / 2)) + Game.instance.gameData.excursion.x); } public function clearSelf():void{ _mc = null; _container = null; _power = null; _speed = null; } public function get xPos():Number{ return (((_container.x + (_wide / 2)) - Game.instance.gameData.excursion.x)); } protected function initImpact():void{ } public function get rotation():Number{ return (_rotation); } } }//package code.game.mainItem
Section 9
//AbstractUnit (code.game.mainItem.AbstractUnit) package code.game.mainItem { import flash.events.*; import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class AbstractUnit extends AbstractItem implements IDisInRobotItem, ICannonballShoter { protected var _player:AbstractPlayer; protected var _direct:String; protected var _blood:Number; protected var _unitNum:int; protected var _actionKeyPoxy:Function; protected var _needDisObjArr:Array; protected var _weapon:AbstractWeapon; protected var _velocity:Number; protected var _moveSound:String; protected var _soundSwitch:Boolean; protected var _mcDepth:int; protected var _bloodDis:IDisInRobotItem; protected var _attackAphlaTime:int; protected var _eventDispatcher:EventDispatcher; protected var _couldAttack:Boolean; protected var _totalBlood:Number; protected var _propArr:Array; protected var _attackAphlaTotalTime:int; protected var _shotSpeed:Number; protected var _occupySpeed:int; protected var _repairSpeed:Number; protected var _bmpMc:Bitmap; public function AbstractUnit(_arg1:int){ _unitNum = _arg1; super(); init(); } public function addNeedDisObjArr(_arg1:IDisInRobotItem):void{ _needDisObjArr.push(_arg1); _arg1.creatDisMc(direct); _arg1.disMc.x = _arg1.pos.x; _arg1.disMc.y = _arg1.pos.y; if (_arg1.depth != -1){ DisplayManager.instance.addChildAt(_arg1.disMc, _container, _arg1.depth); } else { DisplayManager.instance.addChild(_arg1.disMc, _container); }; } public function stop():void{ var _local1:IDisInRobotItem; for each (_local1 in _needDisObjArr) { if (_local1.needStop){ _local1.disMc.stop(); }; }; _soundSwitch = false; if (_moveSound != null){ SoundManager.instance.stop(_moveSound); }; } protected function resetBloodMc():void{ } protected function init():void{ _needDisObjArr = new Array(this); _bloodDis = new BloodDisplayItem(); _propArr = new Array(); _needDisObjArr.push(_bloodDis); _direct = "down"; _eventDispatcher = new EventDispatcher(); initImpact(); DisplayManager.instance.addChild(_container, DisplayManager.instance.unitContainer); _attackAphlaTotalTime = (3 * Game.instance.gameData.frameRate); initSound(); } public function get totalBlood():Number{ return (_totalBlood); } public function addPropArr(_arg1:AbstractProp):void{ _propArr.push(_arg1); } public function get weapon():AbstractWeapon{ return (_weapon); } public function set totalBlood(_arg1:Number):void{ _totalBlood = _arg1; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ this.dispatchEvent(new Event("beenAttacked")); if (Game.instance.gameEngine.indexEngine(setAttackAlpha) == false){ Game.instance.gameEngine.addEngine(setAttackAlpha); }; } public function play():void{ var _local1:IDisInRobotItem; for each (_local1 in _needDisObjArr) { if (_local1.needStop){ _local1.disMc.play(); }; }; if (_moveSound != null){ if (!_soundSwitch){ SoundManager.instance.play(_moveSound); }; }; _soundSwitch = true; } override public function clearSelf():void{ var _local1:AbstractProp; if (_moveSound != null){ SoundManager.instance.stop(_moveSound); SoundManager.instance.deleMusic(_moveSound); }; Game.instance.moveControlCenter.minMoveObj(this); clearDisObj(); _needDisObjArr.splice(0); for each (_local1 in _propArr) { _local1.clearSelf(); }; _propArr = null; _bmpMc = null; deathMcEndHandle(); } public function clearDisObj():void{ var _local1:IDisInRobotItem; for each (_local1 in _needDisObjArr) { DisplayManager.instance.removeChild(_local1.disMc); }; } public function get firePos():Point{ return (new Point(0, 0)); } public function dispatchEvent(_arg1:Event):void{ _eventDispatcher.dispatchEvent(_arg1); } public function get centerPoint():Point{ return (new Point((_container.x + (this.wide / 2)), (_container.y + (this.height / 2)))); } protected function setAttackAlpha():void{ if (_mc.alpha > 0.5){ _mc.alpha = (_mc.alpha - 0.2); } else { _mc.alpha = (_mc.alpha + 0.2); }; if (_attackAphlaTime > _attackAphlaTotalTime){ _attackAphlaTime = 0; _mc.alpha = 1; Game.instance.gameEngine.minEngine(setAttackAlpha); }; _attackAphlaTime++; } public function turning(_arg1:String):void{ setRobotMc(_arg1); } public function removeEventListener(_arg1:String, _arg2:Function):void{ _eventDispatcher.removeEventListener(_arg1, _arg2); } public function minPropArr(_arg1:AbstractProp):void{ var _local2:int; _local2 = _propArr.indexOf(_arg1); if (_local2 != -1){ _propArr.splice(_local2, 1); }; } public function set actionKeyPoxy(_arg1:Function):void{ _actionKeyPoxy = _arg1; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=true):void{ _eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function get unitNum():int{ return (_unitNum); } public function get pos():Point{ return (new Point(0, 0)); } protected function setDeathMc():void{ } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } public function pauseControl():void{ this.dispatchEvent(new Event("_Pause")); this.stop(); } public function repair(_arg1:Number):void{ } public function get needReCreat():Boolean{ return (true); } public function get needStop():Boolean{ return (true); } public function creatDisMc(_arg1:String):void{ } public function set velocity(_arg1:Number):void{ _velocity = _arg1; } public function get disMc():MovieClip{ return (_mc); } public function set player(_arg1:AbstractPlayer):void{ _player = _arg1; } public function get occupySpeed():int{ return (_occupySpeed); } public function actionKeyHandle():void{ if (_actionKeyPoxy == null){ throw (new Error("尝试调用空的行动按键方法..")); }; } public function get depth():int{ return (_mcDepth); } protected function deathHandle():void{ var _local1:AbstractProp; pauseControl(); Game.instance.moveControlCenter.minMoveObj(this); Game.instance.gameData.minUnitArr(this); clearDisObj(); _needDisObjArr.splice(0); for each (_local1 in _propArr) { _local1.clearSelf(); }; _propArr = null; Game.instance.gameEngine.minEngine(setAttackAlpha); if (_moveSound != null){ SoundManager.instance.stop(_moveSound); }; setDeathMc(); } public function set direct(_arg1:String):void{ _direct = _arg1; } protected function initSound():void{ if (_unitNum != 1){ _moveSound = null; }; if (_moveSound != null){ SoundManager.instance.creatMusic(_moveSound, new Array(_moveSound), 100000); }; } private function deathMcEndHandle():void{ DisplayManager.instance.removeChild(_mc); DisplayManager.instance.removeChild(_container); _actionKeyPoxy = null; _needDisObjArr = null; this.dispatchEvent(new Event("_Death")); _eventDispatcher = null; super.clearSelf(); } public function get player():AbstractPlayer{ return (_player); } protected function deathMcControl():void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); Game.instance.gameEngine.minEngine(deathMcControl); deathMcEndHandle(); _player.renascence(this); _player.minUnit(this); _player = null; }; } protected function setRobotMc(_arg1:String="down"):void{ var _local2:IDisInRobotItem; var _local3:uint; _direct = _arg1; for each (_local2 in _needDisObjArr) { if ((((_local2.disMc == null)) || (_local2.needReCreat))){ DisplayManager.instance.removeChild(_local2.disMc); _local2.creatDisMc(_arg1); _local2.disMc.x = _local2.pos.x; _local2.disMc.y = _local2.pos.y; if (_local2.depth != -1){ DisplayManager.instance.addChildAt(_local2.disMc, _container, _local2.depth); } else { DisplayManager.instance.addChild(_local2.disMc, _container); _local3 = 0; while (_local3 < _container.numChildren) { if (_container.getChildAt(_local3) == _local2.disMc){ _local2.depth = _local3; break; }; _local3++; }; }; } else { DisplayManager.instance.addChild(_local2.disMc, _container); }; }; if (_moveSound != null){ if (!_soundSwitch){ SoundManager.instance.play(_moveSound); }; }; _soundSwitch = true; } public function get repairSpeed():Number{ return (_repairSpeed); } public function get direct():String{ return (_direct); } public function set couldAttack(_arg1:Boolean):void{ _couldAttack = _arg1; } public function get velocity():Number{ return (_velocity); } public function minNeedDisObjArr(_arg1:IDisInRobotItem):void{ var _local2:int; DisplayManager.instance.removeChild(_arg1.disMc); _local2 = _needDisObjArr.indexOf(_arg1); if (_local2 != -1){ _needDisObjArr.splice(_local2, 1); }; DisplayManager.instance.removeChild(_arg1.disMc); } public function set blood(_arg1:Number):void{ _blood = _arg1; } public function get blood():Number{ return (_blood); } public function get propArr():Array{ return (_propArr); } } }//package code.game.mainItem
Section 10
//AbstractWall (code.game.mainItem.AbstractWall) package code.game.mainItem { import flash.display.*; import code.game.*; import code.system.*; public class AbstractWall extends AbstractItem { protected var _totalBlood:Number; protected var _bmp:Bitmap; protected var _mcArr:Array; protected var _blood:Number; public function AbstractWall(_arg1:int, _arg2:int, _arg3:int){ init(_arg1, _arg2, _arg3); } protected function dynamite():void{ DisplayManager.instance.removeChild(_bmp); _mc = DisplayManager.instance.getDefinition(this.deathMcName); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(controlMcPlay); Game.instance.gameData.minItemArr(this); Game.instance.gameData.map.minItem(xGrid, yGrid); } protected function init(_arg1:int, _arg2:int, _arg3:int):void{ var _local4:Sprite; _wide = 35; _height = 35; _blood = _totalBlood; xPos = ((_arg2 * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)); yPos = ((_arg3 * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)); _local4 = (DisplayManager.instance.getDisArr(yGrid) as Sprite); DisplayManager.instance.addChild(_container, _local4); setMapInfo(); initMcArr(); initMc(); initImpact(); } protected function controlMcPlay():void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); Game.instance.gameEngine.minEngine(controlMcPlay); DisplayManager.instance.removeChild(_mc); this.clearSelf(); }; } override public function clearSelf():void{ Game.instance.gameEngine.minEngine(controlMcPlay); DisplayManager.instance.removeChild(_mc); DisplayManager.instance.removeChild(_container); _mc = null; super.clearSelf(); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } protected function initMcArr():void{ } protected function resetMc(_arg1:int):void{ DisplayManager.instance.removeChild(_mc); _mc = DisplayManager.instance.getDefinition(_mcArr[_arg1]); DisplayManager.instance.addChild(_mc, _container); } protected function initMc():void{ _mc = DisplayManager.instance.getDefinition(_mcArr[0]); DisplayManager.instance.addChild(_mc, _container); } protected function get deathMcName():String{ return (null); } protected function setMapInfo():void{ Game.instance.gameData.addItemArr(this); Game.instance.gameData.map.addItem(this, xGrid, yGrid); } } }//package code.game.mainItem
Section 11
//Airfield (code.game.mainItem.Airfield) package code.game.mainItem { import code.game.*; import code.system.*; import code.game.prop.*; public class Airfield extends AbstractBuilding { private var _countTimer:CountTime; private var _addPropTime:int; public function Airfield(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function initImpact():void{ setImpact(true); } override protected function initPlayer(_arg1:int):void{ if (_arg1 == 1){ _owner = Game.instance.gameData.protagonistPlayer; _countTimer.start(); } else { if (_arg1 == 2){ _owner = Game.instance.gameData.enemyPlayer; _countTimer.start(); }; }; } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _beginOccupyTime = 1; _occupyTime = 10; _addPropTime = 30; _countTimer = new CountTime(); _countTimer.totalTime = (_addPropTime * Game.instance.gameData.frameRate); _countTimer.timeUpFunc = addProp; _occupyFuncArr = new Array(); initPlayer(_arg1); super.init(_arg1, _arg2, _arg3); } override public function clearSelf():void{ super.clearSelf(); _countTimer.stop(); _countTimer = null; } override protected function initMcArr():void{ _mcArr = new Array("airfield_0", "airfield_1", "airfield_2"); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initScheduleMc(_arg1:AbstractUnit):void{ _occupyScheduleMc = new OccupyScheduleItem(); _arg1.addNeedDisObjArr(_occupyScheduleMc); } private function addProp():void{ var _local1:AbstractProp; var _local2:Class; for each (_local1 in Game.instance.gameData.propArr) { if ((((_local1.xGrid == this.xGrid)) && ((_local1.yGrid == this.yGrid)))){ _countTimer.start(); return; }; }; _local2 = Game.instance.gameData.allowCreatPropArr[Math.floor((Math.random() * Game.instance.gameData.allowCreatPropArr.length))]; new _local2(this.xGrid, this.yGrid); _countTimer.start(); } override protected function occupiedHandle():void{ super.occupiedHandle(); _countTimer.start(); occupyFunc(); } } }//package code.game.mainItem
Section 12
//ArmoredForces (code.game.mainItem.ArmoredForces) package code.game.mainItem { public interface ArmoredForces { } }//package code.game.mainItem
Section 13
//Artillery (code.game.mainItem.Artillery) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class Artillery extends AbstractUnit implements ArmoredForces { public function Artillery(_arg1:int){ super(_arg1); } override protected function init():void{ _moveSound = "artilleryMoveSound"; super.init(); _totalBlood = 100; _blood = _totalBlood; _velocity = 2.5; _mcDepth = -1; _shotSpeed = 3; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new NormalWeapon(BlastCannonball); _weapon.fireSound = "artilleryFireSound"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 0.5; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["artillery"]); _arg2.killArr.push("artillery"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fire(_local2, firePos, _arg1); } override protected function setDeathMc():void{ _mc = DisplayManager.instance.getDefinition("artillery_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("artillery_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 14
//BloodDisplayItem (code.game.mainItem.BloodDisplayItem) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.system.*; public class BloodDisplayItem implements IDisInRobotItem { private var _mcDepth:int; private var _bloodMc:MovieClip; private var _mc:MovieClip; public function BloodDisplayItem(){ init(); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("bloodMc"); _bloodMc = (_mc.getChildByName("blood") as MovieClip); }; } public function get depth():int{ return (_mcDepth); } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } private function init():void{ _mcDepth = -1; } public function get pos():Point{ return (new Point(0, -20)); } public function get needStop():Boolean{ return (false); } public function get needReCreat():Boolean{ return (false); } public function resetBlood(_arg1:Number):void{ _bloodMc.scaleX = _arg1; } public function setYellowDis():void{ } } }//package code.game.mainItem
Section 15
//ClarityWall (code.game.mainItem.ClarityWall) package code.game.mainItem { import code.game.*; public class ClarityWall extends AbstractWall { public function ClarityWall(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ super.init(_arg1, _arg2, _arg3); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initMcArr():void{ _mcArr = new Array("clarityWall"); } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 16
//DefenceTower (code.game.mainItem.DefenceTower) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class DefenceTower extends AbstractWall implements ICannonballShoter { private var _player:AbstractPlayer; private var _direct:String; private var _unitNum:int; protected var _attackAphlaTime:int; private var _weapon:AbstractWeapon; protected var _attackAphlaTotalTime:int; private var _discoverRange:int; private var _shotSpeed:Number; public function DefenceTower(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } private function discoverUnit():void{ var _local1:AbstractUnit; var _local2:Number; var _local3:Number; var _local4:AbstractUnit; var _local5:Number; var _local6:String; _local2 = _discoverRange; for each (_local4 in Game.instance.gameData.unitArr) { if (_local4.player != this.player){ _local3 = Math.sqrt((Math.pow((_local4.xPos - this.xPos), 2) + Math.pow((_local4.yPos - this.yPos), 2))); if (_local3 < _discoverRange){ if (_local3 < _local2){ _local2 = _local3; _local1 = _local4; }; }; }; }; if (_local1 != null){ _local5 = Math.atan2((_local1.yPos - yPos), (_local1.xPos - xPos)); if (_local1.xGrid == this.xGrid){ if (_local1.yGrid < this.yGrid){ _local6 = "up"; } else { _local6 = "down"; }; } else { if (_local1.yGrid == this.yGrid){ if (_local1.xGrid < this.xGrid){ _local6 = "left"; } else { _local6 = "right"; }; }; }; if (((!((_local6 == null))) && (!((_direct == _local6))))){ _direct = _local6; resetMc(0); }; if ((((_local1.xGrid == this.xGrid)) || ((_local1.yGrid == this.yGrid)))){ _weapon.fire(_local5, firePos, this); }; }; } private function work():void{ if (_weapon.allowShot == true){ discoverUnit(); }; } override protected function dynamite():void{ Game.instance.gameEngine.minEngine(setAttackAlpha); Game.instance.gameEngine.minEngine(work); _weapon.clearSelf(); DisplayManager.instance.removeChild(_mc); _mc = DisplayManager.instance.getDefinition(this.deathMcName); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(controlMcPlay); Game.instance.gameData.minItemArr(this); Game.instance.gameData.map.minItem(xGrid, yGrid); Game.instance.gameData.minImpactObj(this); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _totalBlood = 200; _unitNum = _arg1; _direct = "down"; _discoverRange = 175; _shotSpeed = 1; _weapon = new NormalWeapon(BlastCannonball); _weapon.shotSpeed = _shotSpeed; initPlayer(_arg1); _attackAphlaTotalTime = (3 * Game.instance.gameData.frameRate); super.init(_arg1, _arg2, _arg3); } private function initPlayer(_arg1:int):void{ if (_arg1 == 0){ _player = Game.instance.gameData.protagonistPlayer; start(); } else { if (_arg1 == 1){ _player = Game.instance.gameData.enemyPlayer; start(); }; }; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (Game.instance.gameEngine.indexEngine(setAttackAlpha) == false){ Game.instance.gameEngine.addEngine(setAttackAlpha); }; _blood = (_blood - _arg1); if (_blood <= 0){ dynamite(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["defenceTower"]); _arg2.killArr.push("defenceTower"); }; } protected function setAttackAlpha():void{ if (_mc.alpha > 0.5){ _mc.alpha = (_mc.alpha - 0.2); } else { _mc.alpha = (_mc.alpha + 0.2); }; if (_attackAphlaTime > _attackAphlaTotalTime){ _attackAphlaTime = 0; _mc.alpha = 1; Game.instance.gameEngine.minEngine(setAttackAlpha); }; _attackAphlaTime++; } override public function clearSelf():void{ Game.instance.gameEngine.minEngine(work); _player = null; _weapon = null; super.clearSelf(); } private function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } override protected function resetMc(_arg1:int):void{ DisplayManager.instance.removeChild(_mc); _mc = DisplayManager.instance.getDefinition((((("defenceTower" + "_") + _direct) + "_") + _unitNum)); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); } public function set player(_arg1:AbstractPlayer):void{ _player = _arg1; } override protected function initMc():void{ _mc = DisplayManager.instance.getDefinition((((("defenceTower" + "_") + _direct) + "_") + _unitNum)); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); } override protected function get deathMcName():String{ return ("tank_dead"); } public function get player():AbstractPlayer{ return (_player); } public function start():void{ Game.instance.gameEngine.addEngine(work); } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 17
//Demon (code.game.mainItem.Demon) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class Demon extends AbstractUnit implements ArmoredForces { public function Demon(_arg1:int){ super(_arg1); } override protected function init():void{ _moveSound = "demonMoveSound"; super.init(); _totalBlood = 120; _blood = _totalBlood; _velocity = 2.5; _mcDepth = -1; _shotSpeed = 0.5; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new DemonWeapon(LaserCannonball); _weapon.fireSound = "demonFireSound"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 2; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["demon"]); _arg2.killArr.push("demon"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fireName = (("demonFire" + "_") + _arg1.direct); _weapon.fire(_local2, _arg1.firePos, _arg1); } override protected function setDeathMc():void{ _mc = DisplayManager.instance.getDefinition("demon_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("demon_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 18
//Factory (code.game.mainItem.Factory) package code.game.mainItem { import code.game.*; public class Factory extends AbstractBuilding { public function Factory(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function initImpact():void{ setImpact(true); } override protected function initPlayer(_arg1:int):void{ if (_arg1 == 1){ _owner = Game.instance.gameData.protagonistPlayer; Game.instance.gameData.protagonistPlayer.addProduceBaseArr(this); } else { if (_arg1 == 2){ _owner = Game.instance.gameData.enemyPlayer; Game.instance.gameData.enemyPlayer.addProduceBaseArr(this); }; }; } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _beginOccupyTime = 1; _occupyTime = 10; initPlayer(_arg1); _occupyFuncArr = new Array(); super.init(_arg1, _arg2, _arg3); } override protected function initMcArr():void{ _mcArr = new Array("factory_0", "factory_1", "factory_2"); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initScheduleMc(_arg1:AbstractUnit):void{ _occupyScheduleMc = new OccupyScheduleItem(); _arg1.addNeedDisObjArr(_occupyScheduleMc); } override protected function occupiedHandle():void{ if (_owner != null){ _owner.minProduceBaseArr(this); }; super.occupiedHandle(); _owner.addProduceBaseArr(this); occupyFunc(); } } }//package code.game.mainItem
Section 19
//HeavyTank (code.game.mainItem.HeavyTank) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class HeavyTank extends AbstractUnit implements ArmoredForces { public function HeavyTank(_arg1:int){ super(_arg1); } override protected function init():void{ _moveSound = "heaveyTankMoveSound"; super.init(); _totalBlood = 150; _blood = _totalBlood; _velocity = 1.5; _mcDepth = -1.5; _shotSpeed = 2; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new NormalWeapon(HeavyDoubleCannonball); _weapon.fireName = "doubleFire"; _weapon.fireSound = "tankFireSound"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 1; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["heavyTank"]); _arg2.killArr.push("heavyTank"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fire(_local2, _arg1.firePos, _arg1); } override protected function setDeathMc():void{ _mc = DisplayManager.instance.getDefinition("heavyTank_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("heavyTank_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 20
//Home (code.game.mainItem.Home) package code.game.mainItem { import code.game.*; public class Home extends AbstractBuilding { private var _occupiedProxy:Function; private var _homeNum:int; public function Home(_arg1:int, _arg2:int, _arg3:int){ _homeNum = _arg1; super(_arg1, _arg2, _arg3); } override protected function initImpact():void{ setImpact(true); } override protected function initPlayer(_arg1:int):void{ if (_arg1 == 0){ _owner = Game.instance.gameData.protagonistPlayer; Game.instance.gameData.protagonistPlayer.addProduceBaseArr(this); _occupiedProxy = lostGame; } else { if (_arg1 == 1){ _owner = Game.instance.gameData.enemyPlayer; Game.instance.gameData.enemyPlayer.addProduceBaseArr(this); _occupiedProxy = winGame; }; }; } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _beginOccupyTime = 1; _occupyTime = 30; initPlayer(_arg1); super.init(_arg1, _arg2, _arg3); } override protected function initMcArr():void{ _mcArr = new Array("", "home_0", "home_1"); } override protected function initScheduleMc(_arg1:AbstractUnit):void{ _occupyScheduleMc = new OccupyScheduleItem(); _arg1.addNeedDisObjArr(_occupyScheduleMc); } private function lostGame():void{ Game.instance.gameEnd(false); } override protected function occupiedHandle():void{ super.occupiedHandle(); Game.instance.gameEngine.addEngine(_occupiedProxy); } private function winGame():void{ Game.instance.gameEnd(true); } } }//package code.game.mainItem
Section 21
//ICannonballShoter (code.game.mainItem.ICannonballShoter) package code.game.mainItem { import flash.display.*; import code.game.*; public interface ICannonballShoter { function get container():Sprite; function get player():AbstractPlayer; function get wide():int; function get yPos():Number; function get xPos():Number; function get height():int; } }//package code.game.mainItem
Section 22
//IDisInRobotItem (code.game.mainItem.IDisInRobotItem) package code.game.mainItem { import flash.display.*; import flash.geom.*; public interface IDisInRobotItem { function get needReCreat():Boolean; function get disMc():MovieClip; function get pos():Point; function set depth(_arg1:int):void; function get needStop():Boolean; function get depth():int; function creatDisMc(_arg1:String):void; } }//package code.game.mainItem
Section 23
//LandformImpactHandle (code.game.mainItem.LandformImpactHandle) package code.game.mainItem { import code.game.*; import code.game.landform.*; public class LandformImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem):void{ AbstractLandform(_arg2).touchOffHandle(_arg1); } } }//package code.game.mainItem
Section 24
//Mountain (code.game.mainItem.Mountain) package code.game.mainItem { import code.game.*; import code.system.*; public class Mountain extends AbstractWall { public function Mountain(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ super.init(_arg1, _arg2, _arg3); Game.instance.gameData.map.setResistance(_arg2, _arg3, 0.4, 0.4); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initMcArr():void{ _mcArr = new Array("mountain"); } override protected function initMc():void{ _mc = DisplayManager.instance.getDefinition(_mcArr[0]); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 25
//NormalBase (code.game.mainItem.NormalBase) package code.game.mainItem { import code.game.*; import code.system.*; public class NormalBase extends AbstractBuilding { private var _countTimer:CountTime; private var _moneyNum:int; private var _addMoneyTime:int; public function NormalBase(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function initImpact():void{ setImpact(true); } override protected function initPlayer(_arg1:int):void{ if (_arg1 == 1){ _owner = Game.instance.gameData.protagonistPlayer; _countTimer.start(); } else { if (_arg1 == 2){ _owner = Game.instance.gameData.enemyPlayer; _countTimer.start(); }; }; } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _beginOccupyTime = 1; _occupyTime = 10; _addMoneyTime = 1; _moneyNum = 30; _countTimer = new CountTime(); _countTimer.totalTime = (_addMoneyTime * Game.instance.gameData.frameRate); _countTimer.timeUpFunc = addMoney; initPlayer(_arg1); _occupyFuncArr = new Array(); super.init(_arg1, _arg2, _arg3); } private function addMoney():void{ _owner.money = (_owner.money + _moneyNum); _countTimer.start(); } override public function clearSelf():void{ super.clearSelf(); _countTimer.stop(); _countTimer = null; } override protected function initMcArr():void{ _mcArr = new Array("normalBase_0", "normalBase_1", "normalBase_2"); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initScheduleMc(_arg1:AbstractUnit):void{ _occupyScheduleMc = new OccupyScheduleItem(); _arg1.addNeedDisObjArr(_occupyScheduleMc); } override protected function occupiedHandle():void{ super.occupiedHandle(); _countTimer.start(); occupyFunc(); } } }//package code.game.mainItem
Section 26
//NormalImpactHandle (code.game.mainItem.NormalImpactHandle) package code.game.mainItem { import flash.geom.*; import code.game.*; public class NormalImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem, _arg3:Point, _arg4:Point):void{ _arg1.xPos = _arg3.x; _arg1.yPos = _arg3.y; _arg1.speed.coordinate.x = _arg4.x; _arg1.speed.coordinate.y = _arg4.y; _arg1.power.coordinate = new Point(0, 0); _arg1.speed.coordinate.x = 0; _arg1.speed.coordinate.y = 0; } } }//package code.game.mainItem
Section 27
//OccupyScheduleItem (code.game.mainItem.OccupyScheduleItem) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.system.*; public class OccupyScheduleItem implements IDisInRobotItem { private var _mcDepth:int; private var _occupyMc:MovieClip; private var _mc:MovieClip; public function OccupyScheduleItem(){ init(); } public function get depth():int{ return (_mcDepth); } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } private function init():void{ _mcDepth = 1; } public function get pos():Point{ return (new Point(0, -30)); } public function get needReCreat():Boolean{ return (false); } public function restetOccupyMc(_arg1:Number):void{ _occupyMc.scaleX = _arg1; } public function get needStop():Boolean{ return (false); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("scheduleMc"); _occupyMc = (_mc.getChildByName("schedule") as MovieClip); }; } } }//package code.game.mainItem
Section 28
//Port (code.game.mainItem.Port) package code.game.mainItem { import code.game.*; public class Port extends AbstractBuilding { public function Port(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function initImpact():void{ setImpact(true); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _beginOccupyTime = 1; _occupyTime = 10; initPlayer(_arg1); _occupyFuncArr = new Array(); super.init(_arg1, _arg2, _arg3); if (_owner != null){ _owner.addPort(this); }; } override protected function initMcArr():void{ _mcArr = new Array("port_0", "port_1", "port_2"); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initScheduleMc(_arg1:AbstractUnit):void{ _occupyScheduleMc = new OccupyScheduleItem(); _arg1.addNeedDisObjArr(_occupyScheduleMc); } override protected function occupiedHandle():void{ if (_owner != null){ _owner.minPort(this); }; super.occupiedHandle(); _owner.addPort(this); occupyFunc(); } } }//package code.game.mainItem
Section 29
//Recon (code.game.mainItem.Recon) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class Recon extends AbstractUnit implements ArmoredForces { public function Recon(_arg1:int){ super(_arg1); } override protected function init():void{ _moveSound = "reconMoveSound"; super.init(); _totalBlood = 80; _blood = _totalBlood; _velocity = 3; _mcDepth = -1; _shotSpeed = 0.2; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new NormalWeapon(DoubleCannonball); _weapon.fireSound = "reconFireSound"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 1; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["recon"]); _arg2.killArr.push("recon"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fire(_local2, _arg1.firePos, _arg1); } override protected function setDeathMc():void{ _mc = DisplayManager.instance.getDefinition("recon_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("recon_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 30
//RepairMc (code.game.mainItem.RepairMc) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.system.*; public class RepairMc implements IDisInRobotItem { private var _mcDepth:int; private var _mc:MovieClip; public function RepairMc(){ init(); } public function get needReCreat():Boolean{ return (false); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("repairMc"); }; } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } private function init():void{ _mcDepth = 1; } public function get depth():int{ return (_mcDepth); } public function get pos():Point{ return (new Point(0, 0)); } public function get needStop():Boolean{ return (false); } } }//package code.game.mainItem
Section 31
//River (code.game.mainItem.River) package code.game.mainItem { import code.game.*; import code.system.*; public class River extends AbstractWall { private var _mcNum:int; public function River(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ _mcNum = _arg1; super.init(_arg1, _arg2, _arg3); Game.instance.gameData.map.setResistance(_arg2, _arg3, 0.3, 0.3); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initMcArr():void{ _mcArr = new Array("river_"); } override protected function initMc():void{ if (_mcNum != 13){ _mc = DisplayManager.instance.getDefinition((_mcArr[0] + _mcNum.toString())); _mc.x = (this.wide / 2); _mc.y = (this.height / 2); DisplayManager.instance.addChild(_mc, _container); }; } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 32
//Sea (code.game.mainItem.Sea) package code.game.mainItem { import code.game.*; public class Sea extends AbstractWall { public function Sea(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ super.init(_arg1, _arg2, _arg3); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initMcArr():void{ _mcArr = new Array("clarityWall"); } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 33
//SideslipImpactHandle (code.game.mainItem.SideslipImpactHandle) package code.game.mainItem { import flash.geom.*; import code.game.*; public class SideslipImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem, _arg3:Point, _arg4:Point, _arg5:Point):void{ var _local6:Point; var _local7:Number; var _local8:Point; var _local9:Number; var _local10:Number; var _local11:Array; var _local12:Point; var _local13:Point; _local6 = _arg1.power.coordinate; _local7 = Math.sqrt(((_local6.x * _local6.x) + (_local6.y * _local6.y))); if (_local7 != 0){ _local8 = new Point((_local6.x / _local7), (_local6.y / _local7)); } else { _local8 = new Point(0, 0); }; _local9 = ((_local8.x * _arg5.x) + (_local8.y * _arg5.y)); _local10 = Math.acos(_local9); if (((_local10 * 180) / Math.PI) < 90){ _arg1.xPos = _arg3.x; _arg1.yPos = _arg3.y; _arg1.speed.coordinate.x = _arg4.x; _arg1.speed.coordinate.y = _arg4.y; _local11 = new Array(new Point((_arg2.xPos - _arg1.xPos), 0), new Point(0, (_arg2.yPos - _arg1.yPos))); _local12 = new Point(0, 0); if (((!((_arg1.power.coordinate.x == 0))) || (!((_arg1.power.coordinate.y == 0))))){ for each (_local13 in _local11) { if (((_local13.x * (Math.round((_arg1.power.coordinate.x * 10)) / 10)) + (_local13.y * (Math.round((_arg1.power.coordinate.y * 10)) / 10))) == 0){ if ((((Math.abs(_local13.x) > 15)) || ((Math.abs(_local13.y) > 15)))){ _local12 = new Point(((_local13.x * -1) / 20), ((_local13.y * -1) / 20)); break; }; }; }; _arg1.xPos = (_arg1.xPos + (Math.round((_local12.x * 10)) / 10)); _arg1.yPos = (_arg1.yPos + (Math.round((_local12.y * 10)) / 10)); }; _arg1.power.coordinate = new Point(0, 0); _arg1.speed.coordinate.x = 0; _arg1.speed.coordinate.y = 0; }; } } }//package code.game.mainItem
Section 34
//Soldier (code.game.mainItem.Soldier) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class Soldier extends AbstractUnit { public function Soldier(_arg1:int){ super(_arg1); } override protected function init():void{ super.init(); _totalBlood = 60; _blood = _totalBlood; _velocity = 2; _mcDepth = -1; _shotSpeed = 0.5; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new NormalWeapon(RPGCannonball); _weapon.fireSound = "soldierFire"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 2; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["soldier"]); _arg2.killArr.push("soldier"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fire(_local2, _arg1.firePos, _arg1); } override protected function setDeathMc():void{ SoundManager.instance.creatSound("soldierDead"); _mc = DisplayManager.instance.getDefinition("soldier_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("soldier_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 35
//Tank (code.game.mainItem.Tank) package code.game.mainItem { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.prop.*; public class Tank extends AbstractUnit implements ArmoredForces { public function Tank(_arg1:int){ super(_arg1); } override protected function init():void{ _moveSound = "tankMoveSound"; super.init(); _totalBlood = 100; _blood = _totalBlood; _velocity = 2; _mcDepth = -1; _shotSpeed = 0.5; _repairSpeed = 0.1; _wide = 28; _height = 28; _weapon = new NormalWeapon(NormalCannonball); _weapon.fireSound = "tankFireSound"; _weapon.shotSpeed = _shotSpeed; _occupySpeed = 1; setRobotMc(); stop(); _couldAttack = true; _actionKeyPoxy = fireCannonball; } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ if (_couldAttack){ super.beenAttacked(_arg1, _arg2); _blood = (_blood - _arg1); if (_blood <= 0){ deathHandle(); _arg2.killPoint = (_arg2.killPoint + Game.instance.gameData.killPointArr["tank"]); _arg2.killArr.push("tank"); }; resetBloodMc(); }; } override public function clearSelf():void{ _weapon.clearSelf(); _weapon = null; super.clearSelf(); } override public function get firePos():Point{ var _local1:MovieClip; _local1 = (_mc.getChildByName("firePos") as MovieClip); return (new Point((_mc.x + _local1.x), (_mc.y + _local1.y))); } private function fireCannonball(_arg1:AbstractUnit):void{ var _local2:Number; switch (_arg1.direct){ case "up": _local2 = (-((90 * Math.PI)) / 180); break; case "down": _local2 = ((90 * Math.PI) / 180); break; case "left": _local2 = ((180 * Math.PI) / 180); break; case "right": _local2 = ((0 * Math.PI) / 180); break; }; _weapon.fire(_local2, _arg1.firePos, _arg1); } override protected function setDeathMc():void{ _mc = DisplayManager.instance.getDefinition("tank_dead"); _mc.x = (Game.instance.gameData.gridWid / 2); _mc.y = (Game.instance.gameData.gridWid / 2); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(deathMcControl); } override protected function initImpact():void{ setImpact(true); } override public function repair(_arg1:Number):void{ _blood = (_blood + _arg1); if (_blood > _totalBlood){ _blood = _totalBlood; }; resetBloodMc(); } override public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(((("tank_" + _unitNum) + "_") + _arg1)); } override public function actionKeyHandle():void{ super.actionKeyHandle(); _actionKeyPoxy(this); } override protected function deathHandle():void{ super.deathHandle(); setImpact(false); } override protected function resetBloodMc():void{ BloodDisplayItem(_bloodDis).resetBlood((_blood / _totalBlood)); } public static function declareClass():void{ } } }//package code.game.mainItem
Section 36
//Tree (code.game.mainItem.Tree) package code.game.mainItem { import code.game.*; import code.system.*; public class Tree extends AbstractWall { public function Tree(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2, _arg3); } override protected function init(_arg1:int, _arg2:int, _arg3:int):void{ super.init(_arg1, _arg2, _arg3); Game.instance.gameData.map.setResistance(_arg2, _arg3, 0.4, 0.2); } override public function beenAttacked(_arg1:Number, _arg2:AbstractPlayer):void{ } override protected function initMcArr():void{ _mcArr = new Array("tree"); } override protected function initMc():void{ _mc = DisplayManager.instance.getDefinition(_mcArr[0]); _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); } override protected function initImpact():void{ setImpact(true); } } }//package code.game.mainItem
Section 37
//UnitImpactHandle (code.game.mainItem.UnitImpactHandle) package code.game.mainItem { import flash.geom.*; import code.game.*; public class UnitImpactHandle extends AbstractImpactHandle { private var _displaceNum:Number; public function UnitImpactHandle(){ _displaceNum = 1; } public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem, _arg3:Point, _arg4:Point, _arg5:Point):void{ var _local6:Point; var _local7:Number; var _local8:Point; var _local9:Number; var _local10:Number; var _local11:Point; var _local12:Number; var _local13:Number; var _local14:Point; _local6 = new Point((_arg1.xPos - _arg3.x), (_arg1.yPos - _arg3.y)); _local7 = Math.sqrt(((_local6.x * _local6.x) + (_local6.y * _local6.y))); if (_local7 != 0){ _local8 = new Point((_local6.x / _local7), (_local6.y / _local7)); } else { _local8 = new Point(0, 0); }; _local9 = ((_local8.x * _arg5.x) + (_local8.y * _arg5.y)); _local10 = Math.acos(_local9); if (((_local10 * 180) / Math.PI) < 90){ _arg1.xPos = _arg3.x; _arg1.yPos = _arg3.y; _arg1.speed.coordinate.x = _arg4.x; _arg1.speed.coordinate.y = _arg4.y; _local11 = new Point((_arg2.xPos - _arg1.xPos), (_arg2.yPos - _arg1.yPos)); _local12 = ((_arg2.wide + _arg1.wide) / 2); _local13 = ((_arg2.height + _arg1.height) / 2); _local14 = getMoveDis(_local11, _local12, _local13); _arg1.xPos = (_arg1.xPos + (Math.round((_local14.x * 10)) / 10)); _arg1.yPos = (_arg1.yPos + (Math.round((_local14.y * 10)) / 10)); _arg1.power.coordinate = new Point(0, 0); _arg1.speed.coordinate.x = 0; _arg1.speed.coordinate.y = 0; }; } private function getMoveDis(_arg1:Point, _arg2:Number, _arg3:Number):Point{ var _local4:Array; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; _local4 = new Array(1, -1); if ((((_arg1.x == 0)) && ((_arg1.y == 0)))){ return (new Point((_local4[int((Math.random() * _local4.length))] * _displaceNum), (_local4[int((Math.random() * _local4.length))] * _displaceNum))); }; if ((((_arg1.x == 0)) && (!((_arg1.y == 0))))){ _local5 = ((-1 * _arg1.y) / Math.abs(_arg1.y)); if (Math.abs(_arg1.y) < _arg3){ return (new Point(0, (_local5 * _displaceNum))); }; return (new Point(0, 0)); } else { if (((!((_arg1.x == 0))) && ((_arg1.y == 0)))){ _local6 = ((-1 * _arg1.x) / Math.abs(_arg1.x)); if (Math.abs(_arg1.x) < _arg2){ return (new Point((_local6 * _displaceNum), 0)); }; return (new Point(0, 0)); } else { _local6 = ((-1 * _arg1.x) / Math.abs(_arg1.x)); _local5 = ((-1 * _arg1.y) / Math.abs(_arg1.y)); if (Math.abs(_arg1.x) < _arg2){ _local7 = (_local6 * _displaceNum); } else { _local7 = 0; }; if (Math.abs(_arg1.y) < _arg3){ _local8 = (_local5 * _displaceNum); } else { _local8 = 0; }; }; }; return (new !NULL!.Point(!NULL!, !NULL!)); } } }//package code.game.mainItem
Section 38
//AbstractMapData (code.game.map.AbstractMapData) package code.game.map { public class AbstractMapData { protected var _dataArr:Array; function getData(_arg1:int):Function{ return (_dataArr[_arg1]); } } }//package code.game.map
Section 39
//AbstractMapSet (code.game.map.AbstractMapSet) package code.game.map { import flash.display.*; public class AbstractMapSet { protected var _container:Sprite; public function AbstractMapSet(){ init(); } protected function init():void{ _container = new Sprite(); } public function setMap(_arg1:int):void{ } } }//package code.game.map
Section 40
//Grid (code.game.map.Grid) package code.game.map { import flash.display.*; import code.game.mainItem.*; public class Grid extends Sprite { private var _objPropArr:Array; private var _item:AbstractItem; private var _resistance:Array; public function Grid(){ init(); } private function init():void{ _resistance = new Array(0.5, 0.5); _objPropArr = new Array(); } function get item():AbstractItem{ return (_item); } function addObjProp(_arg1:Number, _arg2:Class, _arg3:int):void{ var _local4:PropClass; for each (_local4 in _objPropArr) { if (_local4.propClass == _arg2){ _objPropArr.splice(_objPropArr.indexOf(_local4), 1); }; }; _objPropArr.push(new PropClass(_arg1, _arg2, _arg3)); } function set item(_arg1:AbstractItem):void{ _item = _arg1; } function get ifNull():Boolean{ if ((_item as AbstractWall)){ return (false); }; return (true); } function get resistance():Array{ return (_resistance); } public function clearSelf():void{ _objPropArr = null; _item = null; } private function arrCompare(_arg1:PropClass, _arg2:PropClass):int{ if (_arg1.propNum < _arg2.propNum){ return (-1); }; if (_arg1.propNum > _arg2.propNum){ return (1); }; return (0); } function getObjProp():Array{ _objPropArr.sort(arrCompare); return (_objPropArr); } } }//package code.game.map class PropClass { private var _propNum:Number; private var _mcNum:int; private var _propClass:Class; private function PropClass(_arg1:Number, _arg2:Class, _arg3:int){ _propNum = _arg1; _propClass = _arg2; _mcNum = _arg3; } public function get propNum():Number{ return (_propNum); } public function get mcNum():int{ return (_mcNum); } public function get propClass():Class{ return (_propClass); } }
Section 41
//Map (code.game.map.Map) package code.game.map { import code.game.*; import code.game.mainItem.*; public class Map { private var _mapArr:Array; private var _bgName:String; public function Map(){ init(); } public function addObjProp(_arg1:int, _arg2:int, _arg3:Number, _arg4:Class, _arg5:int):void{ _mapArr[_arg1][_arg2].addObjProp(_arg3, _arg4, _arg5); } public function reInit():void{ clearSelf(); init(); } public function minItem(_arg1:int, _arg2:int):void{ _mapArr[_arg1][_arg2].item = null; } public function getItem(_arg1:int, _arg2:int):AbstractItem{ if ((((_arg1 > (_mapArr.length - 1))) || ((_arg1 < 0)))){ return (null); }; if ((((_arg2 > (_mapArr[_arg1].length - 1))) || ((_arg2 < 0)))){ return (null); }; return (_mapArr[_arg1][_arg2].item); } public function ifNull(_arg1:int, _arg2:int):Boolean{ var _local3:Boolean; if ((((((((_arg1 < 0)) || ((_arg1 > (Game.instance.gameData.mapSize.x - 1))))) || ((_arg2 < 0)))) || ((_arg2 > (Game.instance.gameData.mapSize.y - 1))))){ return (false); }; _local3 = _mapArr[_arg1][_arg2].ifNull; return (_local3); } private function init():void{ var _local1:int; var _local2:int; var _local3:Grid; _mapArr = new Array(); _local1 = 0; while (_local1 < Game.instance.gameData.mapSize.x) { _mapArr[_local1] = new Array(); _local2 = 0; while (_local2 < Game.instance.gameData.mapSize.y) { _local3 = new Grid(); _mapArr[_local1][_local2] = _local3; _local2++; }; _local1++; }; } public function getResistance(_arg1:AbstractItem, _arg2:int, _arg3:int):Number{ if ((((_arg2 > (_mapArr.length - 1))) || ((_arg2 < 0)))){ return (0.5); }; if ((((_arg3 > (_mapArr[_arg2].length - 1))) || ((_arg3 < 0)))){ return (0.5); }; if ((_arg1 as ArmoredForces)){ return (_mapArr[_arg2][_arg3].resistance[1]); }; return (_mapArr[_arg2][_arg3].resistance[0]); } public function addItem(_arg1:AbstractItem, _arg2:int, _arg3:int):void{ _mapArr[_arg2][_arg3].item = _arg1; } public function get bgName():String{ return (_bgName); } public function set bgName(_arg1:String):void{ _bgName = _arg1; } public function clearSelf():void{ var _local1:int; var _local2:int; _local1 = 0; while (_local1 < _mapArr.length) { _local2 = 0; while (_local2 < _mapArr[_local1].length) { Grid(_mapArr[_local1][_local2]).clearSelf(); _local2++; }; _local1++; }; _mapArr = null; } public function setResistance(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number=0):void{ _mapArr[_arg1][_arg2].resistance[0] = _arg3; _mapArr[_arg1][_arg2].resistance[1] = _arg4; } public function getObjProp(_arg1:int, _arg2:int):Array{ return (_mapArr[_arg1][_arg2].getObjProp()); } } }//package code.game.map
Section 42
//MapMaster (code.game.map.MapMaster) package code.game.map { import flash.events.*; import flash.display.*; import code.ui.*; import code.game.*; import code.system.*; import flash.utils.*; public class MapMaster extends EventDispatcher { private var _creatTimer:Timer; private var _row:int; public function MapMaster(){ init(); } public function reInit():void{ new NormalMapSet().setMap(Game.instance.gameData.stageNum); setBg(); } public function creatMapObj():void{ _creatTimer = new Timer(10); _creatTimer.addEventListener("timer", creatTimerHandle); _creatTimer.start(); } private function creatTimerHandle(_arg1:TimerEvent):void{ if (_row < Game.instance.gameData.mapSize.y){ creatMapByRow(_row); } else { _row = 0; _creatTimer.stop(); _creatTimer = null; this.dispatchEvent(new Event("_mapCreatComplete")); }; } private function init():void{ Game.instance.gameData.map = new Map(); if (UiManager.instance.uiData.myMapInfo != null){ UiManager.instance.uiData.myMapInfo.setMapInfo(Game.instance.gameData.map); UiManager.instance.uiData.myMapInfo = null; } else { new NormalMapSet().setMap(Game.instance.gameData.stageNum); }; setBg(); } private function creatMapByRow(_arg1:int):void{ var _local2:int; var _local3:Number; var _local4:Number; var _local5:int; var _local6:Class; _local2 = 0; while (_local2 < Game.instance.gameData.mapSize.x) { _local3 = Math.random(); _local4 = 0; _local5 = 0; while (_local5 < Game.instance.gameData.map.getObjProp(_local2, _arg1).length) { if ((((_local3 <= (Game.instance.gameData.map.getObjProp(_local2, _arg1)[_local5].propNum + _local4))) && ((Game.instance.gameData.map.getObjProp(_local2, _arg1)[_local5].propNum > _local4)))){ _local6 = Game.instance.gameData.map.getObjProp(_local2, _arg1)[_local5].propClass; new _local6(Game.instance.gameData.map.getObjProp(_local2, _arg1)[_local5].mcNum, _local2, _arg1); break; } else { _local4 = (_local4 + Game.instance.gameData.map.getObjProp(_local2, _arg1)[_local5].propNum); }; _local5++; }; _local2++; }; _row++; } private function setBg():void{ var _local1:MovieClip; _local1 = DisplayManager.instance.getDefinition(Game.instance.gameData.map.bgName); _local1.x = ((0 + Game.instance.gameData.excursion.x) + (Game.instance.gameData.mapInitPos.x * Game.instance.gameData.gridWid)); _local1.y = ((0 + Game.instance.gameData.excursion.y) + (Game.instance.gameData.mapInitPos.y * Game.instance.gameData.gridWid)); DisplayManager.instance.addChild(_local1, DisplayManager.instance.bgContainer); Game.instance.gameData.bgArr.push(_local1); } } }//package code.game.map
Section 43
//NormalMapData (code.game.map.NormalMapData) package code.game.map { import code.game.*; import code.game.mainItem.*; public class NormalMapData extends AbstractMapData { public function NormalMapData(){ init(); } protected function set11():void{ Game.instance.gameData.map.bgName = "stage_11_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 20, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 21, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 22, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 24, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 25, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 26, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 27, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 28, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 7, 1, Factory, 0); Game.instance.gameData.map.addObjProp(7, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Factory, 0); Game.instance.gameData.map.addObjProp(12, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 21, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, Factory, 0); Game.instance.gameData.map.addObjProp(20, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 26, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(20, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 18, 1, Factory, 1); Game.instance.gameData.map.addObjProp(21, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 25, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 20, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(23, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 5, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(25, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(26, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(26, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(26, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(26, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(27, 7, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(27, 9, 1, Factory, 2); Game.instance.gameData.map.addObjProp(27, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 20, 1, Home, 0); Game.instance.gameData.map.addObjProp(27, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(27, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 6, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(28, 7, 1, Home, 1); Game.instance.gameData.map.addObjProp(28, 8, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(28, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(28, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(29, 7, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(29, 9, 1, Factory, 2); Game.instance.gameData.map.addObjProp(29, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 11, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(31, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 11, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(32, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 20, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 21, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 22, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 24, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 25, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 26, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 27, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 28, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 29, 1, ClarityWall, 1); } protected function set12():void{ Game.instance.gameData.map.bgName = "stage_12_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Factory, 2); Game.instance.gameData.map.addObjProp(2, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Factory, 2); Game.instance.gameData.map.addObjProp(6, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Factory, 2); Game.instance.gameData.map.addObjProp(10, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Factory, 2); Game.instance.gameData.map.addObjProp(15, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 19, 1, ClarityWall, 1); } protected function set13():void{ Game.instance.gameData.map.bgName = "stage_13_bg"; Game.instance.gameData.setMapInitPos(3, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Factory, 2); Game.instance.gameData.map.addObjProp(2, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, Factory, 2); Game.instance.gameData.map.addObjProp(3, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Factory, 2); Game.instance.gameData.map.addObjProp(9, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Factory, 2); Game.instance.gameData.map.addObjProp(12, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Home, 0); Game.instance.gameData.map.addObjProp(16, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 18, 1, ClarityWall, 1); } protected function set14():void{ Game.instance.gameData.map.bgName = "stage_14_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Factory, 0); Game.instance.gameData.map.addObjProp(4, 11, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Factory, 2); Game.instance.gameData.map.addObjProp(16, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, Home, 1); Game.instance.gameData.map.addObjProp(23, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(23, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(23, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Factory, 2); Game.instance.gameData.map.addObjProp(24, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(25, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 14, 1, ClarityWall, 1); } protected function set15():void{ Game.instance.gameData.map.bgName = "stage_15_bg"; Game.instance.gameData.setMapInitPos(1, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(4, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 21, 1, Factory, 0); Game.instance.gameData.map.addObjProp(5, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(6, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Home, 0); Game.instance.gameData.map.addObjProp(11, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 18, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 19, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Factory, 2); Game.instance.gameData.map.addObjProp(17, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 20, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(20, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 7, 1, Home, 1); Game.instance.gameData.map.addObjProp(21, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 21, 1, Factory, 2); Game.instance.gameData.map.addObjProp(22, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 20, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 21, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 22, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 23, 1, ClarityWall, 1); } protected function set10():void{ Game.instance.gameData.map.bgName = "stage_10_bg"; Game.instance.gameData.setMapInitPos(2, 0); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(6, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(6, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Factory, 0); Game.instance.gameData.map.addObjProp(8, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(11, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(13, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(15, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Factory, 2); Game.instance.gameData.map.addObjProp(16, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(16, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Home, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Factory, 2); Game.instance.gameData.map.addObjProp(18, 8, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(18, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 15, 1, ClarityWall, 1); } protected function set18():void{ Game.instance.gameData.map.bgName = "stage_18_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 20, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 21, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 22, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 24, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 25, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 26, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 27, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 28, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 30, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 31, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 27, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(2, 29, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 30, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Factory, 0); Game.instance.gameData.map.addObjProp(3, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 27, 1, Factory, 0); Game.instance.gameData.map.addObjProp(3, 30, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 5, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 8, 1, DefenceTower, 0); Game.instance.gameData.map.addObjProp(4, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 23, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(4, 30, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(5, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 28, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 30, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 28, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 30, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 26, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 25, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(10, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 26, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 29, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 29, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(18, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 30, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(19, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(19, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 30, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(20, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(20, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 22, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(21, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 22, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(22, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(23, 22, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(23, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(24, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(25, 21, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 22, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 24, 1, Factory, 2); Game.instance.gameData.map.addObjProp(25, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 3, 1, Factory, 0); Game.instance.gameData.map.addObjProp(26, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(26, 19, 1, Factory, 2); Game.instance.gameData.map.addObjProp(26, 20, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 21, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 24, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(26, 26, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 14, 1, River, 1); Game.instance.gameData.map.addObjProp(27, 15, 1, River, 1); Game.instance.gameData.map.addObjProp(27, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 6, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(28, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(28, 13, 1, River, 1); Game.instance.gameData.map.addObjProp(28, 14, 1, River, 1); Game.instance.gameData.map.addObjProp(28, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(28, 27, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(29, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(29, 17, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(29, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(29, 25, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(29, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(30, 17, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(30, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 10, 1, Factory, 0); Game.instance.gameData.map.addObjProp(31, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(31, 17, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(31, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 25, 1, Home, 1); Game.instance.gameData.map.addObjProp(31, 27, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(31, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(32, 26, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 27, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 28, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 29, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 30, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(33, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 17, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 18, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 19, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 20, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 21, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 22, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 23, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 24, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 25, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 26, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 27, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 28, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 29, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 30, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 31, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 32, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 20, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 21, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 22, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 23, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 24, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 25, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 26, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 27, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 28, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 29, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 30, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 31, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 32, 1, ClarityWall, 1); } protected function set19():void{ Game.instance.gameData.map.bgName = "stage_19_bg"; Game.instance.gameData.setMapInitPos(1, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Factory, 2); Game.instance.gameData.map.addObjProp(3, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Factory, 2); Game.instance.gameData.map.addObjProp(6, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Factory, 2); Game.instance.gameData.map.addObjProp(14, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Home, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); } protected function set16():void{ Game.instance.gameData.map.bgName = "stage_16_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, Home, 0); Game.instance.gameData.map.addObjProp(5, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Factory, 0); Game.instance.gameData.map.addObjProp(10, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, Factory, 0); Game.instance.gameData.map.addObjProp(17, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, Factory, 2); Game.instance.gameData.map.addObjProp(18, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(23, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(26, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(26, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(26, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(27, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(27, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(28, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(29, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 4, 1, Factory, 2); Game.instance.gameData.map.addObjProp(30, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 14, 1, Home, 1); Game.instance.gameData.map.addObjProp(30, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(30, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(31, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(32, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(32, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(33, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(34, 17, 1, ClarityWall, 1); } protected function set1():void{ Game.instance.gameData.map.bgName = "stage_1_bg"; Game.instance.gameData.setMapInitPos(0, 0); Game.instance.gameData.map.addObjProp(3, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Factory, 2); Game.instance.gameData.map.addObjProp(14, 3, 1, Factory, 2); Game.instance.gameData.map.addObjProp(10, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Home, 0); Game.instance.gameData.map.addObjProp(8, 10, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Home, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(11, 3, 1, NormalBase, 2); } protected function set2():void{ Game.instance.gameData.map.bgName = "stage_2_bg"; Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Factory, 2); Game.instance.gameData.map.addObjProp(11, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, Factory, 0); Game.instance.gameData.map.addObjProp(6, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 11, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 10, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Home, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(15, 2, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(14, 3, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(16, 3, 1, Factory, 2); } protected function set3():void{ Game.instance.gameData.map.bgName = "stage_3_bg"; Game.instance.gameData.setMapInitPos(0, 1); Game.instance.gameData.map.addObjProp(1, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 0, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 2, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Factory, 2); Game.instance.gameData.map.addObjProp(15, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 10, 1, Factory, 0); Game.instance.gameData.map.addObjProp(11, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(15, 14, 1, Home, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Factory, 2); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 15, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(3, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(4, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(6, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(7, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(8, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 11, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 10, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 9, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 7, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 6, 1, River, 0); Game.instance.gameData.map.addObjProp(9, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(10, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(11, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(12, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(14, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(15, 5, 1, River, 0); Game.instance.gameData.map.addObjProp(16, 5, 1, River, 0); } protected function set4():void{ Game.instance.gameData.map.bgName = "stage_4_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Factory, 0); Game.instance.gameData.map.addObjProp(5, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, Factory, 0); Game.instance.gameData.map.addObjProp(8, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(16, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(16, 9, 1, Factory, 0); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, Factory, 2); Game.instance.gameData.map.addObjProp(19, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(19, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(20, 5, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(20, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 15, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(20, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Home, 1); Game.instance.gameData.map.addObjProp(21, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 4, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(22, 5, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(22, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(22, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, ClarityWall, 1); } protected function set5():void{ Game.instance.gameData.map.bgName = "stage_5_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Factory, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, Airfield, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Port, 0); Game.instance.gameData.map.addObjProp(4, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Factory, 0); Game.instance.gameData.map.addObjProp(9, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Port, 0); Game.instance.gameData.map.addObjProp(14, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(16, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Airfield, 0); Game.instance.gameData.map.addObjProp(17, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, Port, 0); Game.instance.gameData.map.addObjProp(22, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 5, 1, Factory, 0); Game.instance.gameData.map.addObjProp(24, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(27, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(27, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(27, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(28, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 7, 1, Airfield, 1); Game.instance.gameData.map.addObjProp(28, 10, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(28, 11, 1, Port, 1); Game.instance.gameData.map.addObjProp(28, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(28, 16, 1, Home, 1); Game.instance.gameData.map.addObjProp(28, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(29, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 15, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(29, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(30, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 7, 1, Factory, 2); Game.instance.gameData.map.addObjProp(30, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 11, 1, Factory, 2); Game.instance.gameData.map.addObjProp(30, 13, 1, Factory, 2); Game.instance.gameData.map.addObjProp(30, 15, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(30, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(31, 17, 1, ClarityWall, 1); } protected function set6():void{ Game.instance.gameData.map.bgName = "stage_6_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(2, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(3, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Factory, 2); Game.instance.gameData.map.addObjProp(4, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(5, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Home, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 15, 1, Home, 0); Game.instance.gameData.map.addObjProp(10, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Factory, 2); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(17, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, ClarityWall, 1); } protected function set0():void{ Game.instance.gameData.map.bgName = "stage_1_bg"; Game.instance.gameData.setMapInitPos(0, 0); Game.instance.gameData.map.addObjProp(3, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Tree, 0); Game.instance.gameData.map.addObjProp(9, 7, 1, Home, 0); Game.instance.gameData.map.addObjProp(8, 8, 1, DefenceTower, 1); } protected function set9():void{ Game.instance.gameData.map.bgName = "stage_9_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Home, 0); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Factory, 0); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 5, 1, Factory, 2); Game.instance.gameData.map.addObjProp(11, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(13, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Home, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); } protected function set7():void{ Game.instance.gameData.map.bgName = "stage_7_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(2, 10, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(2, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Home, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(4, 6, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(4, 10, 1, NormalBase, 2); Game.instance.gameData.map.addObjProp(4, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Airfield, 2); Game.instance.gameData.map.addObjProp(5, 9, 1, Factory, 2); Game.instance.gameData.map.addObjProp(5, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 5, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 5, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 5, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Factory, 0); Game.instance.gameData.map.addObjProp(15, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Home, 0); Game.instance.gameData.map.addObjProp(17, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, ClarityWall, 1); } protected function set8():void{ Game.instance.gameData.map.bgName = "stage_8_bg"; Game.instance.gameData.setMapInitPos(2, 2); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 6, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 7, 1, Port, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 14, 1, Port, 2); Game.instance.gameData.map.addObjProp(4, 15, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 16, 1, Factory, 2); Game.instance.gameData.map.addObjProp(4, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Factory, 2); Game.instance.gameData.map.addObjProp(5, 17, 1, Home, 1); Game.instance.gameData.map.addObjProp(5, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(7, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(7, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(11, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(14, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 18, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 18, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(18, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(20, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 7, 1, Port, 0); Game.instance.gameData.map.addObjProp(20, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 13, 1, Port, 0); Game.instance.gameData.map.addObjProp(20, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(21, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 16, 1, Factory, 0); Game.instance.gameData.map.addObjProp(21, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(22, 5, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(22, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 7, 1, Factory, 0); Game.instance.gameData.map.addObjProp(23, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(23, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 19, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 18, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(26, 19, 1, ClarityWall, 1); } private function init():void{ _dataArr = new Array(set0, set1, set2, set3, set4, set5, set6, set7, set8, set9, set10, set11, set12, set13, set14, set15, set16, set17, set18, set19, set20); } protected function set20():void{ Game.instance.gameData.map.bgName = "stage_19_bg"; Game.instance.gameData.setMapInitPos(1, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Port, 0); Game.instance.gameData.map.addObjProp(3, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Home, 0); Game.instance.gameData.map.addObjProp(4, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(4, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 4, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 5, 1, NormalBase, 1); Game.instance.gameData.map.addObjProp(5, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Airfield, 0); Game.instance.gameData.map.addObjProp(6, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(6, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(7, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(8, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 11, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 4, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(11, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(12, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(13, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Factory, 2); Game.instance.gameData.map.addObjProp(14, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Home, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 9, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 15, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 8, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 9, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 10, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 11, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 12, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 13, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 15, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, ClarityWall, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, ClarityWall, 1); } protected function set17():void{ Game.instance.gameData.map.bgName = "stage_17_bg"; Game.instance.gameData.setMapInitPos(1, 1); Game.instance.gameData.map.addObjProp(1, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(1, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(2, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(2, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(3, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(3, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(4, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(4, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 15, 1, Home, 0); Game.instance.gameData.map.addObjProp(5, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(5, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(5, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(6, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(6, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(6, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(7, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 14, 1, DefenceTower, 0); Game.instance.gameData.map.addObjProp(7, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(7, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(7, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(8, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(8, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(8, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(8, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(9, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(9, 16, 1, Factory, 0); Game.instance.gameData.map.addObjProp(9, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(9, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(9, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 8, 1, River, 1); Game.instance.gameData.map.addObjProp(10, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(10, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(10, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(10, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(11, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(11, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(12, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(12, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(12, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 7, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(13, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(13, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(13, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(13, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(14, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(14, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(14, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(15, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(15, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(15, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(15, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 18, 1, River, 1); Game.instance.gameData.map.addObjProp(16, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(16, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(16, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(17, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(17, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(18, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(18, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(18, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 14, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(19, 17, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(19, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(19, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(19, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(20, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(20, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 4, 1, River, 1); Game.instance.gameData.map.addObjProp(21, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(21, 12, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(21, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(21, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(21, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 2, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 4, 1, River, 1); Game.instance.gameData.map.addObjProp(22, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(22, 7, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(22, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(22, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 3, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 6, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(23, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(23, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(23, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 4, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(24, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 18, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(24, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(24, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 5, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(25, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(25, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(25, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 5, 1, Tree, 1); Game.instance.gameData.map.addObjProp(26, 7, 1, Factory, 0); Game.instance.gameData.map.addObjProp(26, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(26, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(26, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 7, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(27, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(27, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(27, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(28, 11, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(28, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(28, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(28, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(28, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(29, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(29, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(30, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(30, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(30, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 18, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(31, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(31, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(31, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 7, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 8, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(32, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(32, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(32, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(32, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(33, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 19, 1, Tree, 1); Game.instance.gameData.map.addObjProp(33, 22, 1, Factory, 2); Game.instance.gameData.map.addObjProp(33, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(33, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(34, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(34, 12, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(34, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(34, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(34, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(34, 22, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(34, 24, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(34, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(35, 8, 1, Tree, 1); Game.instance.gameData.map.addObjProp(35, 10, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(35, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(35, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(35, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(35, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(35, 16, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(35, 21, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(35, 22, 1, Home, 1); Game.instance.gameData.map.addObjProp(35, 23, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(35, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(36, 9, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(36, 12, 1, River, 1); Game.instance.gameData.map.addObjProp(36, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(36, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(36, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(36, 19, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(36, 22, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(36, 24, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(36, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(37, 12, 1, Factory, 0); Game.instance.gameData.map.addObjProp(37, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(37, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(37, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(37, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(37, 22, 1, Factory, 2); Game.instance.gameData.map.addObjProp(37, 23, 1, Tree, 1); Game.instance.gameData.map.addObjProp(37, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(37, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(38, 10, 1, Tree, 1); Game.instance.gameData.map.addObjProp(38, 11, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(38, 12, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(38, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(38, 14, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(38, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(38, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(38, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(38, 24, 1, Tree, 1); Game.instance.gameData.map.addObjProp(38, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(39, 9, 1, Tree, 1); Game.instance.gameData.map.addObjProp(39, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(39, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(39, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(39, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(39, 21, 1, Tree, 1); Game.instance.gameData.map.addObjProp(39, 22, 1, Tree, 1); Game.instance.gameData.map.addObjProp(39, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(40, 11, 1, Tree, 1); Game.instance.gameData.map.addObjProp(40, 13, 1, Mountain, 1); Game.instance.gameData.map.addObjProp(40, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(40, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(40, 17, 1, DefenceTower, 1); Game.instance.gameData.map.addObjProp(40, 22, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(40, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(41, 17, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(41, 21, 1, Factory, 2); Game.instance.gameData.map.addObjProp(41, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 12, 1, Tree, 1); Game.instance.gameData.map.addObjProp(42, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(42, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(42, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(42, 20, 1, NormalBase, 0); Game.instance.gameData.map.addObjProp(42, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(42, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 13, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 20, 1, Tree, 1); Game.instance.gameData.map.addObjProp(43, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(43, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 14, 1, Tree, 1); Game.instance.gameData.map.addObjProp(44, 15, 1, Tree, 1); Game.instance.gameData.map.addObjProp(44, 16, 1, Tree, 1); Game.instance.gameData.map.addObjProp(44, 17, 1, Tree, 1); Game.instance.gameData.map.addObjProp(44, 18, 1, Tree, 1); Game.instance.gameData.map.addObjProp(44, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(44, 25, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 1, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 2, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 3, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 4, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 5, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 6, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 7, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 8, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 9, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 10, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 11, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 12, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 13, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 14, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 15, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 16, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 17, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 18, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 19, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 20, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 21, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 22, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 23, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 24, 1, Sea, 1); Game.instance.gameData.map.addObjProp(45, 25, 1, Sea, 1); } } }//package code.game.map
Section 44
//NormalMapSet (code.game.map.NormalMapSet) package code.game.map { public class NormalMapSet extends AbstractMapSet { public function NormalMapSet():void{ } override public function setMap(_arg1:int):void{ new NormalMapData().getData(_arg1)(); } } }//package code.game.map
Section 45
//AbstractCannonball (code.game.prop.AbstractCannonball) package code.game.prop { import flash.geom.*; import code.game.mainItem.*; public class AbstractCannonball extends AbstractItem { protected var _might:Number; protected var _pastPos:Point; protected var _shotDis:int; public function AbstractCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ init(_arg1, _arg2, _arg3); } public function get unit():ICannonballShoter{ return (null); } protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ } protected function autoClear():void{ } public function blast(_arg1:AbstractItem=null):void{ } } }//package code.game.prop
Section 46
//AbstractProp (code.game.prop.AbstractProp) package code.game.prop { import flash.display.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class AbstractProp extends AbstractItem { public function AbstractProp(_arg1:int, _arg2:int){ init(_arg1, _arg2); } protected function soundEffect():void{ } public function resetDisplay():void{ DisplayManager.instance.removeChild(_container); DisplayManager.instance.addChild(_container, DisplayManager.instance.getDisArr(yGrid)); } public function deleExist():void{ DisplayManager.instance.removeChild(_container); DisplayManager.instance.removeChild(_mc); Game.instance.gameData.minProp(this); Game.instance.gameData.minImpactObj(this); } protected function init(_arg1:int, _arg2:int):void{ xPos = ((_arg1 * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)); yPos = ((_arg2 * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)); DisplayManager.instance.addChild(_container, DisplayManager.instance.getDisArr(yGrid)); setProp(); Game.instance.gameData.addProp(this); Game.instance.gameData.addImpactObj(this); } protected function setProp():void{ var _local1:MovieClip; _local1 = DisplayManager.instance.getDefinition(getMcName()); _mc = _local1; _mc.x = (_wide / 2); _mc.y = (_height / 2); DisplayManager.instance.addChild(_mc, _container); } protected function getMcName():String{ return (null); } override public function clearSelf():void{ DisplayManager.instance.removeChild(_container); DisplayManager.instance.removeChild(_mc); super.clearSelf(); } public function eatedHandle(_arg1:AbstractUnit):void{ deleExist(); } } }//package code.game.prop
Section 47
//AbstractWeapon (code.game.prop.AbstractWeapon) package code.game.prop { import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class AbstractWeapon { protected var _fireName:String; protected var _fireMc:MovieClip; protected var _cannonballClass:Class; protected var _allowShot:Boolean; protected var _shotDistance:int; protected var _myCountTime:CountTime; protected var _shotSpeed:Number; protected var _fireSound:String; public function AbstractWeapon(_arg1:Class){ _cannonballClass = _arg1; } public function set fireName(_arg1:String):void{ _fireName = _arg1; } public function set shotSpeed(_arg1:Number):void{ _shotSpeed = _arg1; _myCountTime.totalTime = (Game.instance.gameData.frameRate * _shotSpeed); } public function get shotDistance():int{ return (_shotDistance); } public function get allowShot():Boolean{ return (_allowShot); } public function set fireSound(_arg1:String):void{ _fireSound = _arg1; } public function fire(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ } public function set cannonballClass(_arg1:Class):void{ _cannonballClass = _arg1; } public function clearSelf():void{ _myCountTime.clearSelf(); _myCountTime = null; _cannonballClass = null; _fireMc = null; } } }//package code.game.prop
Section 48
//BlastCannonball (code.game.prop.BlastCannonball) package code.game.prop { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class BlastCannonball extends Cannonball { private static var _shotDistance:int = 175; public function BlastCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("blastCannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function overShotDisHandle():void{ blast(); } override public function clearSelf():void{ DisplayManager.instance.removeChild(_mc); _mc = null; super.clearSelf(); } override protected function setParameter():void{ _defaultPowerNum = 10; } override public function blast(_arg1:AbstractItem=null):void{ new BlastEffect(new Point(this.xPos, this.yPos), _unit); clearSelf(); } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 49
//BlastEffect (code.game.prop.BlastEffect) package code.game.prop { import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class BlastEffect extends AbstractItem { private var _might:int; private var _unit:ICannonballShoter; public function BlastEffect(_arg1:Point, _arg2:ICannonballShoter){ init(_arg1, _arg2); } private function destroy(_arg1:Point):void{ var _local2:int; var _local3:AbstractItem; _local2 = (Game.instance.gameData.impactObjArr.length - 1); while (_local2 > -1) { _local3 = Game.instance.gameData.impactObjArr[_local2]; if (Math.sqrt((Math.pow((_local3.xPos - _arg1.x), 2) + Math.pow((_local3.yPos - _arg1.y), 2))) <= Math.sqrt((2 * Math.pow(Game.instance.gameData.gridWid, 2)))){ if (_local3 != _unit){ _local3.beenAttacked(_might, _unit.player); }; }; _local2--; }; } private function setMc():void{ _mc = DisplayManager.instance.getDefinition("blastEffect"); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } private function init(_arg1:Point, _arg2:ICannonballShoter):void{ this.xPos = _arg1.x; this.yPos = _arg1.y; _unit = _arg2; _might = 40; setMc(); Game.instance.gameEngine.addEngine(countBlast); destroy(new Point(this.xPos, this.yPos)); SoundManager.instance.creatSound("blastSound"); } private function countBlast():void{ if (_mc.currentFrame == _mc.totalFrames){ Game.instance.gameEngine.minEngine(countBlast); clearSelf(); }; } override public function clearSelf():void{ DisplayManager.instance.removeChild(_mc); DisplayManager.instance.removeChild(_container); _unit = null; super.clearSelf(); } } }//package code.game.prop
Section 50
//Cannonball (code.game.prop.Cannonball) package code.game.prop { import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class Cannonball extends AbstractCannonball { protected var _defaultPowerNum:Number; protected var _unit:ICannonballShoter; protected var _thrust:CoordinateVector; private static var _shotDistance:int = 120; public function Cannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("cannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override public function get unit():ICannonballShoter{ return (_unit); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 10; _height = 10; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } private function addPowerToObj():void{ this.addPower(_thrust); } protected function overShotDisHandle():void{ Game.instance.gameEngine.minEngine(autoClear); Game.instance.moveControlCenter.minMoveObj(this); DisplayManager.instance.removeChild(_mc); _mc = null; _thrust = null; _unit = null; _mc = DisplayManager.instance.getDefinition("blast2"); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(juedeBlastMc); } override public function clearSelf():void{ Game.instance.gameEngine.minEngine(autoClear); Game.instance.moveControlCenter.minMoveObj(this); DisplayManager.instance.removeChild(_mc); _mc = null; DisplayManager.instance.removeChild(_container); _thrust = null; _unit = null; super.clearSelf(); } protected function setPower(_arg1:Number):void{ _thrust = new CoordinateVector(); _thrust.coordinate = new Point((Math.cos(_arg1) * _defaultPowerNum), (Math.sin(_arg1) * _defaultPowerNum)); addPowerToObj(); Game.instance.gameEngine.addEngine(autoClear); } protected function juedeBlastMc():void{ if (_mc.currentFrame == _mc.totalFrames){ Game.instance.gameEngine.minEngine(juedeBlastMc); DisplayManager.instance.removeChild(_mc); _mc = null; super.clearSelf(); }; } override protected function autoClear():void{ if ((((((((this.xPos > (Game.instance.gameData.mapSize.x * Game.instance.gameData.gridWid))) || ((this.xPos < 0)))) || ((this.yPos > (Game.instance.gameData.mapSize.y * Game.instance.gameData.gridWid))))) || ((this.yPos < 0)))){ clearSelf(); return; }; if (((!((this.xPos == _pastPos.x))) || (!((this.yPos == _pastPos.y))))){ _shotDis = (_shotDis - (Math.abs((this.xPos - _pastPos.x)) + Math.abs((this.yPos - _pastPos.y)))); _pastPos.x = this.xPos; _pastPos.y = this.yPos; if (_shotDis <= 0){ overShotDisHandle(); }; }; } protected function setParameter():void{ _defaultPowerNum = 9; _might = 10; } override public function blast(_arg1:AbstractItem=null):void{ _arg1.beenAttacked(_might, _unit.player); clearSelf(); } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 51
//DemonWeapon (code.game.prop.DemonWeapon) package code.game.prop { import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class DemonWeapon extends AbstractWeapon { private var _firePara:Array; public function DemonWeapon(_arg1:Class){ super(_arg1); init(); } private function init():void{ var timeUpHandle:Function; _allowShot = true; _myCountTime = new CountTime(); timeUpHandle = function ():void{ _allowShot = true; }; _myCountTime.timeUpFunc = timeUpHandle; _shotDistance = _cannonballClass["shotDistance"]; _fireName = "demonFire"; _firePara = new Array(); } private function fireMcControl():void{ var _local1:Point; if (_fireMc.currentFrame == _fireMc.totalFrames){ DisplayManager.instance.removeChild(_fireMc); Game.instance.gameEngine.minEngine(fireMcControl); _local1 = new Point(((_firePara[1].x + _firePara[2].xPos) - (_firePara[2].wide / 2)), ((_firePara[1].y + _firePara[2].yPos) - (_firePara[2].height / 2))); Game.instance.moveControlCenter.addMoveObj(AbstractItem(new _cannonballClass(_firePara[0], _local1, _firePara[2]))); _firePara.splice(0); _fireMc = null; }; } override public function fire(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ if (_allowShot){ if (_fireSound != null){ SoundManager.instance.creatSound(_fireSound); }; _fireMc = DisplayManager.instance.getDefinition(_fireName); _fireMc.x = _arg2.x; _fireMc.y = _arg2.y; DisplayManager.instance.addChild(_fireMc, _arg3.container); Game.instance.gameEngine.addEngine(fireMcControl); _firePara.push(_arg1, _arg2, _arg3); _allowShot = false; _myCountTime.start(); }; } override public function set cannonballClass(_arg1:Class):void{ _cannonballClass = _arg1; _shotDistance = _cannonballClass[shotDistance]; } override public function clearSelf():void{ DisplayManager.instance.removeChild(_fireMc); Game.instance.gameEngine.minEngine(fireMcControl); super.clearSelf(); } } }//package code.game.prop
Section 52
//DoubleCannonball (code.game.prop.DoubleCannonball) package code.game.prop { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class DoubleCannonball extends Cannonball { private static var _shotDistance:int = 140; public function DoubleCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("doubleCannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 10; _height = 10; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } override protected function setParameter():void{ _defaultPowerNum = 10; _might = 20; } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 53
//HeavyDoubleCannonball (code.game.prop.HeavyDoubleCannonball) package code.game.prop { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class HeavyDoubleCannonball extends Cannonball { private static var _shotDistance:int = 175; public function HeavyDoubleCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("heavyDoubleCannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 10; _height = 10; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } override protected function setParameter():void{ _defaultPowerNum = 5; _might = 50; } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 54
//InvincibleMc (code.game.prop.InvincibleMc) package code.game.prop { import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class InvincibleMc implements IDisInRobotItem { private var _mcDepth:int; private var _mc:MovieClip; public function InvincibleMc(){ init(); } public function get needReCreat():Boolean{ return (false); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("invincibleEffect"); }; } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } private function init():void{ _mcDepth = 1; } public function get depth():int{ return (_mcDepth); } public function get pos():Point{ return (new Point(0, 0)); } public function get needStop():Boolean{ return (false); } } }//package code.game.prop
Section 55
//InvincibleProp (code.game.prop.InvincibleProp) package code.game.prop { import code.game.*; import code.system.*; import code.game.mainItem.*; public class InvincibleProp extends AbstractProp { private var _countTimer:CountTime; private var _invincibleTime:int; private var _unit:AbstractUnit; private var _invincibleMc:InvincibleMc; public function InvincibleProp(_arg1:int, _arg2:int){ super(_arg1, _arg2); _invincibleTime = 10; } public function get countTime():CountTime{ return (_countTimer); } private function effectEnd():void{ _unit.couldAttack = true; _countTimer.clearSelf(); _unit.minNeedDisObjArr(_invincibleMc); _unit.minPropArr(this); _unit = null; _invincibleMc = null; _countTimer = null; this.clearSelf(); } override protected function init(_arg1:int, _arg2:int):void{ _wide = 30; _height = 30; super.init(_arg1, _arg2); } override protected function getMcName():String{ return ("invincible_prop"); } override public function clearSelf():void{ _unit = null; if (_countTimer != null){ _countTimer.clearSelf(); _countTimer = null; }; super.clearSelf(); } override public function eatedHandle(_arg1:AbstractUnit):void{ var _local2:AbstractProp; super.eatedHandle(_arg1); _unit = _arg1; for each (_local2 in _unit.propArr) { if ((_local2 as InvincibleProp)){ InvincibleProp(_local2).countTime.totalTime = (InvincibleProp(_local2).countTime.totalTime + (_invincibleTime * Game.instance.gameData.frameRate)); this.clearSelf(); return; }; }; _unit.couldAttack = false; _invincibleMc = new InvincibleMc(); _unit.addNeedDisObjArr(_invincibleMc); _countTimer = new CountTime(); _countTimer.totalTime = (_invincibleTime * Game.instance.gameData.frameRate); _countTimer.timeUpFunc = effectEnd; _countTimer.start(); _unit.addPropArr(this); } } }//package code.game.prop
Section 56
//LaserCannonball (code.game.prop.LaserCannonball) package code.game.prop { import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class LaserCannonball extends Cannonball { private static var _shotDistance:int = 210; public function LaserCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ var _local2:String; if ((((_arg1 == ((-90 * Math.PI) / 180))) || ((_arg1 == ((90 * Math.PI) / 180))))){ _local2 = "laserCannonball_upright"; } else { if ((((_arg1 == ((180 * Math.PI) / 180))) || ((_arg1 == ((0 * Math.PI) / 180))))){ _local2 = "laserCannonball_across"; }; }; _mc = DisplayManager.instance.getDefinition(_local2); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = ((_arg1 * 180) / Math.PI); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function overShotDisHandle():void{ Game.instance.gameEngine.minEngine(autoClear); Game.instance.moveControlCenter.minMoveObj(this); DisplayManager.instance.removeChild(_mc); _mc = null; _thrust = null; _unit = null; _mc = DisplayManager.instance.getDefinition("blast3"); DisplayManager.instance.addChild(_mc, _container); Game.instance.gameEngine.addEngine(juedeBlastMc); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 20; _height = 20; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } override protected function setParameter():void{ _defaultPowerNum = 15; _might = 50; } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 57
//Missile (code.game.prop.Missile) package code.game.prop { import flash.events.*; import flash.display.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class Missile extends AbstractItem implements IDisInRobotItem { private var _player:AbstractPlayer; private var _mcDepth:int; private var _might:int; private var _aimUnit:AbstractUnit; private var _sightMc:SightMc; public function Missile(_arg1:AbstractUnit, _arg2:AbstractPlayer){ init(_arg1, _arg2); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } private function init(_arg1:AbstractUnit, _arg2:AbstractPlayer):void{ var _local3:Number; _might = 300; _mcDepth = -1; _sightMc = new SightMc(); _local3 = (Game.instance.gameData.gridWid / 2); _sightMc.pos = new Point(_local3, _local3); _arg1.addNeedDisObjArr(_sightMc); _aimUnit = _arg1; _arg1.addNeedDisObjArr(this); _aimUnit.addEventListener("_Death", unitDeathHandle); _player = _arg2; Game.instance.gameEngine.addEngine(judgeHit); } private function unitDeathHandle(_arg1:Event):void{ this.clearSelf(); } public function get needReCreat():Boolean{ return (false); } public function get needStop():Boolean{ return (false); } override public function clearSelf():void{ Game.instance.gameEngine.minEngine(judgeHit); _aimUnit.minNeedDisObjArr(_sightMc); _sightMc = null; _aimUnit.removeEventListener("_Death", unitDeathHandle); _aimUnit.minNeedDisObjArr(this); _aimUnit = null; _player = null; super.clearSelf(); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("missile"); }; } public function get depth():int{ return (_mcDepth); } public function get disMc():MovieClip{ return (_mc); } public function get pos():Point{ return (new Point((_aimUnit.mc.x + (_aimUnit.mc.width / 2)), -60)); } private function judgeHit():void{ this.mc.y = (this.mc.y + 4); if (Math.abs((_aimUnit.mc.y - this.mc.y)) < 1){ _aimUnit.beenAttacked(_might, _player); this.clearSelf(); }; } } }//package code.game.prop
Section 58
//MissileProp (code.game.prop.MissileProp) package code.game.prop { import code.game.*; import code.game.mainItem.*; public class MissileProp extends AbstractProp { public function MissileProp(_arg1:int, _arg2:int){ super(_arg1, _arg2); } override protected function init(_arg1:int, _arg2:int):void{ _wide = 30; _height = 30; super.init(_arg1, _arg2); } override protected function getMcName():String{ return ("missile_prop"); } override public function eatedHandle(_arg1:AbstractUnit):void{ var _local2:AbstractPlayer; var _local3:AbstractUnit; super.eatedHandle(_arg1); for each (_local2 in Game.instance.gameData.playerArr) { if (_local2 != _arg1.player){ _local3 = _local2.unitArr[Math.floor((Math.random() * _local2.unitArr.length))]; if (_local3 != null){ new Missile(_local3, _arg1.player); }; return; }; }; this.clearSelf(); } } }//package code.game.prop
Section 59
//MoneyProp (code.game.prop.MoneyProp) package code.game.prop { import code.game.mainItem.*; public class MoneyProp extends AbstractProp { private var _moneyNum:int; public function MoneyProp(_arg1:int, _arg2:int){ super(_arg1, _arg2); } override protected function init(_arg1:int, _arg2:int):void{ _wide = 30; _height = 30; _moneyNum = 10000; super.init(_arg1, _arg2); } override protected function getMcName():String{ return ("money_prop"); } override public function eatedHandle(_arg1:AbstractUnit):void{ super.eatedHandle(_arg1); _arg1.player.money = (_arg1.player.money + _moneyNum); this.clearSelf(); } } }//package code.game.prop
Section 60
//NormalCannonball (code.game.prop.NormalCannonball) package code.game.prop { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class NormalCannonball extends Cannonball { private static var _shotDistance:int = 175; public function NormalCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("noramlCannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 10; _height = 10; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } override protected function setParameter():void{ _defaultPowerNum = 10; _might = 35; } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 61
//NormalWeapon (code.game.prop.NormalWeapon) package code.game.prop { import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class NormalWeapon extends AbstractWeapon { public function NormalWeapon(_arg1:Class){ super(_arg1); init(); } private function init():void{ var timeUpHandle:Function; _allowShot = true; _myCountTime = new CountTime(); timeUpHandle = function ():void{ _allowShot = true; }; _myCountTime.timeUpFunc = timeUpHandle; _shotDistance = _cannonballClass["shotDistance"]; _fireName = "fire"; } private function fireMcControl():void{ if (_fireMc.currentFrame == _fireMc.totalFrames){ DisplayManager.instance.removeChild(_fireMc); Game.instance.gameEngine.minEngine(fireMcControl); _fireMc = null; }; } override public function fire(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ var _local4:Point; if (_allowShot){ if (_fireSound != null){ SoundManager.instance.creatSound(_fireSound); }; _fireMc = DisplayManager.instance.getDefinition(_fireName); _fireMc.x = _arg2.x; _fireMc.y = _arg2.y; _fireMc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_fireMc, _arg3.container); Game.instance.gameEngine.addEngine(fireMcControl); _local4 = new Point(((_arg2.x + _arg3.xPos) - (_arg3.wide / 2)), ((_arg2.y + _arg3.yPos) - (_arg3.height / 2))); Game.instance.moveControlCenter.addMoveObj(AbstractItem(new _cannonballClass(_arg1, _local4, _arg3))); _allowShot = false; _myCountTime.start(); }; } override public function set cannonballClass(_arg1:Class):void{ _cannonballClass = _arg1; _shotDistance = _cannonballClass[shotDistance]; } override public function clearSelf():void{ DisplayManager.instance.removeChild(_fireMc); Game.instance.gameEngine.minEngine(fireMcControl); super.clearSelf(); } } }//package code.game.prop
Section 62
//RepairProp (code.game.prop.RepairProp) package code.game.prop { import code.game.mainItem.*; public class RepairProp extends AbstractProp { public function RepairProp(_arg1:int, _arg2:int){ super(_arg1, _arg2); } override protected function init(_arg1:int, _arg2:int):void{ _wide = 30; _height = 30; super.init(_arg1, _arg2); } override protected function getMcName():String{ return ("repair_prop"); } override public function eatedHandle(_arg1:AbstractUnit):void{ super.eatedHandle(_arg1); if (_arg1.blood < _arg1.totalBlood){ _arg1.repair((_arg1.totalBlood - _arg1.blood)); }; this.clearSelf(); } } }//package code.game.prop
Section 63
//RPGCannonball (code.game.prop.RPGCannonball) package code.game.prop { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class RPGCannonball extends Cannonball { private static var _shotDistance:int = 140; public function RPGCannonball(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter){ super(_arg1, _arg2, _arg3); } override protected function setDisplay(_arg1:Number):void{ _mc = DisplayManager.instance.getDefinition("rPGCannonball"); _mc.x = (_wide / 2); _mc.y = (_height / 2); _mc.rotation = (((_arg1 * 180) / Math.PI) + 90); DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DisplayManager.instance.skyContainer); } override protected function init(_arg1:Number, _arg2:Point, _arg3:ICannonballShoter):void{ _shotDis = _shotDistance; _wide = 10; _height = 10; this.xPos = _arg2.x; this.yPos = _arg2.y; _pastPos = new Point(this.xPos, this.yPos); setParameter(); _unit = _arg3; setDisplay(_arg1); setPower(_arg1); } override protected function setParameter():void{ _defaultPowerNum = 5; _might = 30; } public static function get shotDistance():int{ return (_shotDistance); } } }//package code.game.prop
Section 64
//SightMc (code.game.prop.SightMc) package code.game.prop { import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class SightMc implements IDisInRobotItem { private var _mcDepth:int; private var _pos:Point; private var _mc:MovieClip; public function SightMc(){ init(); } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } public function get depth():int{ return (_mcDepth); } private function init():void{ _mcDepth = -1; _pos = new Point(0, 0); } public function get pos():Point{ return (_pos); } public function get needReCreat():Boolean{ return (false); } public function set pos(_arg1:Point):void{ _pos = _arg1; } public function get needStop():Boolean{ return (false); } public function creatDisMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition("sight"); } } }//package code.game.prop
Section 65
//TimeStopMc (code.game.prop.TimeStopMc) package code.game.prop { import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class TimeStopMc implements IDisInRobotItem { private var _mcDepth:int; private var _pos:Point; private var _mc:MovieClip; public function TimeStopMc(){ init(); } public function creatDisMc(_arg1:String):void{ if (_mc == null){ _mc = DisplayManager.instance.getDefinition("stopIco"); }; } public function get disMc():MovieClip{ return (_mc); } public function set depth(_arg1:int):void{ _mcDepth = _arg1; } public function get depth():int{ return (_mcDepth); } private function init():void{ _mcDepth = 1; _pos = new Point(); } public function get pos():Point{ return (_pos); } public function get needReCreat():Boolean{ return (false); } public function set pos(_arg1:Point):void{ _pos = _arg1; } public function get needStop():Boolean{ return (false); } } }//package code.game.prop
Section 66
//TimeStopProp (code.game.prop.TimeStopProp) package code.game.prop { import flash.events.*; import flash.geom.*; import code.game.*; import code.system.*; import code.game.mainItem.*; public class TimeStopProp extends AbstractProp { private var _enemyCommanderArr:Array; private var _stopTime:int; private var _unit:AbstractUnit; private var _countTime:CountTime; public function TimeStopProp(_arg1:int, _arg2:int){ super(_arg1, _arg2); _enemyCommanderArr = new Array(); } public function get countTime():CountTime{ return (_countTime); } override protected function init(_arg1:int, _arg2:int):void{ _wide = 30; _height = 30; _stopTime = 10; super.init(_arg1, _arg2); } private function timeUpHandle():void{ var _local1:Array; for each (_local1 in _enemyCommanderArr) { if (Commander(_local1[0]).controlObj != null){ _local1[0].startListener(); Commander(_local1[0]).controlObj.minNeedDisObjArr(_local1[1]); }; }; _unit.minPropArr(this); this.clearSelf(); } override protected function getMcName():String{ return ("timeStop_prop"); } override public function clearSelf():void{ if (countTime != null){ _countTime.clearSelf(); }; _enemyCommanderArr = null; _countTime = null; if (_unit != null){ _unit.removeEventListener("_Death", ownerUnitDeathHandle); }; _unit = null; super.clearSelf(); } private function ownerUnitDeathHandle(_arg1:Event):void{ timeUpHandle(); } override public function eatedHandle(_arg1:AbstractUnit):void{ var _local2:AbstractProp; var _local3:AbstractPlayer; var _local4:Commander; var _local5:AbstractUnit; var _local6:TimeStopMc; super.eatedHandle(_arg1); _unit = _arg1; _unit.addEventListener("_Death", ownerUnitDeathHandle); for each (_local2 in _unit.propArr) { if ((_local2 as TimeStopProp)){ TimeStopProp(_local2).countTime.totalTime = (TimeStopProp(_local2).countTime.totalTime + (_stopTime * Game.instance.gameData.frameRate)); this.clearSelf(); return; }; }; _enemyCommanderArr.splice(0); for each (_local3 in Game.instance.gameData.playerArr) { if (_local3 != _arg1.player){ for each (_local4 in _local3.commanderArr) { _local5 = _local4.controlObj; if (_local5 == null){ } else { _local5.stop(); _local6 = new TimeStopMc(); _local6.pos = new Point((_local5.wide / 2), (_local5.height / 2)); _local5.addNeedDisObjArr(_local6); _local4.pasueListener(); _enemyCommanderArr.push(new Array(_local4, _local6)); }; }; }; }; if (_enemyCommanderArr.length != 0){ _countTime = new CountTime(); _countTime.totalTime = (_stopTime * Game.instance.gameData.frameRate); _countTime.timeUpFunc = timeUpHandle; _countTime.start(); _unit.addPropArr(this); } else { this.clearSelf(); }; } } }//package code.game.prop
Section 67
//AbstractCountPoint (code.game.AbstractCountPoint) package code.game { public class AbstractCountPoint { public function AbstractCountPoint(){ init(); } public function get timePoint():int{ return (0); } public function getKillPoint(_arg1:String):int{ return (0); } public function get levelPoint():int{ return (0); } public function setLevelPoint():void{ } protected function init():void{ } public function get moneyPoint():int{ return (0); } public function get killNumArr():Array{ return (null); } public function get buildingPoint():int{ return (0); } } }//package code.game
Section 68
//AbstractGameBuilder (code.game.AbstractGameBuilder) package code.game { import flash.events.*; public class AbstractGameBuilder extends EventDispatcher { public function mapInit():void{ } public function robotInit():void{ } public function displayInit():void{ } public function dataInit():void{ } } }//package code.game
Section 69
//AbstractGameEndTactic (code.game.AbstractGameEndTactic) package code.game { public class AbstractGameEndTactic { public function winDispose():void{ } public function standardGameEndFlowStepThree():void{ } public function lostDispose():void{ } } }//package code.game
Section 70
//AbstractGametUiTactic (code.game.AbstractGametUiTactic) package code.game { public class AbstractGametUiTactic { } }//package code.game
Section 71
//AbstractImpactHandle (code.game.AbstractImpactHandle) package code.game { public class AbstractImpactHandle { } }//package code.game
Section 72
//AbstractImpactJudge (code.game.AbstractImpactJudge) package code.game { import flash.geom.*; import code.game.mainItem.*; public class AbstractImpactJudge { public function impactCheck(_arg1:AbstractItem, _arg2:AbstractItem):Boolean{ return (false); } public function get impactRec():Rectangle{ return (null); } } }//package code.game
Section 73
//AbstractImpactTactic (code.game.AbstractImpactTactic) package code.game { public class AbstractImpactTactic { protected var _impactTactic:AbstractImpactJudge; } }//package code.game
Section 74
//AbstractPlayer (code.game.AbstractPlayer) package code.game { import code.game.mainItem.*; public class AbstractPlayer { protected var _money:int; protected var _totalPoint:int; protected var _killPoint:int; protected var _killArr:Array; protected var _commanderArr:Array; protected var _personUnitArr:Array; protected var _unitMcNum:int; protected var _produceBaseArr:Array; protected var _buildingPoint:int; protected var _unitArr:Array; public function get money():int{ return (_money); } public function get buildingPoint():int{ return (_buildingPoint); } public function get unitArr():Array{ return (_unitArr); } public function get commanderArr():Array{ return (_commanderArr); } public function clearPoint():void{ } public function addProduceBaseArr(_arg1:AbstractItem):void{ _produceBaseArr.push(_arg1); } public function set personUnitArr(_arg1:Array):void{ _personUnitArr = _arg1; } public function set money(_arg1:int):void{ _money = _arg1; } public function get killPoint():int{ return (_killPoint); } public function set unitMcNum(_arg1:int):void{ _unitMcNum = _arg1; } public function reInit():void{ } public function addPort(_arg1:AbstractBuilding):void{ } public function get killArr():Array{ return (_killArr); } public function set killPoint(_arg1:int):void{ _killPoint = _arg1; } public function get unitMcNum():int{ return (_unitMcNum); } public function renascence(_arg1:AbstractUnit):void{ } public function minPort(_arg1:AbstractBuilding):void{ } public function creatUnit():void{ } public function minUnit(_arg1:AbstractUnit):void{ var _local2:int; _local2 = _unitArr.indexOf(_arg1); if (_local2 != -1){ _unitArr.splice(_local2, 1); }; } public function get personUnitArr():Array{ return (_personUnitArr); } public function set buildingPoint(_arg1:int):void{ _buildingPoint = _arg1; } public function clearSelf():void{ } public function minProduceBaseArr(_arg1:AbstractItem):void{ _produceBaseArr.splice(_produceBaseArr.indexOf(_arg1), 1); } } }//package code.game
Section 75
//AI (code.game.AI) package code.game { import flash.events.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; import code.ai.*; public class AI extends Commander { protected var _power:CoordinateVector; protected var _rightStage:Boolean; protected var _eventDispatcher:EventDispatcher; protected var _upStage:Boolean; protected var _leftStage:Boolean; protected var _decision:Decision; protected var _downStage:Boolean; public function AI(){ init(); } override public function clearSelf():void{ pasueListener(); _controlObj.removeEventListener("_Death", deathHandle); _controlObj.removeEventListener("_Pause", pauseHandle); _controlObj = null; _eventDispatcher = null; _power = null; _decision.clearSelf(); _decision = null; } protected function UpHandle(_arg1:AiEvent):void{ if (_controlObj != null){ switch (_arg1.keyCode){ case "left": _leftStage = false; moveStop("left"); break; case "up": _upStage = false; moveStop("up"); break; case "right": _rightStage = false; moveStop("right"); break; case "down": _downStage = false; moveStop("down"); break; }; }; } override public function pasueListener():void{ removeEventListener(AiEvent.KEY_DOWN, DownHandle); removeEventListener(AiEvent.KEY_UP, UpHandle); Game.instance.gameEngine.minEngine(addPowerToObj); clearMoveStage(); } protected function DownHandle(_arg1:AiEvent):void{ if (_controlObj != null){ switch (_arg1.keyCode){ case "left": if (_controlObj.direct != "left"){ _controlObj.turning("left"); } else { _controlObj.play(); }; _power.coordinate = new Point(-(_controlObj.velocity), 0); _leftStage = true; break; case "up": if (_controlObj.direct != "up"){ _controlObj.turning("up"); } else { _controlObj.play(); }; _power.coordinate = new Point(0, -(_controlObj.velocity)); _upStage = true; break; case "right": if (_controlObj.direct != "right"){ _controlObj.turning("right"); } else { _controlObj.play(); }; _power.coordinate = new Point(_controlObj.velocity, 0); _rightStage = true; break; case "down": if (_controlObj.direct != "down"){ _controlObj.turning("down"); } else { _controlObj.play(); }; _power.coordinate = new Point(0, _controlObj.velocity); _downStage = true; break; case "spaceKey": _controlObj.actionKeyHandle(); break; }; }; } private function moveStop(_arg1:String):void{ _power.coordinate = new Point(0, 0); _controlObj.stop(); } private function init():void{ clearMoveStage(); _eventDispatcher = new EventDispatcher(); Game.instance.gameData.commandArr.push(this); _decision = new Decision(this); } public function removeEventListener(_arg1:String, _arg2:Function):void{ _eventDispatcher.removeEventListener(_arg1, _arg2); } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=true):void{ _eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function dispatchEvent(_arg1:Event):void{ _eventDispatcher.dispatchEvent(_arg1); } public function get decision():Decision{ return (_decision); } override protected function clearMoveStage():void{ _upStage = false; _downStage = false; _leftStage = false; _rightStage = false; _power = new CoordinateVector(); } override public function reInit():void{ clearMoveStage(); } override public function set controlObj(_arg1:AbstractUnit):void{ _controlObj = _arg1; _controlObj.addEventListener("_Death", deathHandle, false, 0, true); _controlObj.addEventListener("_Pause", pauseHandle, false, 0, true); this.startListener(); if (_decision != null){ _decision.reInit(); }; _decision.unit = _controlObj; _decision.play(); } override public function startListener():void{ addEventListener(AiEvent.KEY_DOWN, DownHandle); addEventListener(AiEvent.KEY_UP, UpHandle); Game.instance.gameEngine.addEngine(addPowerToObj); } protected function deathHandle(_arg1:Event):void{ _decision.stop(); this.pasueListener(); _controlObj.removeEventListener("_Death", deathHandle); _controlObj.removeEventListener("_Pause", pauseHandle); _controlObj = null; _power = null; } protected function pauseHandle(_arg1:Event):void{ pasueListener(); } public function addPowerToObj():void{ _controlObj.addPower(_power); } } }//package code.game
Section 76
//AiPlayer (code.game.AiPlayer) package code.game { import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class AiPlayer extends AbstractPlayer { public function AiPlayer(){ init(); } override public function set money(_arg1:int):void{ super.money = _arg1; } private function getCreatPos(_arg1:int):Point{ var _local2:AbstractBuilding; var _local3:int; var _local4:int; var _local5:int; _local2 = _produceBaseArr[_arg1]; _local3 = 0; while (_local3 < Game.instance.gameData.mapSize.x) { _local4 = -(_local3); while (_local4 < (_local3 + 1)) { _local5 = -(_local3); while (_local5 < (_local3 + 1)) { if (juedeCreatPos(new Point((_local2.xGrid + _local4), (_local2.yGrid + _local5)))){ return (new Point((_local2.xGrid + _local4), (_local2.yGrid + _local5))); }; _local5++; }; _local4++; }; _local3++; }; return (new Point(0, 0)); } private function init():void{ _unitArr = new Array(); _commanderArr = new Array(); _produceBaseArr = new Array(); _personUnitArr = new Array(); _killArr = new Array(); } override public function creatUnit():void{ var _local1:int; _local1 = 0; while (_local1 < _produceBaseArr.length) { if (personUnitArr.length == 0){ break; }; instantiationUnit(getCreatPos(_local1)); _local1++; }; } private function juedeCreatPos(_arg1:Point):Boolean{ var _local2:AbstractUnit; for each (_local2 in Game.instance.gameData.unitArr) { if ((((_arg1.x == _local2.xGrid)) && ((_arg1.y == _local2.yGrid)))){ return (false); }; }; if (Game.instance.gameData.map.getItem(_arg1.x, _arg1.y) != null){ if ((Game.instance.gameData.map.getItem(_arg1.x, _arg1.y) as AbstractBuilding)){ return (true); }; } else { return (true); }; return (false); } override public function clearSelf():void{ _unitArr = null; _commanderArr = null; _produceBaseArr = null; _personUnitArr = null; } override public function addPort(_arg1:AbstractBuilding):void{ addProduceBaseArr(_arg1); } override public function clearPoint():void{ _money = 0; } override public function reInit():void{ _unitArr.splice(0); _commanderArr.splice(0); _produceBaseArr.splice(0); _personUnitArr.splice(0); _killArr.splice(0); } override public function renascence(_arg1:AbstractUnit):void{ var _local2:int; if (personUnitArr.length > 0){ _local2 = Math.floor((Math.random() * _produceBaseArr.length)); instantiationUnit(getCreatPos(_local2)); } else { if (_unitArr.length == 1){ Game.instance.gameEnd(true); }; }; } private function instantiationUnit(_arg1:Point):void{ var unit:AbstractUnit; var useExsitAI:Boolean; var commander:AI; var ai:AI; var creatLight:MovieClip; var judgeLightMc:Function; var pos = _arg1; unit = new this.personUnitArr[0](_unitMcNum); for each (ai in _commanderArr) { if (ai.controlObj == null){ commander = ai; ai.reInit(); ai.controlObj = unit; ai.decision.setAction("attack", "building"); useExsitAI = true; break; }; }; if (!useExsitAI){ commander = new AI(); _commanderArr.push(commander); commander.controlObj = unit; commander.decision.setAction("attack", "building"); }; commander.pasueListener(); unit.player = this; unit.xPos = ((pos.x * Game.instance.gameData.gridWid) + (unit.wide / 2)); unit.yPos = ((pos.y * Game.instance.gameData.gridWid) + (unit.height / 2)); unit.mc.alpha = 0.3; personUnitArr.splice(0, 1); creatLight = DisplayManager.instance.getDefinition("creatLight"); creatLight.x = (((pos.x * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.x); creatLight.y = (((pos.y * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.y); DisplayManager.instance.addPlayMc(creatLight); judgeLightMc = function ():void{ unit.mc.alpha = (unit.mc.alpha + 0.05); if (creatLight.currentFrame == creatLight.totalFrames){ DisplayManager.instance.minPlayMc(creatLight); unit.mc.alpha = 1; DisplayManager.instance.removeChild(creatLight); Game.instance.gameEngine.minEngine(judgeLightMc); _unitArr.push(unit); Game.instance.gameData.addUnitArr(unit); Game.instance.moveControlCenter.addMoveObj(unit); commander.startListener(); }; }; Game.instance.gameEngine.addEngine(judgeLightMc); DisplayManager.instance.addChild(creatLight, DisplayManager.instance.skyContainer); } } }//package code.game
Section 77
//BuildingImpactHandle (code.game.BuildingImpactHandle) package code.game { import code.game.mainItem.*; public class BuildingImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem):void{ if ((((_arg2.xGrid == _arg1.xGrid)) && ((_arg2.yGrid == _arg1.yGrid)))){ AbstractBuilding(_arg2).occupant = AbstractUnit(_arg1); }; } } }//package code.game
Section 78
//BuildingTactic (code.game.BuildingTactic) package code.game { import flash.events.*; import code.game.mainItem.*; public class BuildingTactic extends EventDispatcher { private var _occupyNum:int; private var _tacticArr:Array; public function BuildingTactic(){ init(); } public function getTactic(_arg1:int):void{ if (_tacticArr[_arg1.toString()] != null){ var _local2 = _tacticArr; _local2[_arg1.toString()](); }; } private function occupyEnd():void{ _occupyNum++; if (_occupyNum >= 3){ winGame(); }; } private function set0():void{ var _local1:AbstractBuilding; var _local2:AbstractBuilding; var _local3:AbstractBuilding; if (Game.instance.gameData.map.getItem(3, 11) != null){ _local1 = AbstractBuilding(Game.instance.gameData.map.getItem(3, 11)); _local1.addOccupyFunc(occupyEnd); }; if (Game.instance.gameData.map.getItem(6, 7) != null){ _local2 = AbstractBuilding(Game.instance.gameData.map.getItem(6, 7)); _local2.addOccupyFunc(occupyEnd); }; if (Game.instance.gameData.map.getItem(14, 4) != null){ _local3 = AbstractBuilding(Game.instance.gameData.map.getItem(14, 4)); _local3.addOccupyFunc(occupyEnd); }; } private function init():void{ _tacticArr = new Array(); _tacticArr["20"] = set0; _occupyNum = 0; } private function winGame():void{ Game.instance.gameEnd(true); } } }//package code.game
Section 79
//CannonballImpactHandle (code.game.CannonballImpactHandle) package code.game { import code.game.mainItem.*; import code.game.prop.*; public class CannonballImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem):void{ AbstractCannonball(_arg1).blast(_arg2); } } }//package code.game
Section 80
//CannonballImpactTactic (code.game.CannonballImpactTactic) package code.game { import code.system.*; import code.game.mainItem.*; import code.game.prop.*; public class CannonballImpactTactic extends AbstractImpactTactic { private var _skyResistenceNum:Number; private var _cannonballImpactHandle:CannonballImpactHandle; public function CannonballImpactTactic(){ init(); } private function init():void{ _skyResistenceNum = 1; _impactTactic = new SimpleRectangleImpactJudge(); _cannonballImpactHandle = new CannonballImpactHandle(); } public function impactTactic(_arg1:AbstractCannonball):void{ var _local2:AbstractItem; var _local3:int; _arg1.power = CoordinateVector.multiply(_arg1.power, _skyResistenceNum); _arg1.speed.coordinate.x = _arg1.power.coordinate.x; _arg1.speed.coordinate.y = _arg1.power.coordinate.y; _arg1.xPos = (_arg1.xPos + (Math.round((_arg1.speed.coordinate.x * 100)) / 100)); _arg1.yPos = (_arg1.yPos + (Math.round((_arg1.speed.coordinate.y * 100)) / 100)); _local2 = Game.instance.gameData.map.getItem(_arg1.xGrid, _arg1.yGrid); if (_local2 != null){ if (((((((!((_local2 as River))) && (!((_local2 as AbstractBuilding))))) && (!((_local2 as Sea))))) && (!((_local2 as Tree))))){ if ((((_arg1 as LaserCannonball)) || ((_arg1 as BlastCannonball)))){ if ((_local2 as Mountain)){ return; }; }; if (_arg1.unit != _local2){ _cannonballImpactHandle.impactHandle(_arg1, _local2); return; }; }; }; _local3 = (Game.instance.gameData.unitArr.length - 1); while (_local3 > -1) { if (((!((_arg1.unit == Game.instance.gameData.unitArr[_local3]))) && (!((_arg1.unit.player == Game.instance.gameData.unitArr[_local3].player))))){ if (_impactTactic.impactCheck(_arg1, Game.instance.gameData.unitArr[_local3])){ _cannonballImpactHandle.impactHandle(_arg1, Game.instance.gameData.unitArr[_local3]); break; }; }; _local3--; }; } } }//package code.game
Section 81
//Commander (code.game.Commander) package code.game { import code.game.mainItem.*; public class Commander { protected var _controlObj:AbstractUnit; protected function clearMoveStage():void{ } public function reInit():void{ } public function pasueListener():void{ } public function set controlObj(_arg1:AbstractUnit):void{ } public function startListener():void{ } public function clearSelf():void{ } public function get controlObj():AbstractUnit{ return (_controlObj); } } }//package code.game
Section 82
//CountPointFactory (code.game.CountPointFactory) package code.game { import code.system.*; public class CountPointFactory implements IFactory { private var _resourceArr:Array; private static var _resourceName:String; public function CountPointFactory():void{ init(); } private function init():void{ _resourceArr = new Array(); _resourceArr["normalCountPoint"] = NormalCountPoint; } public function getResource():AbstractCountPoint{ var _local1:Class; _local1 = _resourceArr[_resourceName]; if (_local1 == null){ throw (new Error("找不到要创建的 计分 策略...")); }; return (new (_local1)); } public static function set resourceName(_arg1:String):void{ _resourceName = _arg1; } } }//package code.game
Section 83
//FirstGameBuilder (code.game.FirstGameBuilder) package code.game { import flash.events.*; import code.ui.*; import code.system.*; import code.game.map.*; import code.game.mainItem.*; public class FirstGameBuilder extends AbstractGameBuilder { override public function dataInit():void{ var _local1:PersonPlayer; var _local2:AiPlayer; Soldier.declareClass(); Tank.declareClass(); Game.instance.gameData = new GameData(); Game.instance.gameEngine = new GameEngine(); Game.instance.moveControlCenter = new MoveControlCenter(); Game.instance.moveControlCenter.play(); Game.instance.gameData.gameTime = 100000000; GameEndFactory.resourceName = "normalGameEndTactic"; Game.instance.gameData.lens = new Lens(450, 450); Game.instance.gameData.buildingTactic = new BuildingTactic(); _local1 = new PersonPlayer(); Game.instance.gameData.playerArr.push(_local1); _local1.unitMcNum = 1; _local2 = new AiPlayer(); Game.instance.gameData.playerArr.push(_local2); _local2.personUnitArr = ArrayManager.arrayClone(Game.instance.gameData.stageSetting.getAiUnitArr(Game.instance.gameData.stageNum)); _local2.unitMcNum = 2; Game.instance.gameData.lens.lensUnitPlayer = _local1; Game.instance.gameData.protagonistPlayer = _local1; Game.instance.gameData.enemyPlayer = _local2; UiManager.instance.uiData.hideUnitTactic.changeUnitHide(); } override public function displayInit():void{ DisplayManager.instance.displayInit(); } override public function mapInit():void{ Game.instance.gameData.mapMaster = new MapMaster(); Game.instance.gameData.mapMaster.addEventListener("_mapCreatComplete", mapCreatCompleteHandle); Game.instance.gameData.mapMaster.creatMapObj(); Game.instance.gameData.lens.initBoundary(); } private function mapCreatCompleteHandle(_arg1:Event):void{ Game.instance.gameData.buildingTactic.getTactic(Game.instance.gameData.stageNum); Game.instance.gameData.stageSetting.setStageMask(Game.instance.gameData.stageNum); Game.instance.gameData.lens.xPos = ((Game.instance.gameData.lens.wide / 2) + (Game.instance.gameData.mapInitPos.x * Game.instance.gameData.gridWid)); Game.instance.gameData.lens.yPos = ((Game.instance.gameData.lens.height / 2) + (Game.instance.gameData.mapInitPos.x * Game.instance.gameData.gridWid)); Game.instance.gameData.mapMaster.removeEventListener("_mapCreatComplete", mapCreatCompleteHandle); this.dispatchEvent(new Event("_mapLoadComplete")); } override public function robotInit():void{ Game.instance.gameData.enemyPlayer.creatUnit(); } } }//package code.game
Section 84
//Game (code.game.Game) package code.game { import flash.events.*; import flash.display.*; import flash.text.*; import code.system.*; public class Game { private var _gameState:TextField; private var _moveControlCenter:MoveControlCenter; private var _gameData:GameData; private var _gameEngine:GameEngine; private var _pause:Boolean; private static var _instance:Game; public function Game(_arg1:GameSingletonEnforcer){ trace(_arg1); init(); } public function get moveControlCenter():MoveControlCenter{ return (_moveControlCenter); } private function timeOutHandle(_arg1:Event):void{ gameEnd(true); } public function gameUnPause():void{ var _local1:MovieClip; _gameEngine.start(); _pause = false; for each (_local1 in DisplayManager.instance.playingMcArr) { _local1.play(); }; } private function init():void{ } public function set moveControlCenter(_arg1:MoveControlCenter):void{ _moveControlCenter = _arg1; } public function get gameEngine():GameEngine{ return (_gameEngine); } private function buildCompleteHandle(_arg1:Event):void{ var _local3:Fps; GameBuildeDirector(_arg1.target).removeEventListener("_buildComplete", arguments["callee"]); _gameData.gameTimeCounter.addEventListener("_timeOut", timeOutHandle); _gameEngine.start(); _gameData.gameTimeCounter.start(); new GameStartUiTactic().getTactic(_gameData.stageNum); _local3 = new Fps(DocumentClass.instance.stage); _local3.x = 300; DisplayManager.instance.addChild(_local3, DisplayManager.instance.gameMainContainer); _gameState = new TextField(); _gameState.text = "0"; _gameState.y = 10; _gameState.x = 80; DisplayManager.instance.addChild(_gameState, DisplayManager.instance.gameMainContainer); } public function restartGame():void{ var _local1:GameBuildeDirector; _local1 = new GameBuildeDirector(); _local1.addEventListener("_buildComplete", buildCompleteHandle, false, 0, true); _local1.construct(new RestartGameBuilder()); } public function gamePause():void{ var _local1:MovieClip; _gameEngine.stop(); _pause = true; for each (_local1 in DisplayManager.instance.playingMcArr) { _local1.stop(); }; } public function set gameEngine(_arg1:GameEngine):void{ _gameEngine = _arg1; } public function gameEnd(_arg1:Boolean):void{ SoundManager.instance.stop("gameMusic"); SoundManager.instance.deleMusic("gameMusic"); _gameData.gameTimeCounter.removeEventListener("timeOut", timeOutHandle); if (_arg1){ new GameEndFactory().getResource().winDispose(); } else { new GameEndFactory().getResource().lostDispose(); }; } public function startGame():void{ var _local1:GameBuildeDirector; _local1 = new GameBuildeDirector(); _local1.addEventListener("_buildComplete", buildCompleteHandle); _local1.construct(new FirstGameBuilder()); } public function set gameData(_arg1:GameData):void{ _gameData = _arg1; } public function clearSelf():void{ _moveControlCenter.stop(); _moveControlCenter = null; _gameEngine.stop(); _gameEngine.clearData(); _gameEngine = null; _gameData = null; } public function get gameData():GameData{ return (_gameData); } public function get pause():Boolean{ return (_pause); } public function get gameState():TextField{ return (_gameState); } public static function get instance():Game{ if (Game._instance == null){ Game._instance = new Game(new GameSingletonEnforcer()); }; return (_instance); } public static function deleInstance():void{ Game._instance = null; } } }//package code.game class GameSingletonEnforcer { private function GameSingletonEnforcer(){ } }
Section 85
//GameBuildeDirector (code.game.GameBuildeDirector) package code.game { import flash.events.*; public class GameBuildeDirector extends EventDispatcher { private function mapLoadCompleteProxy(_arg1:Event, _arg2:AbstractGameBuilder):void{ _arg2.robotInit(); this.dispatchEvent(new Event("_buildComplete")); } public function construct(_arg1:AbstractGameBuilder):void{ var mapLoadCompleteHandle:Function; var builder = _arg1; builder.dataInit(); builder.displayInit(); mapLoadCompleteHandle = function (_arg1:Event):void{ builder.removeEventListener("_mapLoadComplete", mapLoadCompleteHandle); mapLoadCompleteProxy(_arg1, builder); }; builder.addEventListener("_mapLoadComplete", mapLoadCompleteHandle); builder.mapInit(); } } }//package code.game
Section 86
//GameData (code.game.GameData) package code.game { import flash.display.*; import code.ui.*; import flash.geom.*; import code.system.*; import code.game.map.*; import code.game.mainItem.*; import code.game.prop.*; public class GameData { private var _personAiUnitNum:int; private var _totalStageNum:int; private var _killPointArr:Array; private var _itemArr:Array; private var _stageNum:int; private var _buildingTactic:BuildingTactic; private var _gameTime:int; private var _playerArr:Array; private var _aiAttackProArr:Array; private var _buildingPoint:int; private var _aiAttackPro:Number; private var _buildingArr:Array; private var _stageSetting:StageSetting; private var _mapMaster:MapMaster; private var _excursion:Point; private var _frameRate:int; private var _creatTimeArr:Array; private var _gridWid:int; private var _map:Map; private var _allowCreatPropArr:Array; private var _protagonistPlayer:PersonPlayer; private var _impactObjArr:Array; private var _commandArr:Array; private var _propArr:Array; private var _mapInitPos:Point; private var _aiWorkArr:Array; private var _enemyPlayer:AbstractPlayer; private var _aiAnswerTime:int; private var _aiUnitClassArr:Array; private var _bgArr:Array; private var _gameTimeCounter:GameTimeCounter; private var _lens:Lens; private var _unitArr:Array; public function GameData():void{ init(); } public function set lens(_arg1:Lens):void{ _lens = _arg1; } public function get propArr():Array{ return (_propArr); } private function init():void{ _excursion = UiManager.instance.uiData.excursion; _gridWid = UiManager.instance.uiData.gridWid; _frameRate = 40; _aiAnswerTime = 20; _totalStageNum = UiManager.instance.uiData.totalStageNum; _impactObjArr = new Array(); _propArr = new Array(); _unitArr = new Array(); _bgArr = new Array(); _itemArr = new Array(); _buildingArr = new Array(); _commandArr = new Array(); _playerArr = new Array(); _stageSetting = UiManager.instance.uiData.stageSetting; _creatTimeArr = new Array(new Array(Tank, 1), new Array(Soldier, 1), new Array(HeavyTank, 1), new Array(Recon, 1), new Array(Artillery, 1), new Array(Demon, 1)); _killPointArr = new Array(); _killPointArr["tank"] = 1000; _killPointArr["soldier"] = 300; _killPointArr["recon"] = 500; _killPointArr["heavyTank"] = 1500; _killPointArr["demon"] = 2000; _killPointArr["artillery"] = 1000; _killPointArr["defenceTower"] = 1000; _buildingPoint = 2000; _stageNum = UiManager.instance.uiData.stageNum; _allowCreatPropArr = new Array(MissileProp, TimeStopProp, RepairProp, MoneyProp, InvincibleProp); _aiUnitClassArr = new Array(Soldier); _personAiUnitNum = 3; _aiAttackProArr = new Array(); _aiAttackProArr["easy"] = 0.1; _aiAttackProArr["normal"] = 0.3; _aiAttackProArr["hard"] = 0.5; _aiAttackPro = _aiAttackProArr[UiManager.instance.uiData.gameDiff]; _mapInitPos = new Point(); _aiWorkArr = new Array(); _aiWorkArr["19"] = false; } public function set enemyPlayer(_arg1:AbstractPlayer):void{ _enemyPlayer = _arg1; } public function get totalStageNum():int{ return (_totalStageNum); } public function get buildingArr():Array{ return (_buildingArr); } public function set totalStageNum(_arg1:int):void{ _totalStageNum = _arg1; } public function get buildingTactic():BuildingTactic{ return (_buildingTactic); } public function get commandArr():Array{ return (_commandArr); } public function get lens():Lens{ return (_lens); } public function get gameTimeCounter():GameTimeCounter{ if (_gameTimeCounter == null){ _gameTimeCounter = new GameTimeCounter(_gameTime); }; return (_gameTimeCounter); } public function get allowCreatPropArr():Array{ return (_allowCreatPropArr); } public function get protagonistPlayer():PersonPlayer{ return (_protagonistPlayer); } public function set buildingTactic(_arg1:BuildingTactic):void{ _buildingTactic = _arg1; } public function get mapInitPos():Point{ return (_mapInitPos); } public function clearGameData():void{ var _local1:AbstractUnit; var _local2:AbstractProp; var _local3:MovieClip; var _local4:AbstractItem; var _local5:AbstractBuilding; for each (_local1 in Game.instance.gameData.unitArr) { _local1.clearSelf(); }; for each (_local2 in Game.instance.gameData.propArr) { _local2.clearSelf(); }; for each (_local3 in Game.instance.gameData.bgArr) { DisplayManager.instance.removeChild(_local3); }; for each (_local4 in Game.instance.gameData.itemArr) { _local4.clearSelf(); }; for each (_local5 in Game.instance.gameData.buildingArr) { _local5.clearSelf(); }; } public function setMapInitPos(_arg1:int, _arg2:int):void{ _mapInitPos.x = _arg1; _mapInitPos.y = _arg2; } public function get killPointArr():Array{ return (_killPointArr); } public function addImpactObj(_arg1:AbstractItem):void{ _impactObjArr.push(_arg1); } public function clearSelf():void{ _gameTimeCounter = null; _mapMaster = null; _map = null; _impactObjArr = null; _propArr = null; _unitArr = null; _bgArr = null; _excursion = null; _commandArr = null; _protagonistPlayer = null; _lens = null; _playerArr = null; _itemArr = null; _buildingArr = null; _stageSetting = null; _aiUnitClassArr = null; _buildingTactic = null; _aiWorkArr = null; } public function resetSelf():void{ _map.reInit(); _impactObjArr.splice(0); _propArr.splice(0); _unitArr.splice(0); _bgArr.splice(0); _commandArr.slice(0); _itemArr.splice(0); _buildingArr.splice(0); } public function get buildingPoint():int{ return (_buildingPoint); } public function get unitArr():Array{ return (_unitArr); } public function getCreatTime(_arg1:Class):int{ var _local2:Array; for each (_local2 in _creatTimeArr) { if (_local2[0] == _arg1){ return (_local2[1]); }; }; throw (new Error("找不到建造指定类单位的 时间...")); } public function get personAiUnitNum():int{ return (_personAiUnitNum); } public function set stageNum(_arg1:int):void{ _stageNum = _arg1; } public function get itemArr():Array{ return (_itemArr); } public function set protagonistPlayer(_arg1:PersonPlayer):void{ _protagonistPlayer = _arg1; } public function clearPlayerData():void{ var _local1:AbstractPlayer; for each (_local1 in Game.instance.gameData.playerArr) { _local1.clearSelf(); }; } public function minBuildingArr(_arg1:AbstractBuilding):void{ var _local2:uint; _local2 = _buildingArr.indexOf(_arg1); if (_local2 != -1){ _buildingArr.splice(_local2, 1); } else { throw (new Error("尝试删除建筑对象数组中不存在的对象...")); }; } public function addUnitArr(_arg1:AbstractUnit):void{ _unitArr.push(_arg1); } public function get map():Map{ return (_map); } public function addItemArr(_arg1:AbstractItem):void{ _itemArr.push(_arg1); } public function get stageSetting():StageSetting{ return (_stageSetting); } public function get mapSize():Point{ return (UiManager.instance.uiData.getMapSize(_stageNum)); } public function get enemyPlayer():AbstractPlayer{ return (_enemyPlayer); } public function minUnitArr(_arg1:AbstractUnit):void{ var _local2:uint; _local2 = _unitArr.indexOf(_arg1); if (_local2 != -1){ _unitArr.splice(_local2, 1); } else { throw (new Error("尝试删除主要对象数组中不存在的对象...")); }; } public function getAiWorkArr(_arg1:int):Boolean{ if (_aiWorkArr[_arg1.toString()] != null){ return (_aiWorkArr[_arg1.toString()]); }; return (true); } public function minItemArr(_arg1:AbstractItem):void{ var _local2:uint; _local2 = _itemArr.indexOf(_arg1); if (_local2 != -1){ _itemArr.splice(_local2, 1); } else { throw (new Error("尝试删除普通对象数组中不存在的对象...")); }; } public function addProp(_arg1:AbstractProp):void{ _propArr.push(_arg1); } public function minImpactObj(_arg1:AbstractItem):void{ var _local2:int; _local2 = _impactObjArr.indexOf(_arg1); if (_local2 != -1){ _impactObjArr.splice(_local2, 1); } else { throw (new Error("尝试删除碰撞数组中不存在的对象...")); }; } public function get gridWid():int{ return (_gridWid); } public function addBuildingArr(_arg1:AbstractBuilding):void{ _buildingArr.push(_arg1); } public function get stageNum():int{ return (_stageNum); } public function set map(_arg1:Map):void{ _map = _arg1; } public function get playerArr():Array{ return (_playerArr); } public function set mapMaster(_arg1:MapMaster):void{ _mapMaster = _arg1; } public function get aiUnitClassArr():Array{ return (_aiUnitClassArr); } public function set gameTime(_arg1:int):void{ _gameTime = _arg1; } public function get impactObjArr():Array{ return (_impactObjArr); } public function minProp(_arg1:AbstractProp):void{ var _local2:uint; _local2 = _propArr.indexOf(_arg1); if (_local2 != -1){ _propArr.splice(_local2, 1); } else { throw (new Error("尝试删除道具数组中不存在的道具...")); }; } public function get gameTime():int{ return (_gameTime); } public function get excursion():Point{ return (_excursion); } public function get bgArr():Array{ return (_bgArr); } public function get mapMaster():MapMaster{ return (_mapMaster); } public function set aiAnswerTime(_arg1:int):void{ _aiAnswerTime = _arg1; } public function get frameRate():int{ return (_frameRate); } public function get aiAnswerTime():int{ return (_aiAnswerTime); } public function set aiAttackPro(_arg1:Number):void{ _aiAttackPro = _arg1; } public function get aiAttackPro():Number{ return (_aiAttackPro); } } }//package code.game
Section 87
//GameEndFactory (code.game.GameEndFactory) package code.game { import code.system.*; public class GameEndFactory implements IFactory { private var _resourceArr:Array; private static var _resourceName:String; public function GameEndFactory(){ init(); } private function init():void{ _resourceArr = new Array(); _resourceArr["normalGameEndTactic"] = NormalGameEndTactic; } public function getResource():AbstractGameEndTactic{ var _local1:Class; _local1 = _resourceArr[_resourceName]; if (_local1 == null){ throw (new Error("找不到要创建的 结束游戏 策略...")); }; return (new (_local1)); } public static function set resourceName(_arg1:String):void{ _resourceName = _arg1; } } }//package code.game
Section 88
//GameEngine (code.game.GameEngine) package code.game { import flash.events.*; public class GameEngine extends EventDispatcher { private var _engineArr:Array; public function GameEngine(){ init(); } public function stop():void{ DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); } public function addEngine(_arg1:Function):void{ _engineArr.push(_arg1); } private function run():void{ var _local1:int; _local1 = 0; while (_local1 < _engineArr.length) { if (_engineArr[_local1] == nullFunc){ _engineArr.splice(_local1, 1); _local1--; } else { var _local2 = _engineArr; _local2[_local1](); }; _local1++; }; } public function indexEngine(_arg1:Function):Boolean{ if (_engineArr.indexOf(_arg1) != -1){ return (true); }; return (false); } private function init():void{ _engineArr = new Array(); } public function clearData():void{ _engineArr.splice(0); } public function start():void{ DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); } private function nullFunc():void{ } public function minEngine(_arg1:Function):void{ var _local2:int; _local2 = _engineArr.lastIndexOf(_arg1); if (_local2 != -1){ _engineArr[_local2] = nullFunc; }; } private function enterFrameHandle(_arg1:Event):void{ run(); } } }//package code.game
Section 89
//GameStartUiTactic (code.game.GameStartUiTactic) package code.game { import code.ui.*; public class GameStartUiTactic extends AbstractGametUiTactic { private var _tacticArr:Array; public function GameStartUiTactic(){ init(); } private function init():void{ _tacticArr = new Array(); _tacticArr["19"] = set0; _tacticArr["20"] = set0; } public function getTactic(_arg1:int):void{ if (_tacticArr[_arg1.toString()] != null){ var _local2 = _tacticArr; _local2[_arg1.toString()](); } else { setDefault(); }; } private function setDefault():void{ UiManager.instance.creatRootUi("BuyUnit"); Game.instance.gamePause(); } private function set0():void{ UiManager.instance.creatRootUi("Tutorial"); Game.instance.gamePause(); } } }//package code.game
Section 90
//GameTimeCounter (code.game.GameTimeCounter) package code.game { import flash.events.*; public class GameTimeCounter extends EventDispatcher { private var _pastSecond:Number; private var _needCountTime:int; private var _pastTime:int; private var _countBackNum:Function; public function GameTimeCounter(_arg1:int, _arg2:Boolean=false):void{ init(_arg1, _arg2); } public function stop():void{ Game.instance.gameEngine.minEngine(countTime); } private function countTime():void{ var _local1:Number; _local1 = new Date().getSeconds(); if (_local1 != _pastSecond){ _pastTime = (_pastTime + 1); this.dispatchEvent(new Event("_timeChange")); }; _pastSecond = _local1; if (_pastTime >= _needCountTime){ this.dispatchEvent(new Event("_timeOut")); }; } public function get leftTime():int{ return ((_needCountTime - _pastTime)); } private function init(_arg1:int, _arg2:Boolean):void{ _needCountTime = _arg1; if (_arg2){ _countBackNum = countDown; } else { _countBackNum = countUp; }; } private function countDown():String{ return (String((_needCountTime - _pastTime))); } public function get backTime():String{ return (_countBackNum()); } private function countUp():String{ return (String(((Math.floor((_pastTime / 60)) + ":") + (_pastTime % 60)))); } public function start():void{ Game.instance.gameEngine.addEngine(countTime); } public function pause():void{ Game.instance.gameEngine.minEngine(countTime); } } }//package code.game
Section 91
//Lens (code.game.Lens) package code.game { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class Lens { private var _lensUnitPlayer:PersonPlayer; private var _height:int; private var _bgWide:int; private var _boundaryArr:Array; private var _xPos:Number; private var _bgHeight:int; private var _wide:int; private var _yPos:Number; public function Lens(_arg1:int, _arg2:int){ init(_arg1, _arg2); } public function stop():void{ Game.instance.gameEngine.minEngine(lensControl); } public function set lensUnitPlayer(_arg1:PersonPlayer):void{ _lensUnitPlayer = _arg1; } public function set height(_arg1:int):void{ _height = _arg1; } private function init(_arg1:int, _arg2:int):void{ _wide = _arg1; _height = _arg2; _boundaryArr = new Array(); } public function get wide():int{ return (_wide); } public function resetLensPos():void{ } public function initBoundary():void{ var _local1:Rectangle; _local1 = DisplayManager.instance.bgContainer.getBounds(DisplayManager.instance.itemContainer); _boundaryArr[0] = (0 - (Game.instance.gameData.mapInitPos.x * Game.instance.gameData.gridWid)); _boundaryArr[1] = (_boundaryArr[0] + _wide); _boundaryArr[2] = (0 - (Game.instance.gameData.mapInitPos.y * Game.instance.gameData.gridWid)); _boundaryArr[3] = (_boundaryArr[2] + _height); DisplayManager.instance.gameMainContainer.x = (DisplayManager.instance.gameMainContainer.x - (Game.instance.gameData.mapInitPos.x * Game.instance.gameData.gridWid)); DisplayManager.instance.gameMainContainer.y = (DisplayManager.instance.gameMainContainer.y - (Game.instance.gameData.mapInitPos.y * Game.instance.gameData.gridWid)); _bgHeight = _local1.height; _bgWide = _local1.width; } public function get yPos():Number{ return (((_yPos + (_height / 2)) - Game.instance.gameData.excursion.y)); } public function set wide(_arg1:int):void{ _wide = _arg1; } public function get height():int{ return (_height); } public function setInitPos(_arg1:Number, _arg2:Number):void{ new Point((this.xPos - _arg1), (this.yPos - _arg2)); this.xPos = _arg1; this.yPos = _arg2; } public function set xPos(_arg1:Number):void{ _xPos = ((_arg1 - (_wide / 2)) + Game.instance.gameData.excursion.x); } public function clearSelf():void{ if (Game.instance.gameEngine.indexEngine(lensControl)){ throw (new Error("在运行中无法进行清除操作...")); }; _lensUnitPlayer = null; } public function play():void{ if (_lensUnitPlayer == null){ throw (new Error("_lensUnitPlayer为空,无法正常启动镜头控制...")); }; Game.instance.gameEngine.addEngine(lensControl); } public function get xPos():Number{ return (((_xPos + (_wide / 2)) - Game.instance.gameData.excursion.x)); } public function set yPos(_arg1:Number):void{ _yPos = ((_arg1 - (_height / 2)) + Game.instance.gameData.excursion.y); } private function lensControl():void{ var _local1:AbstractUnit; var _local2:Number; _local1 = _lensUnitPlayer.commanderArr[0].controlObj; if (_local1.xPos > this.xPos){ _local2 = (_local1.xPos - this.xPos); if (((DisplayManager.instance.gameMainContainer.x + _bgWide) - _local2) > _boundaryArr[1]){ this.xPos = (this.xPos + _local2); DisplayManager.instance.gameMainContainer.x = (DisplayManager.instance.gameMainContainer.x - _local2); } else { if ((DisplayManager.instance.gameMainContainer.x + _bgWide) > _boundaryArr[1]){ _local2 = ((DisplayManager.instance.gameMainContainer.x + _bgWide) - _boundaryArr[1]); this.xPos = (this.xPos + _local2); DisplayManager.instance.gameMainContainer.x = (DisplayManager.instance.gameMainContainer.x - _local2); }; }; } else { if (_local1.xPos < this.xPos){ _local2 = (this.xPos - _local1.xPos); if ((DisplayManager.instance.gameMainContainer.x + _local2) < _boundaryArr[0]){ this.xPos = (this.xPos - _local2); DisplayManager.instance.gameMainContainer.x = (DisplayManager.instance.gameMainContainer.x + _local2); } else { if (DisplayManager.instance.gameMainContainer.x < _boundaryArr[0]){ _local2 = (_boundaryArr[0] - DisplayManager.instance.gameMainContainer.x); this.xPos = (this.xPos - _local2); DisplayManager.instance.gameMainContainer.x = (DisplayManager.instance.gameMainContainer.x + _local2); }; }; }; }; if (_local1.yPos > this.yPos){ _local2 = (_local1.yPos - this.yPos); if (((DisplayManager.instance.gameMainContainer.y + _bgHeight) - _local2) > _boundaryArr[3]){ this.yPos = (this.yPos + _local2); DisplayManager.instance.gameMainContainer.y = (DisplayManager.instance.gameMainContainer.y - _local2); } else { if ((DisplayManager.instance.gameMainContainer.y + _bgHeight) > _boundaryArr[3]){ _local2 = ((DisplayManager.instance.gameMainContainer.y + _bgHeight) - _boundaryArr[3]); this.yPos = (this.yPos + _local2); DisplayManager.instance.gameMainContainer.y = (DisplayManager.instance.gameMainContainer.y - _local2); }; }; } else { if (_local1.yPos < this.yPos){ _local2 = (this.yPos - _local1.yPos); if ((DisplayManager.instance.gameMainContainer.y + _local2) < _boundaryArr[2]){ this.yPos = (this.yPos - _local2); DisplayManager.instance.gameMainContainer.y = (DisplayManager.instance.gameMainContainer.y + _local2); } else { if (DisplayManager.instance.gameMainContainer.y < _boundaryArr[2]){ _local2 = (_boundaryArr[2] - DisplayManager.instance.gameMainContainer.y); this.yPos = (this.yPos - _local2); DisplayManager.instance.gameMainContainer.y = (DisplayManager.instance.gameMainContainer.y + _local2); }; }; }; }; } } }//package code.game
Section 92
//MoveControlCenter (code.game.MoveControlCenter) package code.game { import code.game.mainItem.*; import code.game.prop.*; public class MoveControlCenter { private var _unitImpactTactic:UnitImpactTactic; private var _moveObj:Array; private var _cannonballImpactTactic:CannonballImpactTactic; public function MoveControlCenter(){ init(); } public function clearSelf():void{ _moveObj.splice(0); } public function addMoveObj(_arg1:AbstractItem):void{ _moveObj.push(_arg1); } public function get moveObj():Array{ return (_moveObj); } public function stop():void{ Game.instance.gameEngine.minEngine(move); } private function init():void{ _moveObj = new Array(); _unitImpactTactic = new UnitImpactTactic(); _cannonballImpactTactic = new CannonballImpactTactic(); } private function move():void{ var _local1:int; _local1 = (moveObj.length - 1); while (_local1 > -1) { if ((_moveObj[_local1] as AbstractUnit)){ _unitImpactTactic.impactTactic(_moveObj[_local1]); } else { if ((_moveObj[_local1] as AbstractCannonball)){ _cannonballImpactTactic.impactTactic(AbstractCannonball(_moveObj[_local1])); }; }; _local1--; }; } public function minMoveObj(_arg1:AbstractItem):void{ var _local2:int; _local2 = _moveObj.indexOf(_arg1); if (_local2 != -1){ _moveObj.splice(_local2, 1); } else { throw (new Error("尝试删除移动数组中不存在的对象...")); }; } public function play():void{ Game.instance.gameEngine.addEngine(move); } } }//package code.game
Section 93
//NormalCountPoint (code.game.NormalCountPoint) package code.game { public class NormalCountPoint extends AbstractCountPoint { private var _timePoint:int; private var _killPoint:int; private var _killNumArr:Array; public function NormalCountPoint(){ init(); } override public function get timePoint():int{ return ((Game.instance.gameData.gameTimeCounter.leftTime * _timePoint)); } override public function getKillPoint(_arg1:String):int{ return ((_killNumArr[_arg1] * Game.instance.gameData.killPointArr[_arg1])); } override public function get levelPoint():int{ return ((Game.instance.gameData.protagonistPlayer.buildingPoint + _killPoint)); } override public function setLevelPoint():void{ var _local1:String; var _local2:int; for each (_local1 in Game.instance.gameData.protagonistPlayer.killArr) { _killNumArr[_local1] = (_killNumArr[_local1] + 1); _killPoint = (_killPoint + Game.instance.gameData.killPointArr[_local1]); }; _local2 = this.levelPoint; Game.instance.gameData.protagonistPlayer.totalPoint = (Game.instance.gameData.protagonistPlayer.totalPoint + _local2); } override protected function init():void{ _timePoint = 10; _killNumArr = new Array(); _killNumArr["tank"] = 0; _killNumArr["soldier"] = 0; _killNumArr["recon"] = 0; _killNumArr["heavyTank"] = 0; _killNumArr["demon"] = 0; _killNumArr["artillery"] = 0; _killNumArr["defenceTower"] = 0; } override public function get moneyPoint():int{ return (Game.instance.gameData.protagonistPlayer.money); } override public function get killNumArr():Array{ return (_killNumArr); } override public function get buildingPoint():int{ return (Game.instance.gameData.protagonistPlayer.buildingPoint); } } }//package code.game
Section 94
//NormalGameEndTactic (code.game.NormalGameEndTactic) package code.game { import code.ui.*; import code.system.*; public class NormalGameEndTactic extends AbstractGameEndTactic { private function standardGameEndFlowStepOne():void{ var _local1:GameInterFace; Game.instance.gameEngine.stop(); Game.instance.gameEngine.clearData(); Game.instance.gameData.gameTimeCounter.stop(); Game.instance.gameData.lens.stop(); _local1 = GameInterFace(UiManager.instance.getUi("gameInterFace")); _local1.display = false; _local1.clearSelf(); UiManager.instance.clearCreatedUi(_local1); } override public function winDispose():void{ var _local1:AbstractCountPoint; var _local2:LevelComplete; var _local3:AbstractPlayer; standardGameEndFlowStepOne(); CountPointFactory.resourceName = "normalCountPoint"; _local1 = new CountPointFactory().getResource(); _local1.setLevelPoint(); _local2 = LevelComplete(UiManager.instance.creatRootUi("LevelComplete", new WinCompleteTactic())); _local2.soldier = _local1.killNumArr["soldier"]; _local2.tank = _local1.killNumArr["tank"]; _local2.heavyTank = _local1.killNumArr["heavyTank"]; _local2.recon = _local1.killNumArr["recon"]; _local2.demon = _local1.killNumArr["demon"]; _local2.artillery = _local1.killNumArr["artillery"]; _local2.defenceTower = _local1.killNumArr["defenceTower"]; _local2.soldierPoint = _local1.getKillPoint("soldier"); _local2.tankPoint = _local1.getKillPoint("tank"); _local2.heavyTankPoint = _local1.getKillPoint("heavyTank"); _local2.reconPoint = _local1.getKillPoint("recon"); _local2.demonPoint = _local1.getKillPoint("demon"); _local2.artilleryPoint = _local1.getKillPoint("artillery"); _local2.defenceTowerPoint = _local1.getKillPoint("defenceTower"); _local2.buildingPoint = _local1.buildingPoint; _local2.level = _local1.levelPoint; _local2.total = Game.instance.gameData.protagonistPlayer.totalPoint; UiManager.instance.uiData.stageDescribe[UiManager.instance.uiData.stageNum][2] = true; UiManager.instance.uiData.resetStageData(); if (UiManager.instance.uiData.hideStageTactic.changeStageHide(UiManager.instance.uiData.stageNum)){ _local2.playHideInfo(); }; UiManager.instance.uiData.hideUnitTactic.changeUnitHide(); standardGameEndFlowStepTwo(); for each (_local3 in Game.instance.gameData.playerArr) { _local3.reInit(); }; Game.instance.gameData.resetSelf(); if (Game.instance.gameData.stageNum == 1){ if (!UiManager.instance.uiData.levelOneComplete){ DocumentClass.instance._tracker.trackEvent("Tank Tactics", "level 1 completed", "per session", 0); UiManager.instance.uiData.levelOneComplete = true; }; } else { if (Game.instance.gameData.stageNum == 18){ if (!UiManager.instance.uiData.allLevelComplete){ DocumentClass.instance._tracker.trackEvent("Tank Tactics", "game completed", "per session", 0); UiManager.instance.uiData.allLevelComplete = true; }; }; }; } private function standardGameEndFlowStepTwo():void{ Game.instance.gameData.clearGameData(); Game.instance.moveControlCenter.clearSelf(); DisplayManager.instance.clearGameContainer(); } override public function standardGameEndFlowStepThree():void{ Game.instance.gameData.clearPlayerData(); Game.instance.gameData.clearSelf(); Game.instance.clearSelf(); } override public function lostDispose():void{ var _local1:AbstractCountPoint; var _local2:GameOver; standardGameEndFlowStepOne(); CountPointFactory.resourceName = "normalCountPoint"; _local1 = new CountPointFactory().getResource(); _local1.setLevelPoint(); standardGameEndFlowStepTwo(); _local2 = GameOver(UiManager.instance.creatRootUi("GameOver")); _local2.score = Game.instance.gameData.protagonistPlayer.totalPoint; } } }//package code.game
Section 95
//Person (code.game.Person) package code.game { import flash.events.*; import code.ui.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class Person extends Commander { protected var _upKey:int; protected var _rightKey:int; protected var _movArr:Array; protected var _power:CoordinateVector; protected var _bombKeyUp:Boolean; protected var _bombKey:int; protected var _rightStage:Boolean; protected var _upStage:Boolean; protected var _downKey:int; protected var _leftKey:int; protected var _leftStage:Boolean; protected var _downStage:Boolean; public function Person():void{ init(); } override public function clearSelf():void{ pasueListener(); _controlObj.removeEventListener("_Death", deathHandle); _controlObj.removeEventListener("_Pause", pauseHandle); _controlObj = null; _movArr = null; _power = null; } override public function pasueListener():void{ DocumentClass.instance.stage.removeEventListener(KeyboardEvent.KEY_DOWN, DownHandle); DocumentClass.instance.stage.removeEventListener(KeyboardEvent.KEY_UP, UpHandle); Game.instance.gameEngine.minEngine(addPowerToObj); clearMoveStage(); } protected function deathHandle(_arg1:Event):void{ this.pasueListener(); _controlObj.removeEventListener("_Death", deathHandle); _controlObj.removeEventListener("_Pause", pauseHandle); _controlObj = null; _power = null; _movArr.splice(0); } protected function init():void{ clearMoveStage(); initKey(); Game.instance.gameData.commandArr.push(this); } protected function UpHandle(_arg1:KeyboardEvent):void{ if (_controlObj != null){ switch (_arg1.keyCode){ case _leftKey: _leftStage = false; moveStop("left"); break; case _upKey: _upStage = false; moveStop("up"); break; case _rightKey: _rightStage = false; moveStop("right"); break; case _downKey: _downStage = false; moveStop("down"); break; case _bombKey: _bombKeyUp = true; break; }; }; } private function moveStop(_arg1:String):void{ var _local2:int; _local2 = _movArr.indexOf(_arg1); if (_local2 != -1){ _movArr.splice(_local2, 1); }; if (_movArr.length == 0){ _power.coordinate = new Point(0, 0); _controlObj.stop(); } else { switch (String(_movArr.slice(-1))){ case "left": _controlObj.turning("left"); _power.coordinate = new Point(-(_controlObj.velocity), 0); break; case "up": _controlObj.turning("up"); _power.coordinate = new Point(0, -(_controlObj.velocity)); break; case "right": _controlObj.turning("right"); _power.coordinate = new Point(_controlObj.velocity, 0); break; case "down": _controlObj.turning("down"); _power.coordinate = new Point(0, _controlObj.velocity); break; }; }; } function set upKey(_arg1:int):void{ _upKey = _arg1; } function set bombKey(_arg1:int):void{ _bombKey = _arg1; } override protected function clearMoveStage():void{ _upStage = false; _downStage = false; _leftStage = false; _rightStage = false; _movArr = new Array(); _power = new CoordinateVector(); } protected function DownHandle(_arg1:KeyboardEvent):void{ if (_controlObj != null){ switch (_arg1.keyCode){ case _leftKey: if (!_leftStage){ if (_controlObj.direct != "left"){ _controlObj.turning("left"); } else { _controlObj.play(); }; _movArr.push("left"); _power.coordinate = new Point(-(_controlObj.velocity), 0); _leftStage = true; }; break; case _upKey: if (!_upStage){ if (_controlObj.direct != "up"){ _controlObj.turning("up"); } else { _controlObj.play(); }; _movArr.push("up"); _power.coordinate = new Point(0, -(_controlObj.velocity)); _upStage = true; }; break; case _rightKey: if (!_rightStage){ if (_controlObj.direct != "right"){ _controlObj.turning("right"); } else { _controlObj.play(); }; _movArr.push("right"); _power.coordinate = new Point(_controlObj.velocity, 0); _rightStage = true; }; break; case _downKey: if (!_downStage){ if (_controlObj.direct != "down"){ _controlObj.turning("down"); } else { _controlObj.play(); }; _movArr.push("down"); _power.coordinate = new Point(0, _controlObj.velocity); _downStage = true; }; break; case _bombKey: if (_bombKeyUp){ _controlObj.actionKeyHandle(); _bombKeyUp = false; }; break; }; }; } override public function reInit():void{ clearMoveStage(); } function set downKey(_arg1:int):void{ _downKey = _arg1; } function set rightKey(_arg1:int):void{ _rightKey = _arg1; } protected function initKey():void{ this.bombKey = UiManager.instance.uiData.onePOneBombDate; this.leftKey = UiManager.instance.uiData.onePOneLeftDate; this.rightKey = UiManager.instance.uiData.onePOneRightDate; this.upKey = UiManager.instance.uiData.onePOneUpDate; this.downKey = UiManager.instance.uiData.onePOneDownDate; _bombKeyUp = true; } override public function set controlObj(_arg1:AbstractUnit):void{ _controlObj = _arg1; _controlObj.addEventListener("_Death", deathHandle, false, 0, true); _controlObj.addEventListener("_Pause", pauseHandle, false, 0, true); this.startListener(); } override public function startListener():void{ DocumentClass.instance.stage.addEventListener(KeyboardEvent.KEY_DOWN, DownHandle); DocumentClass.instance.stage.addEventListener(KeyboardEvent.KEY_UP, UpHandle); Game.instance.gameEngine.addEngine(addPowerToObj); } function set leftKey(_arg1:int):void{ _leftKey = _arg1; } protected function pauseHandle(_arg1:Event):void{ pasueListener(); } public function addPowerToObj():void{ _controlObj.addPower(_power); } } }//package code.game
Section 96
//PersonPlayer (code.game.PersonPlayer) package code.game { import flash.events.*; import flash.display.*; import code.ui.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class PersonPlayer extends AbstractPlayer { private var _produceBaseNum:int; private var _keyChosMc:MovieClip; private var _portArr:Array; private var _aiCommanderArr:Array; private var _aiUnitArr:Array; public function PersonPlayer(){ init(); } override public function set money(_arg1:int):void{ super.money = _arg1; GameInterFace(UiManager.instance.getUi("gameInterFace")).money = _money; if (UiManager.instance.getUi("buyUnit") != null){ BuyUnit(UiManager.instance.getUi("buyUnit")).personMoney = _arg1; }; } private function getCreatPos():Point{ var _local1:AbstractBuilding; var _local2:int; var _local3:int; var _local4:int; _produceBaseNum = (_produceBaseArr.length - 1); _local1 = _produceBaseArr[_produceBaseNum]; _local2 = 0; while (_local2 < Game.instance.gameData.mapSize.x) { _local3 = -(_local2); while (_local3 < (_local2 + 1)) { _local4 = -(_local2); while (_local4 < (_local2 + 1)) { if (juedeCreatPos(new Point((_local1.xGrid + _local3), (_local1.yGrid + _local4)))){ return (new Point((_local1.xGrid + _local3), (_local1.yGrid + _local4))); }; _local4++; }; _local3++; }; _local2++; }; return (new Point(0, 0)); } private function init():void{ _unitArr = new Array(); _produceBaseArr = new Array(); _personUnitArr = new Array(); _commanderArr = new Array(); _portArr = new Array(); _aiCommanderArr = new Array(); _aiUnitArr = new Array(); _money = 7000; GameInterFace(UiManager.instance.getUi("gameInterFace")).money = _money; _killArr = new Array(); } override public function set killPoint(_arg1:int):void{ var _local2:GameInterFace; var _local3:int; _local2 = GameInterFace(UiManager.instance.getUi("gameInterFace")); _local3 = ((int(_local2.score) + _arg1) - _killPoint); _local2.score = _local3; _killPoint = _arg1; } public function get totalPoint():int{ return (_totalPoint); } override public function creatUnit():void{ if (UnitCreater(_personUnitArr[0]).creatEnd){ chosUnitCreatPos(); } else { UnitCreater(_personUnitArr[0]).addEventListener("creatEnd", creatEndHandle, false, 0, true); }; } private function keyDownHandle(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case 9: _produceBaseNum++; if (_produceBaseNum == _produceBaseArr.length){ _produceBaseNum = 0; }; _keyChosMc.x = (_produceBaseArr[_produceBaseNum].xPos + Game.instance.gameData.excursion.x); _keyChosMc.y = (_produceBaseArr[_produceBaseNum].yPos + Game.instance.gameData.excursion.y); break; case 32: DisplayManager.instance.removeChild(_keyChosMc); _keyChosMc = null; instantiationUnit(); _produceBaseNum = 0; DocumentClass.instance.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandle); break; }; } private function juedeCreatPos(_arg1:Point):Boolean{ var _local2:AbstractUnit; for each (_local2 in Game.instance.gameData.unitArr) { if ((((_arg1.x == _local2.xGrid)) && ((_arg1.y == _local2.yGrid)))){ return (false); }; }; if (Game.instance.gameData.map.getItem(_arg1.x, _arg1.y) != null){ if ((Game.instance.gameData.map.getItem(_arg1.x, _arg1.y) as AbstractBuilding)){ return (true); }; } else { return (true); }; return (false); } override public function clearSelf():void{ _unitArr = null; _produceBaseArr = null; _keyChosMc = null; _commanderArr = null; _personUnitArr = null; _portArr = null; _aiCommanderArr = null; _aiUnitArr = null; } override public function addPort(_arg1:AbstractBuilding):void{ _portArr.push(_arg1); insAiUnit(new Point(_arg1.xGrid, _arg1.yGrid)); } override public function clearPoint():void{ _money = 0; _killPoint = 0; _totalPoint = 0; } private function chosUnitCreatPos():void{ instantiationUnit(); } override public function reInit():void{ _produceBaseArr.splice(0); _keyChosMc = null; _produceBaseNum = 0; _personUnitArr.splice(0); _portArr.splice(0); _aiCommanderArr.splice(0); _aiUnitArr.splice(0); _money = 7000; _killArr.splice(0); } public function set totalPoint(_arg1:int):void{ _totalPoint = _arg1; } private function creatEndHandle(_arg1:Event):void{ chosUnitCreatPos(); } override public function renascence(_arg1:AbstractUnit):void{ var _local2:GameInterFace; var _local3:int; var _local4:Port; if (_unitArr.indexOf(_arg1) != -1){ _local2 = GameInterFace(UiManager.instance.getUi("gameInterFace")); _local3 = _local2.btnArr.indexOf(UnitCreater(_personUnitArr[0]).mc); _local2.changeBtnMc(_local3, "normal"); UnitCreater(_personUnitArr[0]).clearSelf(); _personUnitArr.splice(0, 1); Game.instance.gameData.lens.stop(); Game.instance.gameData.lens.resetLensPos(); if (Game.instance.gameData.stageSetting.getStageMask(Game.instance.gameData.stageNum)){ DisplayManager.instance.maskerManaer.stop(); DisplayManager.instance.maskerManaer.clearMaskUnit(_arg1); }; if (_personUnitArr.length != 0){ creatUnit(); } else { UiManager.instance.creatRootUi("BuyUnit"); }; } else { if (_aiUnitArr.indexOf(_arg1) != -1){ if (Game.instance.gameData.stageSetting.getStageMask(Game.instance.gameData.stageNum)){ DisplayManager.instance.maskerManaer.clearMaskUnit(_arg1); }; if (_portArr.length != 0){ _local4 = _portArr[Math.floor((Math.random() * _portArr.length))]; insAiUnit(new Point(_local4.xGrid, _local4.yGrid)); }; }; }; } private function instantiationUnit():void{ var unit:AbstractUnit; var commander:Person; var creatPos:Point; var creatLight:MovieClip; var judgeLightMc:Function; unit = new UnitCreater(_personUnitArr[0]).className(_unitMcNum); if (_commanderArr.length == 0){ commander = new Person(); _commanderArr.push(commander); } else { commander = _commanderArr[0]; commander.reInit(); }; unit.player = this; creatPos = getCreatPos(); unit.xPos = ((creatPos.x * Game.instance.gameData.gridWid) + (unit.wide / 2)); unit.yPos = ((creatPos.y * Game.instance.gameData.gridWid) + (unit.height / 2)); commander.controlObj = unit; commander.pasueListener(); Game.instance.gameData.lens.play(); unit.mc.alpha = 0.3; creatLight = DisplayManager.instance.getDefinition("creatLight"); creatLight.x = (((creatPos.x * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.x); creatLight.y = (((creatPos.y * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.y); judgeLightMc = function ():void{ unit.mc.alpha = (unit.mc.alpha + 0.05); if (creatLight.currentFrame == creatLight.totalFrames){ unit.mc.alpha = 1; DisplayManager.instance.removeChild(creatLight); Game.instance.gameEngine.minEngine(judgeLightMc); _unitArr.push(unit); Game.instance.gameData.addUnitArr(unit); Game.instance.moveControlCenter.addMoveObj(unit); if (Game.instance.gameData.stageSetting.getStageMask(Game.instance.gameData.stageNum)){ DisplayManager.instance.maskerManaer.addMoveMaskObj(unit); DisplayManager.instance.maskerManaer.start(); }; commander.startListener(); }; }; Game.instance.gameEngine.addEngine(judgeLightMc); DisplayManager.instance.addChild(creatLight, DisplayManager.instance.skyContainer); } private function insAiUnit(_arg1:Point):void{ var unitClass:Class; var unit:AbstractUnit; var useExsitAI:Boolean; var commander:AI; var ai:AI; var creatLight:MovieClip; var judgeLightMc:Function; var pos = _arg1; unitClass = Game.instance.gameData.aiUnitClassArr[Math.floor((Math.random() * Game.instance.gameData.aiUnitClassArr.length))]; unit = new unitClass(Game.instance.gameData.personAiUnitNum); for each (ai in _aiCommanderArr) { if (ai.controlObj == null){ commander = ai; ai.reInit(); ai.controlObj = unit; ai.decision.setAction("attack"); useExsitAI = true; }; }; if (!useExsitAI){ commander = new AI(); _aiCommanderArr.push(commander); commander.controlObj = unit; commander.decision.setAction("attack"); }; commander.pasueListener(); unit.player = this; unit.xPos = ((pos.x * Game.instance.gameData.gridWid) + (unit.wide / 2)); unit.yPos = ((pos.y * Game.instance.gameData.gridWid) + (unit.height / 2)); unit.mc.alpha = 0.3; creatLight = DisplayManager.instance.getDefinition("creatLight"); creatLight.x = (((pos.x * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.x); creatLight.y = (((pos.y * Game.instance.gameData.gridWid) + (Game.instance.gameData.gridWid / 2)) + Game.instance.gameData.excursion.y); judgeLightMc = function ():void{ unit.mc.alpha = (unit.mc.alpha + 0.05); if (creatLight.currentFrame == creatLight.totalFrames){ unit.mc.alpha = 1; DisplayManager.instance.removeChild(creatLight); Game.instance.gameEngine.minEngine(judgeLightMc); _aiUnitArr.push(unit); Game.instance.gameData.addUnitArr(unit); Game.instance.moveControlCenter.addMoveObj(unit); if (Game.instance.gameData.stageSetting.getStageMask(Game.instance.gameData.stageNum)){ DisplayManager.instance.maskerManaer.addMoveMaskObj(unit); }; commander.startListener(); }; }; Game.instance.gameEngine.addEngine(judgeLightMc); DisplayManager.instance.addChild(creatLight, DisplayManager.instance.skyContainer); } override public function set buildingPoint(_arg1:int):void{ var _local2:GameInterFace; var _local3:int; _local2 = GameInterFace(UiManager.instance.getUi("gameInterFace")); _local3 = ((int(_local2.score) + _arg1) - _buildingPoint); _local2.score = _local3; _buildingPoint = _arg1; } } }//package code.game
Section 97
//PropImpactHandle (code.game.PropImpactHandle) package code.game { import code.game.mainItem.*; import code.game.prop.*; public class PropImpactHandle extends AbstractImpactHandle { public function impactHandle(_arg1:AbstractItem, _arg2:AbstractItem):void{ if ((AbstractUnit(_arg1).player as PersonPlayer)){ AbstractProp(_arg2).eatedHandle(AbstractUnit(_arg1)); }; } } }//package code.game
Section 98
//RestartGameBuilder (code.game.RestartGameBuilder) package code.game { import flash.events.*; import code.system.*; public class RestartGameBuilder extends AbstractGameBuilder { override public function dataInit():void{ Game.instance.gameData.gameTime = 500; Game.instance.moveControlCenter.play(); Game.instance.gameData.enemyPlayer.personUnitArr = Game.instance.gameData.stageSetting.getAiUnitArr(Game.instance.gameData.stageNum); } override public function displayInit():void{ DisplayManager.instance.displayInit(); } override public function mapInit():void{ Game.instance.gameData.mapMaster.addEventListener("_mapCreatComplete", mapCreatCompleteHandle); Game.instance.gameData.mapMaster.reInit(); Game.instance.gameData.mapMaster.creatMapObj(); Game.instance.gameData.lens.initBoundary(); } private function mapCreatCompleteHandle(_arg1:Event):void{ Game.instance.gameData.mapMaster.removeEventListener("_mapCreatComplete", mapCreatCompleteHandle); this.dispatchEvent(new Event("_mapLoadComplete")); } override public function robotInit():void{ Game.instance.gameData.enemyPlayer.creatUnit(); } } }//package code.game
Section 99
//SimpleRectangleImpactJudge (code.game.SimpleRectangleImpactJudge) package code.game { import flash.geom.*; import code.game.mainItem.*; public class SimpleRectangleImpactJudge extends AbstractImpactJudge { private var _radianArr:Array; private var _impactRec:Rectangle; public function SimpleRectangleImpactJudge(){ _radianArr = new Array(0, (Math.PI / 2), Math.PI, ((Math.PI / 2) * 3)); } override public function impactCheck(_arg1:AbstractItem, _arg2:AbstractItem):Boolean{ if (rotationCheck(_arg1, _arg2)){ return (true); }; return (false); } override public function get impactRec():Rectangle{ return (_impactRec); } private function rotationCheck(_arg1:AbstractItem, _arg2:AbstractItem):Boolean{ var _local3:Number; var _local4:Boolean; var _local5:Boolean; _local3 = (_arg2.rotation - _arg1.rotation); _local4 = judgeLimitImpact(_arg1, countPointPos(_arg2, _local3)); _local3 = (_arg1.rotation - _arg2.rotation); _local5 = judgeLimitImpact(_arg2, countPointPos(_arg1, _local3)); if (((_local4) && (_local5))){ return (true); }; return (false); } private function judgeLimitImpact(_arg1:AbstractItem, _arg2:Array):Boolean{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Rectangle; _local3 = (_arg1.xPos - (_arg1.wide / 2)); _local4 = (_arg1.xPos + (_arg1.wide / 2)); _local5 = (_arg1.yPos - (_arg1.height / 2)); _local6 = (_arg1.yPos + (_arg1.height / 2)); if ((((((((_arg2[0] >= _local3)) && ((_arg2[1] <= _local4)))) && ((_arg2[2] >= _local5)))) && ((_arg2[3] <= _local6)))){ _local7 = new Rectangle(); if (_arg2[1] > _local3){ _local7.x = _arg2[1]; } else { _local7.x = _local3; }; if (_arg2[0] > _local4){ _local7.width = (_local4 - _local7.x); } else { _local7.width = (_arg2[0] - _local7.x); }; if (_arg2[3] > _local5){ _local7.y = _arg2[3]; } else { _local7.y = _local5; }; if (_arg2[2] > _local6){ _local7.height = (_local6 - _local7.y); } else { _local7.height = (_arg2[2] - _local7.y); }; _impactRec = _local7; return (true); }; return (false); } public function countPointPos(_arg1:AbstractItem, _arg2:Number):Array{ var _local3:Array; var _local4:Array; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Point; var _local13:Number; var _local14:Number; _local3 = new Array(); _local4 = new Array(); _local5 = (Math.sqrt(((_arg1.wide * _arg1.wide) + (_arg1.height * _arg1.height))) / 2); _local6 = Math.atan((_arg1.height / _arg1.wide)); for each (_local7 in _radianArr) { _local13 = ((Math.sin(((_local6 + _local7) + _arg2)) * _local5) + _arg1.yPos); _local14 = ((Math.cos(((_local6 + _local7) + _arg2)) * _local5) + _arg1.xPos); _local3.push(new Point(_local14, _local13)); }; _local8 = _local3[0].x; _local9 = _local3[0].x; _local10 = _local3[0].y; _local11 = _local3[0].y; for each (_local12 in _local3) { if (_local12.x >= _local8){ _local8 = _local12.x; } else { if (_local12.x <= _local9){ _local9 = _local12.x; }; }; if (_local12.y >= _local10){ _local10 = _local12.y; } else { if (_local12.y <= _local11){ _local11 = _local12.y; }; }; }; _local4.push(_local8, _local9, _local10, _local11); return (_local4); } } }//package code.game
Section 100
//StageSetting (code.game.StageSetting) package code.game { import code.system.*; import code.game.mainItem.*; public class StageSetting { private var _stageMaskArr:Array; private var _aiUnitArr:Array; public function StageSetting(){ init(); } public function get userDefinedUnit():Array{ return (_aiUnitArr[0]); } public function setStageMask(_arg1:int):void{ if (_stageMaskArr[_arg1]){ DisplayManager.instance.maskerManaer = new MaskerManager(); DisplayManager.instance.maskerManaer.setBg(DisplayManager.instance.itemContainer, DisplayManager.instance.bgContainer.getBounds(DisplayManager.instance.itemContainer)); DisplayManager.instance.maskerManaer.setMask(DisplayManager.instance.unitContainer); }; } private function init():void{ _aiUnitArr = new Array(); _aiUnitArr[0] = new Array(); _aiUnitArr[1] = new Array(Recon, Tank, Recon, Tank, Recon, Recon, Tank, Recon, Recon, Tank, Tank, Recon); _aiUnitArr[2] = new Array(Recon, Recon, Tank, Soldier, Recon, Tank, Tank, Tank, Recon, Tank, Soldier, Recon, Tank); _aiUnitArr[3] = new Array(Recon, Recon, Soldier, Recon, Recon, Tank, Tank, Recon, Recon, Tank, Recon, Tank, Soldier, Recon, Tank); _aiUnitArr[4] = new Array(Tank, Recon, Soldier, Tank, Recon, Tank, Tank, Tank, Recon, Tank, Tank, Tank, Recon, Tank, Recon, Tank, Tank, Tank); _aiUnitArr[5] = new Array(Tank, Recon, Soldier, Tank, Recon, Soldier, Tank, Tank, Recon, Tank, Soldier, Tank, Recon, Tank, Tank, Tank, Recon, Tank); _aiUnitArr[6] = new Array(Soldier, Recon, Tank, Soldier, HeavyTank, Tank, HeavyTank, Tank, Recon, Tank, Tank, Soldier, HeavyTank, Tank, HeavyTank, Tank, Recon, Tank, HeavyTank, HeavyTank); _aiUnitArr[7] = new Array(Soldier, Recon, Soldier, Recon, Soldier, Tank, Tank, Recon, Tank, Recon, Tank, Recon, Soldier); _aiUnitArr[8] = new Array(Soldier, Recon, Tank, Recon, Artillery, HeavyTank, Tank, Artillery, Recon, Tank, HeavyTank, Recon, Tank, Artillery, Tank, Tank); _aiUnitArr[9] = new Array(Recon, Recon, Soldier, Soldier, Tank, Artillery, HeavyTank, Artillery, Tank, Artillery, Tank, Tank, Artillery, Tank, Tank, HeavyTank, Recon); _aiUnitArr[10] = new Array(Soldier, Soldier, Soldier, Recon, Recon, Tank, Recon, Artillery, HeavyTank, Tank, HeavyTank, Artillery, Tank, HeavyTank, HeavyTank, HeavyTank, Artillery, Tank, HeavyTank); _aiUnitArr[11] = new Array(Tank, Soldier, Recon, Soldier, HeavyTank, Tank, Artillery, Tank, Tank, HeavyTank, Tank, Artillery, Demon, Tank, Tank, Artillery, Tank, HeavyTank, Tank, Demon, HeavyTank, HeavyTank, Tank, Demon); _aiUnitArr[12] = new Array(Tank, Recon, HeavyTank, Artillery, Tank, Artillery, Demon, Tank, Tank, Artillery, Tank, HeavyTank, Tank, Demon, HeavyTank, HeavyTank, Tank, Demon, Tank, Recon, HeavyTank, Artillery, Tank, Artillery, Demon, Tank); _aiUnitArr[13] = new Array(Recon, Tank, Tank, Tank, Tank, HeavyTank, Artillery, HeavyTank, Demon, Tank, Recon, Tank, Tank, Tank, Tank); _aiUnitArr[14] = new Array(Tank, Tank, Tank, Tank, Tank, HeavyTank, Artillery, Demon, Tank, Tank, Tank, Tank, HeavyTank, HeavyTank, Tank, Demon, HeavyTank); _aiUnitArr[15] = new Array(Tank, Recon, Demon, HeavyTank, Tank, Tank, Tank, Demon, HeavyTank, Recon, Tank, Tank, Tank, HeavyTank, HeavyTank, Tank, Recon, HeavyTank, Demon, Tank); _aiUnitArr[16] = new Array(HeavyTank, HeavyTank, Recon, Tank, Tank, Tank, Demon, HeavyTank, Tank, Recon, Demon, HeavyTank, Tank, Tank, Tank, Demon, HeavyTank, Recon, Demon, HeavyTank, Tank, HeavyTank, HeavyTank, Recon, Tank); _aiUnitArr[17] = new Array(Tank, Recon, Tank, Tank, Tank, Tank, HeavyTank, Artillery, HeavyTank, Artillery, Demon, Demon, Demon, Demon, HeavyTank, HeavyTank, HeavyTank, HeavyTank, HeavyTank, Demon, Demon, Demon, Demon, Demon, Demon); _aiUnitArr[18] = new Array(Recon, Recon, Recon, Tank, Tank, Tank, HeavyTank, Artillery, HeavyTank, Artillery, Demon, HeavyTank, Demon, Demon, HeavyTank, HeavyTank, HeavyTank, HeavyTank, HeavyTank, Demon, Demon, HeavyTank, Demon, HeavyTank, Demon); _aiUnitArr[19] = new Array(Tank, Soldier, Recon); _aiUnitArr[20] = new Array(); _stageMaskArr = new Array(false, false, false, false, true, false, false, true, false, false, false, false, true, true, false, false, false, false, false, false, false); } public function getStageMask(_arg1:int):Boolean{ return (_stageMaskArr[_arg1]); } public function getAiUnitArr(_arg1:int):Array{ return (_aiUnitArr[_arg1]); } } }//package code.game
Section 101
//UnitCreater (code.game.UnitCreater) package code.game { import flash.events.*; import flash.display.*; import code.system.*; public class UnitCreater extends EventDispatcher { private var _creatEnd:Boolean; private var _mc:MovieClip; private var _class:Class; private var _countTime:CountTime; public function UnitCreater(_arg1:Class, _arg2:int, _arg3:MovieClip){ SoundManager.instance.creatSound("produce"); _class = _arg1; _countTime = new CountTime(); _mc = _arg3; _countTime.totalTime = _arg2; _countTime.addRunFunc(controlMcPlay); _countTime.timeUpFunc = creatEndFunc; _countTime.start(); } public function clearSelf():void{ _class = null; _mc = null; } public function get creatEnd():Boolean{ return (_creatEnd); } public function get mc():MovieClip{ return (_mc); } public function get className():Class{ return (_class); } private function controlMcPlay():void{ _mc.gotoAndPlay(int(((_countTime.time / _countTime.totalTime) * _mc.totalFrames))); } private function creatEndFunc():void{ _creatEnd = true; this.dispatchEvent(new Event("creatEnd")); _countTime = null; SoundManager.instance.creatSound("produceEnd"); _mc.stop(); } } }//package code.game
Section 102
//UnitImpactTactic (code.game.UnitImpactTactic) package code.game { import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class UnitImpactTactic extends AbstractImpactTactic { private var _sideslipImpactHandle:SideslipImpactHandle; private var _buildingImpactHandle:BuildingImpactHandle; private var _propImpactHandle:PropImpactHandle; private var _unitImpactHandle:UnitImpactHandle; private var _normalImpactHandle:NormalImpactHandle; private var _landformImpactHandle:LandformImpactHandle; public function UnitImpactTactic(){ init(); } private function countImpactAngle(_arg1:AbstractItem, _arg2:Rectangle):Point{ var _local3:Point; var _local4:Point; var _local5:Point; var _local6:Number; var _local7:Point; _local3 = new Point(_arg1.xPos, _arg1.yPos); _local4 = new Point((_arg2.x + (_arg2.width / 2)), (_arg2.y + (_arg2.height / 2))); _local5 = new Point((_local4.x - _local3.x), (_local4.y - _local3.y)); _local6 = Math.sqrt(((_local5.x * _local5.x) + (_local5.y * _local5.y))); if (_local6 != 0){ _local7 = new Point((_local5.x / _local6), (_local5.y / _local6)); } else { _local7 = new Point(0, 0); }; return (_local7); } public function impactTactic(_arg1:AbstractItem):void{ var _local2:Number; var _local3:Point; var _local4:Point; var _local5:Array; var _local6:Point; var _local7:int; var _local8:Array; var _local9:Array; _local2 = Game.instance.gameData.map.getResistance(_arg1, _arg1.xGrid, _arg1.yGrid); _arg1.power = CoordinateVector.multiply(_arg1.power, _local2); _local3 = new Point(_arg1.xPos, _arg1.yPos); _local4 = new Point(_arg1.speed.coordinate.x, _arg1.speed.coordinate.y); _arg1.speed.coordinate.x = _arg1.power.coordinate.x; _arg1.speed.coordinate.y = _arg1.power.coordinate.y; _arg1.xPos = (_arg1.xPos + (Math.round((_arg1.speed.coordinate.x * 100)) / 100)); _arg1.yPos = (_arg1.yPos + (Math.round((_arg1.speed.coordinate.y * 100)) / 100)); _local5 = new Array(Game.instance.gameData.map.getItem(_arg1.xGrid, _arg1.yGrid), Game.instance.gameData.map.getItem((_arg1.xGrid - 1), _arg1.yGrid), Game.instance.gameData.map.getItem((_arg1.xGrid + 1), _arg1.yGrid), Game.instance.gameData.map.getItem(_arg1.xGrid, (_arg1.yGrid - 1)), Game.instance.gameData.map.getItem(_arg1.xGrid, (_arg1.yGrid + 1))); _local7 = (_local5.length - 1); while (_local7 > -1) { if (_local5[_local7] == null){ } else { if (_local5[_local7] != _arg1){ if (_impactTactic.impactCheck(_arg1, _local5[_local7])){ _local6 = countImpactAngle(_arg1, _impactTactic.impactRec); if ((_local5[_local7] as AbstractWall)){ if ((_local5[_local7] as Mountain)){ if ((_arg1 as ArmoredForces)){ _sideslipImpactHandle.impactHandle(_arg1, _local5[_local7], _local3, _local4, _local6); break; }; } else { if ((_local5[_local7] as AbstractBuilding)){ _buildingImpactHandle.impactHandle(_arg1, _local5[_local7]); } else { if ((_local5[_local7] as River)){ if ((_arg1 as ArmoredForces)){ _sideslipImpactHandle.impactHandle(_arg1, _local5[_local7], _local3, _local4, _local6); break; }; } else { if ((_local5[_local7] as ClarityWall)){ _sideslipImpactHandle.impactHandle(_arg1, _local5[_local7], _local3, _local4, _local6); break; } else { if ((_local5[_local7] as Sea)){ _sideslipImpactHandle.impactHandle(_arg1, _local5[_local7], _local3, _local4, _local6); break; }; }; }; }; }; }; }; }; }; _local7--; }; _local8 = Game.instance.gameData.propArr; _local7 = (_local8.length - 1); while (_local7 > -1) { if (_impactTactic.impactCheck(_arg1, _local8[_local7])){ _propImpactHandle.impactHandle(_arg1, _local8[_local7]); }; _local7--; }; _local9 = Game.instance.gameData.unitArr; _local7 = (_local9.length - 1); while (_local7 > -1) { if (_local9[_local7] != _arg1){ if (_impactTactic.impactCheck(_arg1, _local9[_local7])){ _local6 = countImpactAngle(_arg1, _impactTactic.impactRec); _unitImpactHandle.impactHandle(_arg1, _local9[_local7], _local3, _local4, _local6); break; }; }; _local7--; }; } private function init():void{ _impactTactic = new SimpleRectangleImpactJudge(); _sideslipImpactHandle = new SideslipImpactHandle(); _landformImpactHandle = new LandformImpactHandle(); _propImpactHandle = new PropImpactHandle(); _buildingImpactHandle = new BuildingImpactHandle(); _normalImpactHandle = new NormalImpactHandle(); _unitImpactHandle = new UnitImpactHandle(); } } }//package code.game
Section 103
//ArrayManager (code.system.ArrayManager) package code.system { public class ArrayManager { public static function arrayClone(_arg1:Array):Array{ var _local2:Array; var _local3:int; _local2 = new Array(); _local3 = 0; while (_local3 < _arg1.length) { _local2.push(_arg1[_local3]); _local3++; }; return (_local2); } } }//package code.system
Section 104
//CoordinateVector (code.system.CoordinateVector) package code.system { import flash.geom.*; public class CoordinateVector { private var _coordinate:Point; public function CoordinateVector(_arg1:Number=0, _arg2:Number=0){ init(_arg1, _arg2); } private function init(_arg1:Number, _arg2:Number):void{ _coordinate = new Point(_arg1, _arg2); } public function set coordinate(_arg1:Point):void{ _coordinate = _arg1; } public function get radian():Number{ if (_coordinate.x == 0){ if (_coordinate.y > 0){ return ((-(Math.PI) / 2)); }; return ((Math.PI / 2)); //unresolved jump }; if (_coordinate.y == 0){ if (_coordinate.x > 0){ return (0); }; return (-(Math.PI)); //unresolved jump }; return (Math.atan((_coordinate.y / _coordinate.x))); } public function get coordinate():Point{ return (_coordinate); } public function clearSelf():void{ _coordinate = null; } public function get module():Number{ return (Math.sqrt(((_coordinate.x * _coordinate.x) + (_coordinate.y * _coordinate.y)))); } public static function add(_arg1:CoordinateVector, _arg2:CoordinateVector):CoordinateVector{ var _local3:Number; var _local4:Number; _local3 = (_arg1.coordinate.x + _arg2.coordinate.x); _local4 = (_arg1.coordinate.y + _arg2.coordinate.y); return (new CoordinateVector(_local3, _local4)); } public static function multiply(_arg1:CoordinateVector, _arg2:Number):CoordinateVector{ var _local3:Number; var _local4:Number; _local3 = (_arg1.coordinate.x * _arg2); _local4 = (_arg1.coordinate.y * _arg2); return (new CoordinateVector(_local3, _local4)); } public static function min(_arg1:CoordinateVector, _arg2:CoordinateVector):CoordinateVector{ var _local3:Number; var _local4:Number; _local3 = (_arg1.coordinate.x - _arg2.coordinate.x); _local4 = (_arg1.coordinate.y - _arg2.coordinate.y); return (new CoordinateVector(_local3, _local4)); } } }//package code.system
Section 105
//CountTime (code.system.CountTime) package code.system { import code.game.*; public class CountTime { private var _timeUpFunc:Function; private var _time:int; private var _runFuncArr:Array; private var _totalTime:int; public function CountTime(){ init(); } public function get totalTime():int{ return (_totalTime); } public function set totalTime(_arg1:int):void{ _totalTime = _arg1; } public function get time():int{ return (_time); } public function addRunFunc(_arg1:Function):void{ _runFuncArr.push(_arg1); } private function init():void{ _runFuncArr = new Array(); } public function minRunFunc(_arg1:Function):void{ _runFuncArr.splice(_runFuncArr.indexOf(_arg1), 1); } public function clearSelf():void{ Game.instance.gameEngine.minEngine(countTime); _timeUpFunc = null; _runFuncArr = null; } public function start():void{ Game.instance.gameEngine.addEngine(countTime); } public function stop():void{ Game.instance.gameEngine.minEngine(countTime); _time = 0; } private function countTime():void{ var _local1:int; if (_time < _totalTime){ _time++; _local1 = (_runFuncArr.length - 1); while (_local1 > -1) { var _local2 = _runFuncArr; _local2[_local1](); _local1--; }; } else { stop(); _time = 0; _timeUpFunc(); }; } public function pause():void{ Game.instance.gameEngine.minEngine(countTime); } public function set timeUpFunc(_arg1:Function):void{ _timeUpFunc = _arg1; } } }//package code.system
Section 106
//DisplayManager (code.system.DisplayManager) package code.system { import flash.display.*; import flash.geom.*; import code.game.*; import flash.utils.*; public class DisplayManager { private var _playingMcArr:Array; private var _maskerManaer:MaskerManager; private var _displayArr:Array; private var _bitmapDataArr:Array; private var _unitContainer:Sprite; private var _itemContainer:Sprite; private var _gameMainContainer:Sprite; private var _rowDisplayArr:Array; private var _bgContainer:Sprite; private var _skyContainer:Sprite; private static var _instance:DisplayManager; public function DisplayManager(_arg1:DisplayManagerSingletonEnforcer){ trace(_arg1); init(); } public function getDefinition(_arg1:String):MovieClip{ var _local2:Class; _local2 = (getDefinitionByName(_arg1) as Class); return (MovieClip(new (_local2))); } public function get maskerManaer():MaskerManager{ return (_maskerManaer); } public function get displayArr():Array{ return (_displayArr); } public function clearAllContainer():void{ var _local1:DisplayObject; for each (_local1 in _displayArr) { trace((((_local1 + ", ") + "父容器:") + _local1.parent)); }; } public function addChildAt(_arg1:DisplayObject, _arg2:DisplayObjectContainer, _arg3:int):void{ _arg2.addChildAt(_arg1, _arg3); if (_displayArr.indexOf(_arg1) == -1){ _displayArr.push(_arg1); }; } private function init():void{ _displayArr = new Array(); _bitmapDataArr = new Array(); } public function get bgContainer():Sprite{ return (_bgContainer); } public function removeChild(_arg1:DisplayObject):void{ if (_arg1 != null){ if (_arg1.parent != null){ _arg1.parent.removeChild(_arg1); if (_displayArr.indexOf(_arg1) != -1){ _displayArr.splice(_displayArr.indexOf(_arg1), 1); }; }; }; } public function get itemContainer():Sprite{ return (_itemContainer); } public function minPlayMc(_arg1:MovieClip):void{ var _local2:int; _local2 = _playingMcArr.indexOf(_arg1); if (_local2 != -1){ _playingMcArr.splice(_local2, 1); }; } public function get playingMcArr():Array{ return (_playingMcArr); } public function get skyContainer():Sprite{ return (_skyContainer); } public function set maskerManaer(_arg1:MaskerManager):void{ _maskerManaer = _arg1; } public function clearGameContainer():void{ var _local1:Sprite; var _local2:BitmapData; removeChild(_gameMainContainer); _gameMainContainer = null; removeChild(_bgContainer); _bgContainer = null; removeChild(_skyContainer); _skyContainer = null; removeChild(_unitContainer); _unitContainer = null; removeChild(_itemContainer); _itemContainer = null; for each (_local1 in _rowDisplayArr) { removeChild(_local1); }; _rowDisplayArr = null; for each (_local2 in _bitmapDataArr) { _local2.dispose(); }; if (_maskerManaer != null){ _maskerManaer.clearSelf(); _maskerManaer = null; }; _playingMcArr.splice(0); _playingMcArr = null; } public function get unitContainer():Sprite{ return (_unitContainer); } public function getBitMap(_arg1:MovieClip):Bitmap{ var _local2:DisplayObject; var _local3:Rectangle; var _local4:BitmapData; var _local5:Bitmap; _local2 = _arg1.getChildAt(0); _local3 = _local2.getBounds(_arg1); _local4 = new BitmapData(_local3.width, _local3.height, true, 1); _bitmapDataArr.push(_local4); _local4.draw(_arg1, new Matrix(1, 0, 0, 1, -(_local3.x), -(_local3.y))); _local5 = new Bitmap(_local4); return (_local5); } public function get bitmapDataArr():Array{ return (_bitmapDataArr); } public function addPlayMc(_arg1:MovieClip):void{ _playingMcArr.push(_arg1); } public function getDisArr(_arg1:int):Sprite{ return (_rowDisplayArr[_arg1]); } public function displayInit():void{ var _local1:int; var _local2:Sprite; _playingMcArr = new Array(); _gameMainContainer = new Sprite(); addChildAt(_gameMainContainer, DocumentClass.instance.stage, 0); _unitContainer = new Sprite(); addChild(_unitContainer, _gameMainContainer); _itemContainer = new Sprite(); addChild(_itemContainer, _unitContainer); _bgContainer = new Sprite(); addChildAt(_bgContainer, _itemContainer, 0); _rowDisplayArr = new Array(); _local1 = 0; while (_local1 < Game.instance.gameData.mapSize.y) { _local2 = new Sprite(); _rowDisplayArr.push(_local2); addChild(_local2, _itemContainer); _local1++; }; _skyContainer = new Sprite(); addChild(_skyContainer, _gameMainContainer); } public function deleMainContainer():void{ removeChild(_gameMainContainer); _gameMainContainer = null; } public function get gameMainContainer():Sprite{ return (_gameMainContainer); } public function addChild(_arg1:DisplayObject, _arg2:DisplayObjectContainer):void{ _arg2.addChild(_arg1); if (_displayArr.indexOf(_arg1) == -1){ _displayArr.push(_arg1); }; } public static function get instance():DisplayManager{ if (DisplayManager._instance == null){ DisplayManager._instance = new DisplayManager(new DisplayManagerSingletonEnforcer()); }; return (DisplayManager._instance); } public static function deleInstance():void{ DisplayManager._instance = null; } } }//package code.system class DisplayManagerSingletonEnforcer { private function DisplayManagerSingletonEnforcer(){ } }
Section 107
//EnterNameTextField (code.system.EnterNameTextField) package code.system { import flash.events.*; import flash.text.*; public class EnterNameTextField extends TextField { private var _text:TextField; private var _default:String; public function EnterNameTextField(_arg1:TextField){ _text = _arg1; init(); } private function init():void{ _default = "player"; _text.text = _default; _text.maxChars = 11; _text.multiline = false; _text.addEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandle, false, 0, true); _text.addEventListener(FocusEvent.FOCUS_OUT, FocusOutHandle, false, 0, true); } private function FocusOutHandle(_arg1:FocusEvent):void{ if (_text.text == ""){ _text.text = _default; }; } public function get textValue():String{ return (_text.text); } public function clearSelf():void{ _text.removeEventListener(MouseEvent.MOUSE_DOWN, MouseDownHandle); _text.removeEventListener(FocusEvent.FOCUS_OUT, FocusOutHandle); _text = null; } private function MouseDownHandle(_arg1:MouseEvent):void{ if (_text.text == _default){ _text.text = ""; }; SoundManager.instance.creatSound("menuPress"); } } }//package code.system
Section 108
//Fps (code.system.Fps) package code.system { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class Fps extends Sprite { private var label:TextField; private var labelText:String;// = "fps:" private var _oldFrameNum:int;// = 0 private var _framesNum:int;// = 0 private var _myTimer:Timer; private var fps:TextField; private var frameRate:int; public function Fps(_arg1:Stage){ labelText = "fps:"; _framesNum = 0; _oldFrameNum = 0; super(); frameRate = _arg1.frameRate; initialLabel(); setLabel(labelText); initialFps(); _myTimer = new Timer(1000); _myTimer.addEventListener(TimerEvent.TIMER, timerHandle); _myTimer.start(); this.addEventListener(Event.ENTER_FRAME, calcFPS); } private function initialFps():void{ fps = createTextField((label.width + 124), 15); fps.type = TextFieldType.DYNAMIC; fps.text = "100"; } private function initialLabel():void{ label = createTextField(124, 15); } private function createTextField(_arg1:Number, _arg2:Number):TextField{ var _local3:TextField; var _local4:TextFormat; _local3 = new TextField(); _local3.x = _arg1; _local3.y = _arg2; _local3.autoSize = TextFieldAutoSize.LEFT; _local4 = new TextFormat(); _local4.font = "_sans"; _local4.color = 0xFF0000; _local4.size = 12; _local3.defaultTextFormat = _local4; addChild(_local3); return (_local3); } private function calcFPS(_arg1:Event):void{ _framesNum++; } public function setLabel(_arg1:String):void{ label.text = _arg1; } function timerHandle(_arg1:TimerEvent):void{ var _local2:int; _local2 = (_framesNum - _oldFrameNum); _oldFrameNum = _framesNum; fps.text = String(_local2); } } }//package code.system
Section 109
//IFactory (code.system.IFactory) package code.system { public interface IFactory { } }//package code.system
Section 110
//Language (code.system.Language) package code.system { import zlong.country.*; public class Language { private var languageArr:Array; private static var _instance:Language; public function Language(_arg1:LanguageSingletonEnforcer){ trace(_arg1); init(); } private function init():void{ languageArr = []; languageArr["easy"] = ["Easy", "Easy", "Makkelijk", "Facile", "Einfach", "Fácil", "Fácil", "Fácil", "Facile", "Lätt", "Łatwy", "Легкий", "Mudah", "簡単", "简单", "Easy"]; languageArr["normal"] = ["Normal", "Normal", "Normaal", "Normal", "Normal", "Normal", "Normal", "Normal", "Normale", "Normal", "Normalny", "Нормальный", "Normal", "標準", "普通", "Normal"]; languageArr["hard"] = ["Hard", "Hard", "Moeilijk", "Difficile", "Schwer", "Difícil", "Difícil", "Difícil", "Ardua", "Svårt", "Trudny", "Трудный", "Sukar", "難しい", "困难", "Hard"]; languageArr["Turorial"] = ["TUTORIAL LEVEL", "TUTORIAL LEVEL", "INLEIDEND LEVEL", "NIVEAU D’INSTRUCTIONS", "EINFÜHRUNG", "NIVEL TUTORIAL", "NÍVEL DE TUTORIAL", "NÍVEL DE TUTORIAL", "LIVELLO DEL TUTORIAL", "LEKTIONSNIVÅ", "POZIOM SZKOLENIOWY", "УЧЕБНЫЙ УРОВЕНЬ", "LEVEL AJARAN TAMBAHAN", "TUTORIAL LEVEL", "教程关卡", "TUTORIAL LEVEL"]; languageArr["tankInfo"] = ["Tank units have high mobility and are inexpensive, so they’re easy to deploy.", "Tank units have high mobility and are inexpensive, so they are easy to deploy.", "Tankeenheden zijn zeer mobiel en goedkoop. Ze zijn dus eenvoudig in te zetten.", "Les unités de chars sont très mobiles et peu coûteuses, ce qui les rend faciles à déployer.", "Panzereinheiten sind sehr mobil und preiswert, so dass sie einfach eingesetzt werden können.", "Las unidades de tanques tienen una alta movilidad y no son caras, así que son fáciles de desplegar.", "As unidades de tanque possuem grande mobilidade e não são caras, por isso são fáceis de serem posicionadas.", "As unidades de tanque têm alta mobilidade e são pouco dispendiosas, pelo que é fácil colocá-las em campo.", "Le unità dei carri armati hanno un'alta mobilità e sono poco costose, quindi sono facili da dispiegare.", "Stridsvagnar är snabba och billiga. De är därför enkla att placera ut.", "Te jednostki mają wysoką mobilność i nie są drogie, więc łatwo je rozmieścić.", "Танковые части легко перемещаются и стоят не слишком дорого, поэтому их легко развертывать.", "Unit tangki memiliki mobilitas yang tinggi dan tidak mahal, jadi sangatlah mudah untuk mempersiapkannya.", "戦車ユニットは高い機動力を備え価格は経済的、破壊には欠かせない。", "绰号“猛虎”的中型坦克是战场主力——火力、机动性、护甲等拥有有极佳的性价比。", "Tank unit have high movement ranges and are inexpensive, so they’re easy to deploy."]; languageArr["soldierInfo"] = ["Infantry units have the lowest deployment cost. They capture bases well but have low firepower.", "Infantry units have the lowest deployment cost. They capture bases effectively, but have low firepower.", "Infanterie-eenheden hebben de laagste inzetkosten. Ze kunnen goed bases veroveren, maar hebben weinig vuurkracht.", "Les unités d'infanterie ont les coûts de déploiement les plus faibles. Elles sont bien adaptées pour capturer des bases, mais leur puissance de feu est faible.", "Infanterieeinheiten haben die niedrigsten Einsatzkosten. Sie sind gut im Erobern von Stützpunkten, besitzen aber geringe Feuerkraft..", "Las unidades de infantería tienen los costes de despliegue más bajos. Capturan bases, pero su potencia de disparo es baja.", "As unidades de infantaria possuem o menor custo de posicionamento. Elas são boas para capturar bases, mas possuem pouco poder de fogo.", "As unidades de infantaria têm o custo de colocação mais baixo. Elas capturam bases, mas têm pouco poder de fogo.", "Le unità di fanteria hanno il più basso costo di dispiegamento. Catturano bene le basi ma hanno una bassa potenza di fuoco.", "Fotsoldater kostar minst att placera ut. De är bra på att inta baser, men har liten eldkraft.", "Jednostki piechoty rozmieścisz najmniejszym kosztem. Są dobre w przejmowaniu baz, ale mają małą siłę rażenia.", "Развертывание пехотных частей стоит дешевле всего. Они неплохо справляются с захватом баз, но их огневая мощь оставляет желать лучшего.", "Unit infanteri memiliki biaya persiapan perang terendah. Mereka menempati pangkalan dengan baik tapi kekuatan tembakannya rendah.", "歩兵ユニットは最も費用のかからない部隊。彼らは基地を占拠することは得意だが、攻撃力が低い。", "现代战争中士兵依然是战场的主角,因为你需要他们去占领目标建筑。但是他们没有重型武器强大的火力与护甲。", "Infantry units have the lowest deployment cost. They can capture bases but have low firepower."]; languageArr["reconInfo"] = ["Recon units have high mobility and are strong against infantry units.", "Recon units have high mobility and are strong against infantry units.", "Verkenningseenheden zijn zeer mobiel en sterk tegen infanterie-eenheden.", "Très mobiles, les unités d'éclaireurs sont efficaces contre les unités d'infanterie.", "Erkundungseinheiten sind sehr mobil und stark gegen Infanterieeinheiten.", "Las unidades de reconocimiento tienen una alta movilidad y son fuertes ante las unidades de infantería.", "As unidades de reconhecimento possuem grande mobilidade e são poderosas contra as unidades de infantaria.", "As unidades de batedores têm mobilidade elevada e são fortes contra unidades de infantaria.", "Le unità di ricognizione hanno un'alta mobilità e sono forti contro le unità di fanteria.", "Spaningsenheter förflyttar sig snabbt och är bra mot infanterienheter.", "Jednostki rozpoznania mają wysoką mobilność i są skuteczne wobec jednostek piechoty.", "Разведчасти легко перемещаются и с честью могут выдержать натиск пехоты.", "Unit pengintai memiliki mobilitas yang tinggi dan kuat melawan unit-unit infanteri.", "特殊偵察ユニットは高い機動力を備え、歩兵ユニットに対して強力な抵抗力がある。", "绰号“野猪”的侦查吉普车配有射速极快的机关炮,具有极佳的机动性和侦查能力,但是护甲较低。", "Recon units have high movement range and are strong against infantry units."]; languageArr["heavyTankInfo"] = ["Heavy tank units' defensive and offensive ratings are the second best among ground units.", "The defensive and offensive ratings of heavy tank units are the second best among the available ground units.", "De zware tankeenheden hebben de eennahoogste verdedigings- en aanvalskracht van alle grondeenheden.", "Dans les classements sur les plans défensif et offensif les unités de chars lourds se trouvent au second rang parmi les unités au sol.", "Die Defensiv- und Offensiv-Bewertungen der Schwerpanzereinheiten sind die zweitbesten unter den Bodeneinheiten.", "Las unidades de tanques pesados son las segundas mejores en defensa y ataque entre las unidades de tierra.", "Os níveis de ataque e defesa das unidades de tanque pesado são os segundos melhores entre as unidades terrestres.", "Os níveis de defesa e ataque das unidades de tanques pesados são as segundas melhores entre as unidades de solo.", "Le valutazioni della difesa e dell'offesa delle unità dei carri armati pesanti sono le seconde fra le migliori unità di terra.", "Tunga stridsvagnar är näst bäst när det gäller försvar och attack på marken.", "Statystyki obrony i ataku dla czołgów ciężkich są na drugim miejscu wśród statystyk wszystkich jednostek.", "Наступательные и оборонительные качества тяжелых танковых частей находятся на втором месте по эффективности среди наземных войск.", "Pertahanan dan serangan unit tangki berat menduduki peringkat kedua diantara unit-unit lapangan lainnya.", "重戦車ユニットの防御力と攻撃力は、これらの地上部隊の中でも二番目に高いものである。", "绰号“公牛”的重型坦克最大的优势就是火力和护甲,但是机动性欠佳以及昂贵的制造成本。", "Heavy tank unit’s defensive and offensive ratings are the second best among ground units."]; languageArr["demonInfo"] = ["These are the latest in weapons technology. They are more powerful than heavy tanks.", "These are the latest in weapons technology. They are more powerful than heavy tanks.", "Het nieuwste op het gebied van wapentechnologie. Ze zijn sterker dan zware tanks.", "Il s'agit là de la toute nouvelle technologie d'armement. Ils sont encore plus puissants que les chars lourds.", "Dies ist die neueste Waffentechnologie. Sie sind machtvoller als Schwerpanzer.", "Es lo último en tecnología armamentística. Son más potentes que los tanques pesados.", "É um item com tecnologia de ponta e mais poderoso do que os tanques pesados.", "Estes são o último grito em tecnologia bélica. São mais potentes do que tanques pesados.", "Sono l'ultima scoperta nella tecnologia delle armi. Sono più potenti dei carri armati pesanti.", "Det senaste inom vapenteknologi. De är ännu kraftfullare än tunga stridsvagnar.", "Wytwór najnowszej technologii bojowej. Roboty są mocniejsze niż czołgi ciężkie.", "Последнее слово военной технологии. Эти милые машинки куда мощнее тяжелых танков.", "Ini ialah teknologi senjata terbaru. Robot-robot ini lebih kuat daripada tangki-tangki berat.", "超ハイテクノロジーが生み出した最新兵器、重戦車より強力なパワーがある。", "绰号“合金外壳”的双足机器人,许多技术资料都是一个谜,使用能够贯通一切的激光武器。", "These are new technology weapons. They are more powerful than heavy tank."]; languageArr["artilleryInfo"] = ["Artillery units are an inexpensive way to gain indirect offensive attack capabilities.", "Artillery units are an inexpensive way of gaining indirect offensive attack capabilities.", "Artillerie-eenheden zijn een goedkope manier om indirecte aanvalsmogelijkheden te krijgen.", "Les unités d'artillerie représentent une possibilité peu coûteuse pour gagner des capacités d'attaque offensive indirectes.", "Artillerieeinheiten sind eine kostenkünstige Möglichkeit, indirekt Offensivangriffsfähigkeiten zu erwerben.", "Las unidades de artillería son una forma barata de conseguir habilidades de ataque ofensivo indirecto.", "As unidades de artilharia são uma forma barata de obter habilidades de ataque indireto.", "As unidades de artilharia são uma maneira barata de ganhar capacidades de ataque indirecto.", "Le unità di artiglieria sono un modo poco costoso di ottenere capacità di attacco offensivo indiretto.", "Artillerienheter är ett billigt sätt att indirekt anfalla fienden.", "Jednostki artylerii to możliwość przeprowadzenia pośredniego ofensywnego ataku niewielkim kosztem.", "Это недорогое средство для тех случаев, когда требуется атаковать издалека.", "Unit pasukan bagian meriam ialah cara yang murah untuk mendapatkan kemampuan serangan secara tak langsung.", "大砲ユニットは間接的な攻撃を与えることができ、且つお金のかからない部隊である。", "绰号“天蝎”的自走跑车,射程以及扩散杀伤是其特点,不过其它方面较弱。", "Artillery units are an inexpensive way to gain indirect offensive attack capabilities."]; } public function getLanguage(_arg1:String):String{ return (languageArr[_arg1][(CountryInfo.instance.language - 1)]); } public static function get instance():Language{ if (Language._instance == null){ Language._instance = new Language(new LanguageSingletonEnforcer()); }; return (Language._instance); } } }//package code.system class LanguageSingletonEnforcer { private function LanguageSingletonEnforcer(){ } }
Section 111
//Loader (code.system.Loader) package code.system { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class Loader extends Sprite { private var _container:Sprite; private var _mc:MovieClip; private var _loadMc:MovieClip; private var _loadText:TextField; public function Loader(){ init(); startEnterFrameLoader(); } private function init():void{ initView(); initListener(); } public function clearSelf():void{ DisplayManager.instance.removeChild(_mc); DisplayManager.instance.removeChild(_container); _mc = null; _container = null; _loadText = null; } private function startEnterFrameLoader():void{ DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle); } private function initView():void{ var _local1:Class; var _local2:MovieClip; _container = new Sprite(); _local1 = (getDefinitionByName("loadGame") as Class); _local2 = MovieClip(new (_local1)); _mc = _local2; DisplayManager.instance.addChild(_mc, _container); DisplayManager.instance.addChild(_container, DocumentClass.instance.stage); _loadMc = (_mc.getChildByName("loadMc") as MovieClip); _loadMc.stop(); _loadText = (_mc.getChildByName("loadText") as TextField); _loadText.selectable = false; } private function initListener():void{ } private function enterFrameHandle(_arg1:Event):void{ var _local2:int; _local2 = ((DocumentClass.instance.root.loaderInfo.bytesLoaded / DocumentClass.instance.root.loaderInfo.bytesTotal) * 100); _loadMc.gotoAndStop(_local2); _loadText.text = String(_local2); if (DocumentClass.instance.root.loaderInfo.bytesLoaded == DocumentClass.instance.root.loaderInfo.bytesTotal){ DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); clearSelf(); DocumentClass.instance.startGame(); }; } } }//package code.system
Section 112
//MaskerManager (code.system.MaskerManager) package code.system { import flash.display.*; import flash.geom.*; import code.game.*; import code.game.mainItem.*; public class MaskerManager { private var _bm:Bitmap; private var _maskDisObj:Sprite; private var _maskObjArr:Array; public function MaskerManager(){ init(); } public function clearSelf():void{ var _local1:int; DisplayManager.instance.removeChild(_maskDisObj); _local1 = 0; while (_local1 < _maskObjArr.length) { DisplayManager.instance.removeChild(_maskObjArr[_local1][1]); _local1++; }; _maskObjArr = null; if (_bm != null){ DisplayManager.instance.removeChild(_bm); _bm.bitmapData.dispose(); _bm = null; }; } private function moveMasker():void{ var _local1:Array; for each (_local1 in _maskObjArr) { _local1[1].x = _local1[0].centerPoint.x; _local1[1].y = _local1[0].centerPoint.y; }; } public function reInit():void{ _maskObjArr.splice(0); } public function stop():void{ Game.instance.gameEngine.minEngine(moveMasker); } public function setMask(_arg1:Sprite):void{ _arg1.mask = _maskDisObj; DisplayManager.instance.addChild(_maskDisObj, _arg1.parent); } private function init():void{ _maskDisObj = new Sprite(); _maskObjArr = new Array(); } public function setBg(_arg1:Sprite, _arg2:Rectangle):void{ var _local3:BitmapData; var _local4:ColorTransform; var _local5:Rectangle; _local3 = new BitmapData(_arg1.width, _arg1.height, true, 1); _local3.draw(_arg1, new Matrix(1, 0, 0, 1, -(_arg2.x), -(_arg2.y))); _local4 = new ColorTransform(); _local4.alphaMultiplier = 0.5; _local5 = new Rectangle(0, 0, _arg1.width, _arg1.height); _local3.colorTransform(_local5, _local4); _bm = new Bitmap(_local3); _bm.x = _arg2.x; _bm.y = _arg2.y; DisplayManager.instance.addChildAt(_bm, DisplayManager.instance.gameMainContainer, 0); } public function addMoveMaskObj(_arg1:AbstractUnit):void{ var _local2:MovieClip; _local2 = DisplayManager.instance.getDefinition("maskMc"); DisplayManager.instance.addChild(_local2, _maskDisObj); _maskObjArr.push(new Array(_arg1, _local2)); } public function start():void{ Game.instance.gameEngine.addEngine(moveMasker); } public function clearMaskUnit(_arg1:AbstractUnit):void{ var _local2:Array; for each (_local2 in _maskObjArr) { if (_local2[0] == _arg1){ DisplayManager.instance.removeChild(_local2[1]); _maskObjArr.splice(_maskObjArr.indexOf(_local2), 1); break; }; }; } } }//package code.system
Section 113
//MySimpleButton (code.system.MySimpleButton) package code.system { import flash.events.*; import flash.display.*; public class MySimpleButton extends EventDispatcher { private var _pitchOnStage:int; private var _pressSound:String; private var _touchSound:String; private var _mc:MovieClip; public function MySimpleButton(_arg1:MovieClip){ init(_arg1); } private function init(_arg1:MovieClip):void{ _mc = _arg1; _mc.mouseChildren = false; _mc.addEventListener(MouseEvent.MOUSE_DOWN, downHandle, false, 0, true); _mc.addEventListener(MouseEvent.MOUSE_OVER, overHandle, false, 0, true); _mc.addEventListener(MouseEvent.MOUSE_OUT, outHandle, false, 0, true); _mc.buttonMode = true; _pitchOnStage = 1; _mc.gotoAndStop(_pitchOnStage); _pressSound = "menuPress"; _touchSound = "menuTouch"; } override public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ _mc.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function set pressSound(_arg1:String):void{ _pressSound = _arg1; } private function overHandle(_arg1:MouseEvent):void{ _mc.gotoAndStop(2); SoundManager.instance.creatSound(_touchSound); } private function outHandle(_arg1:MouseEvent):void{ _mc.gotoAndStop(_pitchOnStage); } public function resteMc(_arg1:MovieClip):void{ _arg1.x = _mc.x; _arg1.y = _mc.y; _mc.parent.addChild(_arg1); _mc.parent.removeChild(_mc); _mc = _arg1; _mc.mouseChildren = false; _mc.addEventListener(MouseEvent.MOUSE_DOWN, downHandle, false, 0, true); _mc.addEventListener(MouseEvent.MOUSE_OVER, overHandle, false, 0, true); _mc.addEventListener(MouseEvent.MOUSE_OUT, outHandle, false, 0, true); _mc.buttonMode = true; _mc.gotoAndStop(_pitchOnStage); } public function set touchSound(_arg1:String):void{ _touchSound = _arg1; } protected function downHandle(_arg1:MouseEvent):void{ _mc.gotoAndStop(3); SoundManager.instance.creatSound(_pressSound); } public function get mc():MovieClip{ return (_mc); } public function set mouseEnabled(_arg1:Boolean):void{ _mc.mouseEnabled = _arg1; } public function clearSelf():void{ _mc.removeEventListener(MouseEvent.MOUSE_DOWN, downHandle); _mc.removeEventListener(MouseEvent.MOUSE_OVER, overHandle); _mc.removeEventListener(MouseEvent.MOUSE_OUT, outHandle); _mc = null; } public function set pitchOnStage(_arg1:int):void{ _pitchOnStage = _arg1; _mc.gotoAndStop(_pitchOnStage); } public function get pitchOnStage():int{ return (_pitchOnStage); } } }//package code.system
Section 114
//MySimpleButtonFactory (code.system.MySimpleButtonFactory) package code.system { import flash.display.*; public class MySimpleButtonFactory implements IFactory { public function creatInstance(... _args):MySimpleButton{ return (new MySimpleButton(MovieClip(_args[0]))); } } }//package code.system
Section 115
//SoundManager (code.system.SoundManager) package code.system { import flash.media.*; import flash.utils.*; public class SoundManager { private var _createdListArr:Array; private var _soundSwitch:Boolean; private var _musicSwitch:Boolean; private static var _instance:SoundManager; public function SoundManager(_arg1:SoundMangerSingletonEnforcer):void{ trace(_arg1); init(); } public function stop(_arg1:String):void{ if (_musicSwitch){ if (useMySoundInstance(_arg1) != null){ useMySoundInstance(_arg1).stop(); }; }; } public function creatSound(_arg1:String):void{ var _local2:Class; if (_soundSwitch){ _local2 = (getDefinitionByName(_arg1) as Class); Sound(new (_local2)).play(); }; } public function deleMusic(_arg1:String):void{ _createdListArr[_arg1] = null; } public function set soundSwitch(_arg1:Boolean):void{ _soundSwitch = _arg1; } public function rePlay(_arg1:String):void{ if (_musicSwitch){ useMySoundInstance(_arg1).rePlay(); }; } private function init():void{ _soundSwitch = true; _musicSwitch = true; _createdListArr = new Array(); } public function creatMusic(_arg1:String, _arg2:Array, _arg3:int=0, _arg4:Boolean=false):void{ if (_musicSwitch){ _createdListArr[_arg1] = new MySound(_arg2, _arg3, _arg4); }; } public function deleArrMusic():void{ _createdListArr = new Array(); } public function get soundSwitch():Boolean{ return (_soundSwitch); } private function useMySoundInstance(_arg1:String):MySound{ if (_createdListArr[_arg1] == null){ }; return (_createdListArr[_arg1]); } public function set musicSwitch(_arg1:Boolean):void{ if (_createdListArr["uiMusic"] != null){ if (!_arg1){ stop("uiMusic"); } else { _musicSwitch = _arg1; play("uiMusic"); }; } else { if (_arg1){ creatMusic("uiMusic", new Array("mainMenu"), 10000, false); play("uiMusic"); }; }; _musicSwitch = _arg1; } public function indexMusic(_arg1:String):Boolean{ if (_createdListArr[_arg1] != null){ MySound(_createdListArr[_arg1]).playing; }; return (false); } public function play(_arg1:String):void{ if (_musicSwitch){ useMySoundInstance(_arg1).play(); }; } public function pause(_arg1:String):void{ if (_musicSwitch){ useMySoundInstance(_arg1).pause(); }; } public function get musicSwitch():Boolean{ return (_musicSwitch); } public static function get instance():SoundManager{ if (SoundManager._instance == null){ SoundManager._instance = new SoundManager(new SoundMangerSingletonEnforcer()); }; return (SoundManager._instance); } } }//package code.system import flash.events.*; import flash.media.*; import flash.utils.*; class MySound { private var _loops:int; private var _playList:Array; private var _playingChannel:SoundChannel; private var _pausePos:Number; private var _listArr:Array; private var _playingSound:Sound; private var _ifRandomPlay:Boolean; private var _currentLoop:int; private function MySound(_arg1:Array, _arg2:int=0, _arg3:Boolean=false){ init(_arg1, _arg2, _arg3); } public function stop():void{ if (_playingChannel != null){ _playingChannel.stop(); _playingChannel = null; _playingSound = null; _currentLoop = 0; _pausePos = NaN; }; } private function creatMusicClass(_arg1:String):Sound{ var _local2:Class; _local2 = (getDefinitionByName(_arg1) as Class); return ((new (_local2) as Sound)); } public function rePlay():void{ if (_playingSound != null){ _playingChannel = _playingSound.play(_pausePos); _playingChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandle); _pausePos = NaN; } else { throw (new Error("没有暂停播放的sound可以重新播放...")); }; } private function getPlayName():String{ var _local1:String; var _local2:int; if (_ifRandomPlay){ _local2 = Math.floor((Math.random() * _playList.length)); } else { _local2 = 0; }; _local1 = _listArr[_playList[_local2]]; return (_local1); } private function init(_arg1:Array, _arg2:int=0, _arg3:Boolean=false):void{ _listArr = _arg1; _ifRandomPlay = _arg3; _loops = _arg2; _playList = getPlayList(); _pausePos = 0; } public function get playing():Boolean{ if (_playingChannel != null){ return (true); }; return (false); } private function getPlayList():Array{ var _local1:Array; var _local2:int; _local1 = new Array(); _local2 = 0; while (_local2 < _listArr.length) { _local1.push(_local2); _local2++; }; return (_local1); } private function soundCompleteHandle(_arg1:Event):void{ if (_playList.length != 0){ play(); } else { if (_currentLoop < _loops){ _playList = getPlayList(); play(); _currentLoop++; }; }; } public function play():void{ var _local1:String; _local1 = getPlayName(); _playingSound = creatMusicClass(_local1); _playingChannel = _playingSound.play(0); _playingChannel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandle); } public function pause():void{ if (_playingChannel != null){ _playingChannel.stop(); _pausePos = _playingChannel.position; } else { throw (new Error("没有正在播放的soundChannel可以暂停...")); }; } } class SoundMangerSingletonEnforcer { private function SoundMangerSingletonEnforcer(){ } }
Section 116
//AbstactUiTactic (code.ui.AbstactUiTactic) package code.ui { public class AbstactUiTactic { protected var _resourceArr:Array; public function AbstactUiTactic(){ init(); } protected function init():void{ _resourceArr = new Array(); } public function deleSelf():void{ _resourceArr = null; } public function getResource(_arg1:String):Function{ return (_resourceArr[_arg1]); } } }//package code.ui
Section 117
//AbstractUi (code.ui.AbstractUi) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class AbstractUi extends EventDispatcher { protected var _container:Sprite; protected var _createrNum:int; protected var _bindingUiResource:AbstactUiTactic; protected var _name:String; protected var _mc:MovieClip; protected var _compositeArr:Array; protected var _serialNumber:int; public function AbstractUi(_arg1:int){ init(); initView(); initListener(); initData(_arg1); } public function clearSelf():void{ DisplayManager.instance.removeChild(_mc); _mc = null; _container = null; _compositeArr = null; } public function set display(_arg1:Boolean):void{ if (_arg1){ DisplayManager.instance.addChild(_container, UiManager.instance.uiContainer); } else { DisplayManager.instance.removeChild(_container); }; } public function get name():String{ return (_name); } protected function init():void{ } protected function setMc(_arg1:String):void{ _mc = DisplayManager.instance.getDefinition(_arg1); DisplayManager.instance.addChild(_mc, _container); } protected function initData(_arg1:int):void{ _compositeArr = new Array(); _serialNumber = _arg1; _createrNum = -1; } public function addCompositeArr(_arg1:int):void{ _compositeArr.push(_arg1); } public function get serialNumber():int{ return (_serialNumber); } public function set createrNum(_arg1:int):void{ _createrNum = _arg1; } public function get compositeArr():Array{ return (_compositeArr); } protected function initView():void{ _container = new Sprite(); DisplayManager.instance.addChild(_container, UiManager.instance.uiContainer); } public function set bindingUiResource(_arg1:AbstactUiTactic):void{ _bindingUiResource = _arg1; } protected function initListener():void{ } public function get createrNum():int{ return (_createrNum); } } }//package code.ui
Section 118
//BtnList (code.ui.BtnList) package code.ui { import flash.events.*; import flash.display.*; import flash.geom.*; import code.system.*; public class BtnList extends EventDispatcher { private var _btnArr:Array; private var _rollMoveDis:int; private var _rollMc:MovieClip; private var _btnMc:MovieClip; private var _btnUp:MySimpleButton; private var _rollRan:Point; private var _mc:MovieClip; private var _lensPos:Point; private var _btnMcArr:Array; private var _roll:MovieClip; private var _btnDown:MySimpleButton; private var _mouseDownBtn:int; private var _rollR:MovieClip; public function BtnList(_arg1:MovieClip){ init(_arg1); } private function init(_arg1:MovieClip):void{ _rollMoveDis = 4; _mc = _arg1; _btnMc = (_mc.getChildByName("btnMc") as MovieClip); _rollMc = (_mc.getChildByName("rollMc") as MovieClip); initBtn(); initRoll(); } private function downBtnClickHandle(_arg1:MouseEvent):void{ if ((_roll.y + _rollMoveDis) < _rollRan.y){ _roll.y = (_roll.y + _rollMoveDis); } else { _roll.y = _rollRan.y; }; setBtnMcPos(); } public function setBtnMouse(_arg1:Boolean, _arg2:int=2147483647):void{ if (_arg2 == int.MAX_VALUE){ _btnMc.mouseChildren = _arg1; } else { MySimpleButton(_btnArr[_arg2]).mouseEnabled = _arg1; }; } private function initBtn():void{ var _local1:MySimpleButtonFactory; var _local2:int; var _local3:MySimpleButton; _btnArr = new Array(); _btnMcArr = new Array(); _local1 = new MySimpleButtonFactory(); _local2 = 0; while (_local2 < _btnMc.numChildren) { _local3 = _local1.creatInstance((_btnMc.getChildAt(_local2) as MovieClip)); _local3.addEventListener(MouseEvent.MOUSE_DOWN, btnDownHandle, false, 0, true); _btnArr.push(_local3); _btnMcArr.push(_local3.mc); _local2++; }; } private function initRoll():void{ var _local1:MySimpleButtonFactory; _local1 = new MySimpleButtonFactory(); _btnUp = _local1.creatInstance((_rollMc.getChildByName("btnUp") as MovieClip)); _btnUp.addEventListener(MouseEvent.MOUSE_DOWN, upBtnClickHandle, false, 0, true); _btnDown = _local1.creatInstance((_rollMc.getChildByName("btnDown") as MovieClip)); _btnDown.addEventListener(MouseEvent.MOUSE_DOWN, downBtnClickHandle, false, 0, true); _rollR = (_rollMc.getChildByName("rollR") as MovieClip); _roll = (_rollMc.getChildByName("roll") as MovieClip); _roll.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandle, false, 0, true); _roll.x = Math.round((_rollR.x + (_rollR.width / 2))); _roll.y = _rollR.y; _rollRan = new Point(_rollR.y, (_rollR.height - _roll.height)); } private function startChangeBtnMcPos():void{ DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle); } public function clearSelf():void{ _mc = null; _btnMc = null; _rollMc = null; _roll = null; _btnUp.clearSelf(); _btnUp = null; _btnDown.clearSelf(); _btnDown = null; _rollR = null; _rollRan = null; _btnArr = null; _btnMcArr = null; _btnMcArr = null; _lensPos = null; } public function setBtnMask(_arg1:Point):void{ var _local2:Sprite; _local2 = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRect(0, 0, _arg1.x, _arg1.y); _local2.graphics.endFill(); _local2.x = _btnMc.x; _local2.y = _btnMc.y; DisplayManager.instance.addChild(_local2, _mc); _btnMc.mask = _local2; _lensPos = new Point(_btnMc.y, (_btnMc.y + _arg1.y)); } private function upBtnClickHandle(_arg1:MouseEvent):void{ if ((_roll.y - _rollMoveDis) > _rollRan.x){ _roll.y = (_roll.y - _rollMoveDis); } else { _roll.y = _rollRan.x; }; setBtnMcPos(); } private function stopChangeBtnMcPos():void{ DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); } private function setBtnMcPos():void{ var _local1:Number; _local1 = (Math.floor((((_roll.y - _rollRan.x) / _rollRan.y) * 100)) / 100); _btnMc.y = (_lensPos.x + (Math.abs(((_lensPos.y - _lensPos.x) * _local1)) - Math.abs((_btnMc.height * _local1)))); } private function btnDownHandle(_arg1:MouseEvent):void{ _mouseDownBtn = _btnMcArr.indexOf(MovieClip(_arg1.target)); this.dispatchEvent(_arg1); } private function mouseUpHandle(_arg1:MouseEvent):void{ _arg1.stopImmediatePropagation(); DocumentClass.instance.stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandle); _roll.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandle, false, 0, true); _roll.stopDrag(); stopChangeBtnMcPos(); } private function mouseDownHandle(_arg1:MouseEvent):void{ _roll.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandle); _roll.startDrag(false, new Rectangle(_roll.x, _rollR.y, 0, (_rollR.height - _roll.height))); DocumentClass.instance.stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandle, false, 0, true); startChangeBtnMcPos(); } public function get mouseDownBtn():int{ return (_mouseDownBtn); } private function enterFrameHandle(_arg1:Event):void{ setBtnMcPos(); } } }//package code.ui import flash.display.*; class MouseDownBtn { private var _mc:MovieClip; private var _num:int; private function MouseDownBtn(_arg1:int, _arg2:MovieClip){ init(_arg1, _arg2); } private function init(_arg1:int, _arg2:MovieClip):void{ _num = _arg1; _mc = _arg2; } public function get mc():MovieClip{ return (_mc); } public function get num():int{ return (_num); } }
Section 119
//BuyUnit (code.ui.BuyUnit) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import flash.text.*; import code.system.*; import code.game.mainItem.*; public class BuyUnit extends AbstractUi { private var _unitBtnFrame:Array; private var _confirm:MySimpleButton; private var _info:TextField; private var _infoArr:Array; private var _cost:TextField; private var _power:TextField; private var _indexNum:int; private var _personMoney:int; private var _money:TextField; private var _soldier:MySimpleButton; private var _tank:MySimpleButton; private var _heavyTank:MySimpleButton; private var _artillery:MySimpleButton; private var _speed:TextField; private var _chosedArr:Array; private var _demon:MySimpleButton; private var _occupy:TextField; private var _recon:MySimpleButton; private var _unitArr:Array; private var _unitBtnClass:Array; public function BuyUnit(_arg1:int){ super(_arg1); SoundManager.instance.creatSound("unitBuyUiSound"); } private function resetMoneyText():void{ Game.instance.gameData.protagonistPlayer.money = _personMoney; GameInterFace(UiManager.instance.getUi("gameInterFace")).money = _personMoney; } private function resetInfo(_arg1:Array):void{ var _local2:int; while (_local2 < _infoArr.length) { if (_local2 == 0){ _infoArr[_local2].text = Language.instance.getLanguage(_arg1[_local2]); } else { _infoArr[_local2].text = _arg1[_local2]; }; _local2++; }; } private function btnOverHandle(_arg1:MouseEvent):void{ var _local2:int; var _local3:MySimpleButton; for each (_local3 in _unitArr) { if (_local3.mc == MovieClip(_arg1.target)){ _local2 = _unitArr.indexOf(_local3); resetInfo(UiManager.instance.uiData.unitInfo[_local2]); break; }; }; _indexNum = _local2; } private function demonHandle(_arg1:MouseEvent):void{ unitBtnClick("demon"); } private function artilleryHandle(_arg1:MouseEvent):void{ unitBtnClick("artillery"); } private function confirmHandle(_arg1:MouseEvent):void{ confirm(); } private function heavyTankHandle(_arg1:MouseEvent):void{ unitBtnClick("heavyTank"); } private function tankHandle(_arg1:MouseEvent):void{ unitBtnClick("tank"); } private function unitBtnClick(_arg1:String):void{ var _local2:GameInterFace; if (_chosedArr.length < GameInterFace(UiManager.instance.getUi("gameInterFace")).btnArr.length){ if (!((_personMoney - UiManager.instance.uiData.unitPriceArr[_arg1]) < 0)){ _local2 = GameInterFace(UiManager.instance.getUi("gameInterFace")); _local2.changeBtnMc(_chosedArr.length, _unitBtnFrame[_arg1]); _local2.setTextList(_indexNum); _chosedArr.push(new UnitCreater(_unitBtnClass[_arg1], Game.instance.gameData.getCreatTime(_unitBtnClass[_arg1]), _local2.btnArr[_chosedArr.length])); _personMoney = (_personMoney - UiManager.instance.uiData.unitPriceArr[_arg1]); resetMoneyText(); confirm(); }; }; } override public function clearSelf():void{ var _local1:MySimpleButton; for each (_local1 in _unitArr) { _local1.clearSelf(); }; _tank = null; _soldier = null; _recon = null; _heavyTank = null; _demon = null; _artillery = null; _unitArr = null; _info = null; _cost = null; _power = null; _speed = null; _occupy = null; _infoArr = null; _confirm.clearSelf(); _confirm = null; _chosedArr = null; _money = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; var _local2:MovieClip; super.initView(); setMc("unitBuy"); _local1 = new MySimpleButtonFactory(); _tank = _local1.creatInstance((_mc.getChildByName("tank") as MovieClip)); _tank.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["tank"]){ _tank.mouseEnabled = false; _tank.pitchOnStage = 4; }; _soldier = _local1.creatInstance((_mc.getChildByName("infantry") as MovieClip)); _soldier.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["soldie"]){ _soldier.mouseEnabled = false; _soldier.pitchOnStage = 4; }; _recon = _local1.creatInstance((_mc.getChildByName("recon") as MovieClip)); _recon.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["recon"]){ _recon.mouseEnabled = false; _recon.pitchOnStage = 4; }; _heavyTank = _local1.creatInstance((_mc.getChildByName("heavyTank") as MovieClip)); _heavyTank.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["heavyTank"]){ _heavyTank.mouseEnabled = false; _heavyTank.pitchOnStage = 4; }; _demon = _local1.creatInstance((_mc.getChildByName("demon") as MovieClip)); _demon.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["demon"]){ _demon.mouseEnabled = false; _demon.pitchOnStage = 4; }; _artillery = _local1.creatInstance((_mc.getChildByName("artillery") as MovieClip)); _artillery.pressSound = "buyUnitSound"; if (UiManager.instance.uiData.hideUnitTactic.unitHideArr["artillery"]){ _artillery.mouseEnabled = false; _artillery.pitchOnStage = 4; }; _unitArr = new Array(); _unitArr.push(_tank, _soldier, _recon, _heavyTank, _demon, _artillery); _confirm = _local1.creatInstance((_mc.getChildByName("confirm") as MovieClip)); _local2 = (_mc.getChildByName("unitInfo") as MovieClip); _info = (_local2.getChildByName("info") as TextField); _cost = (_local2.getChildByName("cost") as TextField); _power = (_local2.getChildByName("power") as TextField); _speed = (_local2.getChildByName("speed") as TextField); _occupy = (_local2.getChildByName("occupy") as TextField); _money = (_local2.getChildByName("money") as TextField); _money.text = "0"; _infoArr = new Array(); _infoArr.push(_info, _cost, _power, _speed, _occupy); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); } private function soldierHandle(_arg1:MouseEvent):void{ unitBtnClick("soldier"); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "buyUnit"; _personMoney = Game.instance.gameData.protagonistPlayer.money; _chosedArr = new Array(); resetMoneyText(); _unitBtnFrame = new Array(); _unitBtnFrame["tank"] = "tank"; _unitBtnFrame["soldier"] = "soldier"; _unitBtnFrame["recon"] = "recon"; _unitBtnFrame["heavyTank"] = "heavyTank"; _unitBtnFrame["demon"] = "demon"; _unitBtnFrame["artillery"] = "artillery"; _unitBtnClass = new Array(); _unitBtnClass["tank"] = Tank; _unitBtnClass["soldier"] = Soldier; _unitBtnClass["recon"] = Recon; _unitBtnClass["heavyTank"] = HeavyTank; _unitBtnClass["demon"] = Demon; _unitBtnClass["artillery"] = Artillery; } private function confirm():void{ var _local1:UnitCreater; if (_chosedArr.length != 0){ for each (_local1 in _chosedArr) { Game.instance.gameData.protagonistPlayer.personUnitArr.push(_local1); }; this.display = false; clearSelf(); UiManager.instance.clearCreatedUi(this); Game.instance.gameData.protagonistPlayer.creatUnit(); UiManager.instance.renewFocus(); Game.instance.gameUnPause(); } else { return; }; } override protected function initListener():void{ var _local1:MySimpleButton; super.initListener(); _tank.addEventListener(MouseEvent.MOUSE_DOWN, tankHandle, false, 0, true); _soldier.addEventListener(MouseEvent.MOUSE_DOWN, soldierHandle, false, 0, true); _recon.addEventListener(MouseEvent.MOUSE_DOWN, reconHandle, false, 0, true); _heavyTank.addEventListener(MouseEvent.MOUSE_DOWN, heavyTankHandle, false, 0, true); _demon.addEventListener(MouseEvent.MOUSE_DOWN, demonHandle, false, 0, true); _artillery.addEventListener(MouseEvent.MOUSE_DOWN, artilleryHandle, false, 0, true); for each (_local1 in _unitArr) { _local1.addEventListener(MouseEvent.MOUSE_OVER, btnOverHandle, false, 0, true); }; _confirm.addEventListener(MouseEvent.MOUSE_DOWN, confirmHandle, false, 0, true); } public function set personMoney(_arg1:int):void{ _personMoney = _arg1; _money.text = String(_arg1); } private function reconHandle(_arg1:MouseEvent):void{ unitBtnClick("recon"); } private function enterFrameHandle(_arg1:Event):void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); }; } } }//package code.ui
Section 120
//CharacterSelect (code.ui.CharacterSelect) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class CharacterSelect extends AbstractUi { private var _startBtn:MySimpleButton; private var _partMc:MovieClip; private var _twoPChos:MySimpleButton; private var _fourPChos:MySimpleButton; private var _onePChosNum:int; private var _onePChos:MySimpleButton; private var _backBtn:MySimpleButton; private var _threePChos:MySimpleButton; private var _chosArr:Array; public function CharacterSelect(_arg1:int){ super(_arg1); } override protected function init():void{ super.init(); } private function onePBtnHandle(_arg1:MouseEvent):void{ var _local2:MySimpleButton; _onePChosNum = 0; _onePChos.pitchOnStage = 3; for each (_local2 in _chosArr) { if (_local2 != _onePChos){ _local2.pitchOnStage = 1; }; }; } private function twoPBtnHandle(_arg1:MouseEvent):void{ var _local2:MySimpleButton; _onePChosNum = 1; _twoPChos.pitchOnStage = 3; for each (_local2 in _chosArr) { if (_local2 != _twoPChos){ _local2.pitchOnStage = 1; }; }; } private function startHandle(_arg1:MouseEvent):void{ startFunc(); } private function startFunc():void{ this.display = false; UiManager.instance.startGame(); } private function threePBtnHandle(_arg1:MouseEvent):void{ var _local2:MySimpleButton; _onePChosNum = 2; _threePChos.pitchOnStage = 3; for each (_local2 in _chosArr) { if (_local2 != _threePChos){ _local2.pitchOnStage = 1; }; }; } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("characterSelect"); _local1 = new MySimpleButtonFactory(); _partMc = (_mc.getChildByName("partMc") as MovieClip); _partMc.gotoAndStop(1); _onePChos = _local1.creatInstance((_partMc.getChildByName("onePChos") as MovieClip)); _onePChos.pitchOnStage = 3; _twoPChos = _local1.creatInstance((_partMc.getChildByName("twoPChos") as MovieClip)); _threePChos = _local1.creatInstance((_partMc.getChildByName("threePChos") as MovieClip)); _fourPChos = _local1.creatInstance((_partMc.getChildByName("fourPChos") as MovieClip)); _startBtn = _local1.creatInstance((_mc.getChildByName("startBtn") as MovieClip)); _backBtn = _local1.creatInstance((_mc.getChildByName("backBtn") as MovieClip)); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _onePChosNum = 0; _chosArr = new Array(); _chosArr.push(_onePChos, _twoPChos, _threePChos, _fourPChos); } override protected function initListener():void{ super.initListener(); _onePChos.addEventListener(MouseEvent.MOUSE_DOWN, onePBtnHandle, false, 0, true); _twoPChos.addEventListener(MouseEvent.MOUSE_DOWN, twoPBtnHandle, false, 0, true); _threePChos.addEventListener(MouseEvent.MOUSE_DOWN, threePBtnHandle, false, 0, true); _fourPChos.addEventListener(MouseEvent.MOUSE_DOWN, fourPBtnHandle); _startBtn.addEventListener(MouseEvent.MOUSE_DOWN, startHandle, false, 0, true); _backBtn.addEventListener(MouseEvent.MOUSE_DOWN, backHandle, false, 0, true); } private function fourPBtnHandle(_arg1:MouseEvent):void{ var _local2:MySimpleButton; _onePChosNum = 3; _fourPChos.pitchOnStage = 3; for each (_local2 in _chosArr) { if (_local2 != _fourPChos){ _local2.pitchOnStage = 1; }; }; } private function backHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.back(this); } } }//package code.ui
Section 121
//DiffiConfirm (code.ui.DiffiConfirm) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class DiffiConfirm extends AbstractUi { private var _normal:MySimpleButton; private var _hard:MySimpleButton; private var _easy:MySimpleButton; public function DiffiConfirm(_arg1:int){ super(_arg1); } private function cofirm():void{ var _local1:AbstractUi; this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); _local1 = UiManager.instance.getUi("mainUi"); UiManager.instance.transferUi(_local1, "GameSettings", new MainToSettingTactic()); } override public function clearSelf():void{ _easy.clearSelf(); _easy = null; _normal.clearSelf(); _normal = null; _hard.clearSelf(); _hard = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("diffiConfirm"); _local1 = new MySimpleButtonFactory(); _easy = _local1.creatInstance((_mc.getChildByName("easy") as MovieClip)); _normal = _local1.creatInstance((_mc.getChildByName("normal") as MovieClip)); _hard = _local1.creatInstance((_mc.getChildByName("hard") as MovieClip)); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); } private function easyHandle(_arg1:MouseEvent):void{ setStageDiff("easy"); cofirm(); } override protected function initListener():void{ _easy.addEventListener(MouseEvent.CLICK, easyHandle, false, 0, true); _normal.addEventListener(MouseEvent.CLICK, normalHandle, false, 0, true); _hard.addEventListener(MouseEvent.CLICK, hardHandle, false, 0, true); } private function setStageDiff(_arg1:String):void{ var _local2:Array; for each (_local2 in UiManager.instance.uiData.stageDescribe) { _local2[1] = _arg1; }; UiManager.instance.uiData.gameDiff = _arg1; } private function normalHandle(_arg1:MouseEvent):void{ setStageDiff("normal"); cofirm(); } private function hardHandle(_arg1:MouseEvent):void{ setStageDiff("hard"); cofirm(); } private function enterFrameHandle(_arg1:Event):void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); }; } } }//package code.ui
Section 122
//GameInterFace (code.ui.GameInterFace) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import flash.text.*; import code.system.*; public class GameInterFace extends AbstractUi { private var _stageNum:TextField; private var _score:TextField; private var _btnArr:Array; private var _btnNum:int; private var _time:TextField; private var _power:TextField; private var _money:TextField; private var _speed:TextField; private var _diff:TextField; private var _occupy:TextField; private var _pause:MySimpleButton; public function GameInterFace(_arg1:int){ super(_arg1); } public function set money(_arg1:int):void{ _money.text = String(_arg1); } override protected function init():void{ _btnNum = 1; super.init(); } public function get score():int{ return (int(_score.text)); } public function set score(_arg1:int):void{ _score.text = String(_arg1); } private function pauseHandle(_arg1:MouseEvent):void{ var _local2:PauseGame; if (!Game.instance.pause){ Game.instance.gamePause(); UiManager.instance.creatRootUi("PauseGame"); } else { Game.instance.gameUnPause(); _local2 = PauseGame(UiManager.instance.getUi("pauseGame")); _local2.display = false; _local2.clearSelf(); UiManager.instance.clearCreatedUi(_local2); }; } public function changeBtnMc(_arg1:int, _arg2:String):void{ var _local3:MovieClip; _local3 = DisplayManager.instance.getDefinition((_arg2 + "Ico")); _local3.x = _btnArr[_arg1].x; _local3.y = _btnArr[_arg1].y; DisplayManager.instance.removeChild(_btnArr[_arg1]); DisplayManager.instance.addChild(_local3, _mc); _btnArr[_arg1] = _local3; } override public function clearSelf():void{ _money = null; _time = null; _pause.clearSelf(); _pause = null; _btnArr = null; super.clearSelf(); } public function startCountTime():void{ Game.instance.gameData.gameTimeCounter.addEventListener("_timeChange", timeChangeHandle, false, 0, true); } private function timeCountDownHandle(_arg1:Event):void{ this.removeEventListener("timeCountDown", timeCountDownHandle); this.addEventListener("overTimeCountDown", overTimeCountDownHandle, false, 0, true); } override protected function initView():void{ var _local1:MySimpleButtonFactory; var _local2:int; var _local3:int; var _local4:String; var _local5:MovieClip; super.initView(); setMc("gameInterFace"); _local1 = new MySimpleButtonFactory(); _money = (_mc.getChildByName("money") as TextField); _money.selectable = false; _time = (_mc.getChildByName("time") as TextField); _time.selectable = false; _pause = _local1.creatInstance((_mc.getChildByName("pause") as MovieClip)); _pause.pressSound = "pauseSound"; _btnArr = new Array(); _local2 = 0; while (_local2 < _btnNum) { _local5 = (_mc.getChildByName(("btn" + _local2)) as MovieClip); _local5.stop(); _btnArr.push(_local5); _local2++; }; _score = (_mc.getChildByName("score") as TextField); _power = (_mc.getChildByName("power") as TextField); _speed = (_mc.getChildByName("speed") as TextField); _occupy = (_mc.getChildByName("occupy") as TextField); _stageNum = (_mc.getChildByName("stageNum") as TextField); _local3 = UiManager.instance.uiData.stageNum; if ((((_local3 == 19)) || ((_local3 == 20)))){ _local4 = Language.instance.getLanguage("Turorial"); } else { _local4 = _local3.toString(); }; _stageNum.text = _local4; _diff = (_mc.getChildByName("diffi") as TextField); _diff.text = Language.instance.getLanguage(UiManager.instance.uiData.gameDiff); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "gameInterFace"; _score.text = "0"; } private function overTimeCountDownHandle(_arg1:Event):void{ this.removeEventListener("overTimeCountDown", overTimeCountDownHandle); } override protected function initListener():void{ super.initListener(); _pause.addEventListener(MouseEvent.MOUSE_DOWN, pauseHandle, false, 0, true); this.addEventListener("timeCountDown", timeCountDownHandle, false, 0, true); } private function timeChangeHandle(_arg1:Event):void{ _time.text = Game.instance.gameData.gameTimeCounter.backTime; } public function setTextList(_arg1:int):void{ _power.text = UiManager.instance.uiData.unitInfo[_arg1][2]; _speed.text = UiManager.instance.uiData.unitInfo[_arg1][3]; _occupy.text = UiManager.instance.uiData.unitInfo[_arg1][4]; } public function get btnArr():Array{ return (_btnArr); } } }//package code.ui
Section 123
//GameOver (code.ui.GameOver) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import flash.text.*; import code.system.*; public class GameOver extends AbstractUi { private var _score:TextField; private var _submitBtn:MySimpleButton; private var _playName:EnterNameTextField; private var _tryAgain:MySimpleButton; private var _moreGames:MySimpleButton; public function GameOver(_arg1:int){ super(_arg1); } private function tryAgainHandle(_arg1:MouseEvent):void{ SoundManager.instance.stop("gameFail"); SoundManager.instance.deleMusic("gameFail"); UiManager.instance.startGame(); } override protected function init():void{ super.init(); SoundManager.instance.creatMusic("gameFail", new Array("gameFail"), 1, false); SoundManager.instance.play("gameFail"); } public function set score(_arg1:int):void{ _score.text = String(_arg1); } override public function clearSelf():void{ _score = null; _playName.clearSelf(); _playName = null; _submitBtn.clearSelf(); _submitBtn = null; _moreGames.clearSelf(); _moreGames = null; _tryAgain.clearSelf(); _tryAgain = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("gameOver"); _local1 = new MySimpleButtonFactory(); _score = (_mc.getChildByName("score") as TextField); _score.selectable = false; _playName = new EnterNameTextField((_mc.getChildByName("playName") as TextField)); _submitBtn = _local1.creatInstance((_mc.getChildByName("submitBtn") as MovieClip)); _moreGames = _local1.creatInstance((_mc.getChildByName("moreGames") as MovieClip)); _tryAgain = _local1.creatInstance((_mc.getChildByName("tryAgain") as MovieClip)); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "gameOver"; } override protected function initListener():void{ super.initListener(); _submitBtn.addEventListener(MouseEvent.MOUSE_DOWN, submitHandle, false, 0, true); _tryAgain.addEventListener(MouseEvent.MOUSE_DOWN, tryAgainHandle, false, 0, true); } private function submitHandle(_arg1:MouseEvent):void{ new GameEndFactory().getResource().standardGameEndFlowStepThree(); SoundManager.instance.stop("gameFail"); SoundManager.instance.deleMusic("gameFail"); this.display = false; ScoreList.compareScore(new Array(_playName.textValue, int(_score.text), "noTitle")); UiManager.instance.creatRootUi("ScoreList", new ScoreListBackMain()); this.clearSelf(); UiManager.instance.clearCreatedUi(this); } } }//package code.ui
Section 124
//GameSettings (code.ui.GameSettings) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class GameSettings extends AbstractUi { private var _stageBtnArr:Array; private var _back:MySimpleButton; public function GameSettings(_arg1:int){ super(_arg1); } override public function set display(_arg1:Boolean):void{ var _local2:MySimpleButton; if (_arg1){ DisplayManager.instance.addChild(_container, UiManager.instance.uiContainer); _local2 = _stageBtnArr[0]; if (UiManager.instance.uiData.myMapInfo != null){ _local2.pitchOnStage = 5; _local2.mouseEnabled = true; _local2.addEventListener(MouseEvent.CLICK, stageBtnClickHandle, false, 0, true); }; } else { DisplayManager.instance.removeChild(_container); }; } override protected function init():void{ _stageBtnArr = new Array(); super.init(); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "gameSettings"; } private function stageBtnClickHandle(_arg1:MouseEvent):void{ var _local2:MySimpleButton; var _local3:Number; for each (_local2 in _stageBtnArr) { if (_local2.mc == MovieClip(_arg1.target)){ _local3 = _stageBtnArr.indexOf(_local2); UiManager.instance.uiData.stageNum = _local3; UiManager.instance.transferUi(this, "SettingConfirm"); SettingConfirm(UiManager.instance.getUi("settingConfirm")).setStageInfo(); break; }; }; } override protected function initView():void{ var _local1:MySimpleButtonFactory; var _local2:MySimpleButton; var _local3:int; var _local4:MySimpleButton; super.initView(); setMc("gameSettings"); _local1 = new MySimpleButtonFactory(); _local2 = _local1.creatInstance((_mc.getChildByName("s0") as MovieClip)); _local2.pressSound = "mapSelectPress"; _local2.touchSound = "mapSelectTouch"; if (UiManager.instance.uiData.myMapInfo != null){ _local2.pitchOnStage = 5; _local2.mouseEnabled = true; _local2.addEventListener(MouseEvent.CLICK, stageBtnClickHandle, false, 0, true); } else { _local2.pitchOnStage = 4; _local2.mouseEnabled = false; }; _stageBtnArr.push(_local2); _local3 = 1; while (_local3 < UiManager.instance.uiData.totalStageNum) { _local4 = _local1.creatInstance((_mc.getChildByName(("s" + _local3)) as MovieClip)); _local4.pressSound = "mapSelectPress"; _local4.touchSound = "mapSelectTouch"; if (UiManager.instance.uiData.stageDescribe[_local3][3]){ _local4.pitchOnStage = 4; _local4.mouseEnabled = false; } else { if (UiManager.instance.uiData.stageDescribe[_local3][2]){ _local4.pitchOnStage = 3; if ((((_local3 == 19)) || ((_local3 == 20)))){ _local4.mouseEnabled = false; }; }; }; _local4.addEventListener(MouseEvent.CLICK, stageBtnClickHandle, false, 0, true); _stageBtnArr.push(_local4); _local3++; }; _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); } override protected function initListener():void{ super.initListener(); _back.addEventListener(MouseEvent.CLICK, clickHandle); } override public function clearSelf():void{ var _local1:MySimpleButton; for each (_local1 in _stageBtnArr) { _local1.clearSelf(); _local1.removeEventListener(MouseEvent.CLICK, stageBtnClickHandle); }; _stageBtnArr = null; super.clearSelf(); } private function clickHandle(_arg1:MouseEvent):void{ _bindingUiResource.getResource("back")(this); } } }//package code.ui
Section 125
//HideStageTactic (code.ui.HideStageTactic) package code.ui { public class HideStageTactic { private var _stageHideInfoArr:Array; public function HideStageTactic(){ init(); } private function init():void{ _stageHideInfoArr = new Array(new Array([19], 20), new Array([19, 20], 1), new Array([1], 2), new Array([2], 3), new Array([3], 4), new Array([4], 5), new Array([5], 6), new Array([6], 7), new Array([7], 8), new Array([8], 9), new Array([9], 10), new Array([10], 11), new Array([11], 12), new Array([12], 13), new Array([13], 14), new Array([14], 15), new Array([15], 16), new Array([16], 17), new Array([17], 18)); } public function changeStageHide(_arg1:int):Boolean{ var _local2:Boolean; var _local3:Array; var _local4:Boolean; var _local5:int; for each (_local3 in _stageHideInfoArr) { if (_local3[0].indexOf(!((_arg1 == -1)))){ _local4 = true; for each (_local5 in _local3[0]) { if (!UiManager.instance.uiData.stageDescribe[_local5][2]){ _local4 = false; break; }; }; if (_local4){ UiManager.instance.uiData.stageDescribe[_local3[1]][3] = false; _local2 = true; }; }; }; return (_local2); } } }//package code.ui
Section 126
//HideUnitTactic (code.ui.HideUnitTactic) package code.ui { public class HideUnitTactic { private var _unitHideArr:Array; private var _unitHideTacticArr:Array; private var _unitHideInfoArr:Array; public function HideUnitTactic(){ init(); } private function init():void{ _unitHideArr = new Array(); _unitHideArr["tank"] = false; _unitHideArr["soldie"] = true; _unitHideArr["recon"] = true; _unitHideArr["heavyTank"] = true; _unitHideArr["artillery"] = true; _unitHideArr["demon"] = true; _unitHideInfoArr = new Array("soldie", "recon", "heavyTank", "artillery", "demon"); _unitHideTacticArr = new Array(); _unitHideTacticArr["soldie"] = [19]; _unitHideTacticArr["recon"] = [20]; _unitHideTacticArr["heavyTank"] = [6]; _unitHideTacticArr["artillery"] = [6]; _unitHideTacticArr["demon"] = [12]; } public function changeUnitHide():Boolean{ var _local1:Boolean; var _local2:String; var _local3:Boolean; var _local4:int; for each (_local2 in _unitHideInfoArr) { _local3 = true; for each (_local4 in _unitHideTacticArr[_local2]) { if (!UiManager.instance.uiData.stageDescribe[_local4][2]){ _local3 = false; }; }; if (_local3){ _unitHideArr[_local2] = false; _local1 = true; }; }; return (_local1); } public function get unitHideArr():Array{ return (_unitHideArr); } } }//package code.ui
Section 127
//HowToPlay (code.ui.HowToPlay) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class HowToPlay extends AbstractUi { private var _nextP:MySimpleButton; private var _back:MySimpleButton; private var _backP:MySimpleButton; private var _page:MovieClip; public function HowToPlay(_arg1:int){ super(_arg1); } private function judgeBtnDis():void{ } override protected function init():void{ super.init(); } private function nextPHandle(_arg1:MouseEvent):void{ _page.gotoAndStop(2); } override public function clearSelf():void{ _back.clearSelf(); _back = null; _nextP.clearSelf(); _nextP = null; _backP.clearSelf(); _backP = null; _page = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("howToPlay"); _local1 = new MySimpleButtonFactory(); _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); _nextP = _local1.creatInstance((_mc.getChildByName("nextP") as MovieClip)); _backP = _local1.creatInstance((_mc.getChildByName("backP") as MovieClip)); _page = (_mc.getChildByName("page") as MovieClip); _page.stop(); judgeBtnDis(); } private function backPHandle(_arg1:MouseEvent):void{ _page.gotoAndStop(1); } override protected function initListener():void{ _back.addEventListener(MouseEvent.MOUSE_DOWN, backHandle, false, 0, true); _nextP.addEventListener(MouseEvent.MOUSE_DOWN, nextPHandle, false, 0, true); _backP.addEventListener(MouseEvent.MOUSE_DOWN, backPHandle, false, 0, true); } private function backHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.back(this); } } }//package code.ui
Section 128
//LevelComplete (code.ui.LevelComplete) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import flash.text.*; import code.system.*; public class LevelComplete extends AbstractUi { private var _reconPoint:TextField; private var _artilleryPoint:TextField; private var _demonPoint:TextField; private var _soldierPoint:TextField; private var _levelPoint:TextField; private var _quit:MySimpleButton; private var _buildingPoint:TextField; private var _soldier:TextField; private var _total:TextField; private var _tankPoint:TextField; private var _hideInfo:MovieClip; private var _recon:TextField; private var _level:TextField; private var _defenceTower:TextField; private var _artillery:TextField; private var _tank:TextField; private var _heavyTank:TextField; private var _nextLevel:MySimpleButton; private var _heavyTankPoint:TextField; private var _demon:TextField; private var _defenceTowerPoint:TextField; public function LevelComplete(_arg1:int){ super(_arg1); } private function quitClickHandle(_arg1:MouseEvent):void{ SoundManager.instance.stop("levelCompleteMusic"); SoundManager.instance.deleMusic("levelCompleteMusic"); this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); new GameEndFactory().getResource().standardGameEndFlowStepThree(); UiManager.instance.gameOver(); } override protected function init():void{ super.init(); SoundManager.instance.creatMusic("levelCompleteMusic", new Array("levelCompleteMusic"), 1, false); SoundManager.instance.play("levelCompleteMusic"); } public function set soldier(_arg1:int):void{ _soldier.text = String(_arg1); } public function set level(_arg1:int):void{ _level.text = String(_arg1); } public function set defenceTower(_arg1:int):void{ _defenceTower.text = String(_arg1); } public function get total():int{ return (int(_total.text)); } override public function clearSelf():void{ super.clearSelf(); _bindingUiResource = null; _soldier = null; _tank = null; _recon = null; _level = null; _total = null; _demon = null; _artillery = null; _soldierPoint = null; _tankPoint = null; _reconPoint = null; _heavyTankPoint = null; _demonPoint = null; _artilleryPoint = null; _defenceTower = null; _defenceTowerPoint = null; DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); _hideInfo = null; } public function set soldierPoint(_arg1:int):void{ _soldierPoint.text = String(_arg1); } public function playHideInfo():void{ _hideInfo.play(); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle); } public function set buildingPoint(_arg1:int):void{ _buildingPoint.text = String(_arg1); } public function set heavyTankPoint(_arg1:int):void{ _heavyTankPoint.text = String(_arg1); } public function set total(_arg1:int):void{ _total.text = String(_arg1); } public function set artillery(_arg1:int):void{ _artillery.text = String(_arg1); } public function set tankPoint(_arg1:int):void{ _tankPoint.text = String(_arg1); } public function set heavyTank(_arg1:int):void{ _heavyTank.text = String(_arg1); } private function nextLevelClickHandle(_arg1:MouseEvent):void{ SoundManager.instance.stop("levelCompleteMusic"); SoundManager.instance.deleMusic("levelCompleteMusic"); _bindingUiResource.getResource("nextLevelFunc")(); } public function set reconPoint(_arg1:int):void{ _reconPoint.text = String(_arg1); } public function set demonPoint(_arg1:int):void{ _demonPoint.text = String(_arg1); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("levelComplete"); _soldier = (_mc.getChildByName("soldier") as TextField); _soldier.selectable = false; _soldier.text = "0"; _tank = (_mc.getChildByName("tank") as TextField); _tank.selectable = false; _tank.text = "0"; _recon = (_mc.getChildByName("recon") as TextField); _recon.selectable = false; _recon.text = "0"; _heavyTank = (_mc.getChildByName("heavyTank") as TextField); _heavyTank.selectable = false; _heavyTank.text = "0"; _demon = (_mc.getChildByName("demon") as TextField); _demon.selectable = false; _demon.text = "0"; _artillery = (_mc.getChildByName("artillery") as TextField); _artillery.selectable = false; _artillery.text = "0"; _soldierPoint = (_mc.getChildByName("soldierPoint") as TextField); _soldierPoint.selectable = false; _soldierPoint.text = "0"; _tankPoint = (_mc.getChildByName("tankPoint") as TextField); _tankPoint.selectable = false; _tankPoint.text = "0"; _reconPoint = (_mc.getChildByName("reconPoint") as TextField); _reconPoint.selectable = false; _reconPoint.text = "0"; _heavyTankPoint = (_mc.getChildByName("heavyTankPoint") as TextField); _heavyTankPoint.selectable = false; _heavyTankPoint.text = "0"; _demonPoint = (_mc.getChildByName("demonPoint") as TextField); _demonPoint.selectable = false; _demonPoint.text = "0"; _artilleryPoint = (_mc.getChildByName("artilleryPoint") as TextField); _artilleryPoint.selectable = false; _artilleryPoint.text = "0"; _defenceTower = (_mc.getChildByName("defenceTower") as TextField); _defenceTower.selectable = false; _defenceTower.text = "0"; _defenceTowerPoint = (_mc.getChildByName("defenceTowerPoint") as TextField); _defenceTowerPoint.selectable = false; _defenceTowerPoint.text = "0"; _buildingPoint = (_mc.getChildByName("buildingPoint") as TextField); _buildingPoint.selectable = false; _buildingPoint.text = "0"; _level = (_mc.getChildByName("level") as TextField); _level.selectable = false; _level.text = "0"; _levelPoint = (_mc.getChildByName("levelPoint") as TextField); _levelPoint.selectable = false; _levelPoint.text = "0"; _total = (_mc.getChildByName("total") as TextField); _total.selectable = false; _total.text = "0"; _local1 = new MySimpleButtonFactory(); _nextLevel = _local1.creatInstance((_mc.getChildByName("nextLevel") as MovieClip)); _quit = _local1.creatInstance((_mc.getChildByName("quit") as MovieClip)); _hideInfo = (_mc.getChildByName("hideInfo") as MovieClip); _hideInfo.stop(); } public function set demon(_arg1:int):void{ _demon.text = String(_arg1); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "levelComplete"; } public function set tank(_arg1:int):void{ _tank.text = String(_arg1); } public function set artilleryPoint(_arg1:int):void{ _artilleryPoint.text = String(_arg1); } override protected function initListener():void{ super.initListener(); UiManager.instance.renewFocus(); _nextLevel.addEventListener(MouseEvent.CLICK, nextLevelClickHandle, false, 0, true); _quit.addEventListener(MouseEvent.MOUSE_DOWN, quitClickHandle); } public function set recon(_arg1:int):void{ _recon.text = String(_arg1); } public function set defenceTowerPoint(_arg1:int):void{ _defenceTowerPoint.text = String(_arg1); } private function enterFrameHandle(_arg1:Event):void{ if (_hideInfo.currentFrame == _hideInfo.totalFrames){ DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); _hideInfo.stop(); }; } } }//package code.ui
Section 129
//LevelComToSettingTactic (code.ui.LevelComToSettingTactic) package code.ui { public class LevelComToSettingTactic extends AbstactUiTactic { override protected function init():void{ super.init(); _resourceArr["back"] = back; } private function back(_arg1:AbstractUi):void{ _arg1.display = false; UiManager.instance.gameOver(); } } }//package code.ui
Section 130
//MainToSettingTactic (code.ui.MainToSettingTactic) package code.ui { public class MainToSettingTactic extends AbstactUiTactic { override protected function init():void{ super.init(); _resourceArr["back"] = back; } private function back(_arg1:AbstractUi):void{ _arg1.display = false; UiManager.instance.back(_arg1); } } }//package code.ui
Section 131
//MainUi (code.ui.MainUi) package code.ui { import flash.events.*; import flash.display.*; import flash.text.*; import code.system.*; public class MainUi extends AbstractUi { private var _startBtn:MySimpleButton; private var _edition:TextField; private var _moreGamesBtn:MySimpleButton; private var _qualityCtl:MovieClip; private var _livelEditor:MySimpleButton; private var _soundCtl:MovieClip; private var _highScoresBtn:MySimpleButton; private var _howToPlayBtn:MySimpleButton; public function MainUi(_arg1:int){ super(_arg1); } private function highHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.transferUi(this, "ScoreList", new ScoreListBack()); } override protected function init():void{ super.init(); } private function livelEditorHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.transferUi(this, "MapCreater"); } private function howHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.transferUi(this, "HowToPlay"); } private function startHandle(_arg1:MouseEvent):void{ UiManager.instance.creatRootUi("DiffiConfirm"); } override public function clearSelf():void{ super.clearSelf(); DisplayManager.instance.removeChild(_edition); _edition = null; _startBtn.clearSelf(); _startBtn = null; _highScoresBtn.clearSelf(); _highScoresBtn = null; _howToPlayBtn.clearSelf(); _howToPlayBtn = null; _moreGamesBtn.clearSelf(); _moreGamesBtn = null; _livelEditor.clearSelf(); _livelEditor = null; _soundCtl = null; _qualityCtl = null; } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("gameStart"); _local1 = new MySimpleButtonFactory(); _startBtn = _local1.creatInstance((_mc.getChildByName("start") as MovieClip)); _highScoresBtn = _local1.creatInstance((_mc.getChildByName("highScores") as MovieClip)); _howToPlayBtn = _local1.creatInstance((_mc.getChildByName("howToPlay") as MovieClip)); _moreGamesBtn = _local1.creatInstance((_mc.getChildByName("moreGames") as MovieClip)); _livelEditor = _local1.creatInstance((_mc.getChildByName("levelEditor") as MovieClip)); _soundCtl = (_mc.getChildByName("sound") as MovieClip); _soundCtl.stop(); _soundCtl.buttonMode = true; _qualityCtl = (_mc.getChildByName("quality") as MovieClip); _qualityCtl.stop(); _qualityCtl.buttonMode = true; DocumentClass.instance.stage.quality = "high"; _edition = new TextField(); _edition.selectable = false; _edition.x = 0; _edition.y = 0; _edition.text = "v1.00"; DisplayManager.instance.addChild(_edition, _container); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "mainUi"; initQuality(); initSound(); } private function soundCtlHandle(_arg1:MouseEvent):void{ if (_soundCtl.currentFrame == 1){ _soundCtl.gotoAndStop(2); SoundManager.instance.soundSwitch = false; SoundManager.instance.musicSwitch = false; } else { _soundCtl.gotoAndStop(1); SoundManager.instance.soundSwitch = true; SoundManager.instance.musicSwitch = true; }; } private function initSound():void{ if (SoundManager.instance.soundSwitch != true){ _soundCtl.gotoAndStop(2); } else { _soundCtl.gotoAndStop(1); }; } override protected function initListener():void{ super.initListener(); _soundCtl.addEventListener(MouseEvent.MOUSE_DOWN, soundCtlHandle, false, 0, true); _qualityCtl.addEventListener(MouseEvent.MOUSE_DOWN, qualityCtlHandle, false, 0, true); _startBtn.addEventListener(MouseEvent.MOUSE_DOWN, startHandle, false, 0, true); _highScoresBtn.addEventListener(MouseEvent.MOUSE_DOWN, highHandle, false, 0, true); _howToPlayBtn.addEventListener(MouseEvent.MOUSE_DOWN, howHandle, false, 0, true); _livelEditor.addEventListener(MouseEvent.MOUSE_DOWN, livelEditorHandle, false, 0, true); } private function initQuality():void{ if (UiManager.instance.uiData.quality == "high"){ DocumentClass.instance.stage.quality = "high"; _qualityCtl.gotoAndStop(1); } else { if (UiManager.instance.uiData.quality == "medium"){ DocumentClass.instance.stage.quality = "medium"; _qualityCtl.gotoAndStop(2); } else { if (UiManager.instance.uiData.quality == "low"){ _qualityCtl.gotoAndStop(3); DocumentClass.instance.stage.quality = "low"; }; }; }; } private function qualityCtlHandle(_arg1:MouseEvent):void{ var _local2:int; if (_qualityCtl.currentFrame == 3){ _qualityCtl.gotoAndStop(1); } else { _local2 = _qualityCtl.currentFrame; _qualityCtl.gotoAndStop((_local2 + 1)); }; if (_qualityCtl.currentFrame == 1){ DocumentClass.instance.stage.quality = "high"; UiManager.instance.uiData.quality = "high"; } else { if (_qualityCtl.currentFrame == 2){ DocumentClass.instance.stage.quality = "medium"; UiManager.instance.uiData.quality = "medium"; } else { if (_qualityCtl.currentFrame == 3){ DocumentClass.instance.stage.quality = "low"; UiManager.instance.uiData.quality = "low"; }; }; }; } } }//package code.ui
Section 132
//MapCreater (code.ui.MapCreater) package code.ui { import flash.events.*; import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class MapCreater extends AbstractUi { private var _mapMove:Point; private var _right:MovieClip; private var _proxyBtnParaArr:Array; private var _up:MovieClip; private var _unitRollList:UnitRollList; private var _lineOffMc:MovieClip; private var _lineOnMc:MovieClip; private var _mapContainer:Sprite; private var _creatArr:Array; private var _lensSize:Point; private var _confirm:MySimpleButton; private var _bgName:String; private var _down:MovieClip; private var _gridding:MovieClip; private var _proxyBtnList:SimpleBtnList; private var _back:MySimpleButton; private var _line:MySimpleButton; private var _btnList:BtnList; private var _bgArr:Array; private var _left:MovieClip; private var _createdArr:Array; private var _unitRule:Array; public function MapCreater(_arg1:int){ super(_arg1); bgDispose("stage_00_bg"); } private function confirmHandle(_arg1:MouseEvent):void{ var _local2:AbstractUi; _local2 = UiManager.instance.creatRootUi("SaveConfirm"); _local2.addEventListener("save", saveGame); } private function baseDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("baseBtnList")); _proxyBtnParaArr[0] = "normalBase"; _proxyBtnParaArr[1] = NormalBase; btnListDispose(_arg1); _btnList.setBtnMouse(false); } private function saveGame(_arg1:Event):void{ AbstractUi(_arg1.target).removeEventListener("save", saveGame); if (_createdArr.length != 0){ UiManager.instance.uiData.myMapInfo = new MyMapInfo(); UiManager.instance.uiData.myMapInfo.mapInfo = _createdArr; if (_bgName != null){ UiManager.instance.uiData.myMapInfo.bgName = _bgName; } else { UiManager.instance.uiData.myMapInfo.bgName = "stage_20_bg"; }; }; _unitRollList.confirm(); } private function bgDispose(_arg1:String):void{ var _local2:MovieClip; _bgName = _arg1; if (_bgArr.length != 0){ DisplayManager.instance.removeChild(_bgArr[0]); _bgArr[0] = null; }; _local2 = DisplayManager.instance.getDefinition(_arg1); _bgArr[0] = _local2; _local2.x = UiManager.instance.uiData.excursion.x; _local2.y = UiManager.instance.uiData.excursion.y; DisplayManager.instance.addChildAt(_local2, _mapContainer, 0); } private function confirmCreatNum(_arg1:String, _arg2:int):Boolean{ var _local3:int; _local3 = UiManager.instance.uiData.unitRule[_arg1][_arg2]; if (_unitRule[_arg1][_arg2] == _local3){ return (false); }; if (_unitRule[_arg1][_arg2] < _local3){ return (true); }; return (false); } private function leftHandle(_arg1:Event):void{ var _local2:int; _local2 = (_mapMove.x + 4); if (_local2 < 0){ _mapContainer.x = (_mapContainer.x + 4); _mapMove.x = (_mapMove.x + 4); } else { _mapContainer.x = 0; }; } private function lineHandle(_arg1:MouseEvent):void{ if (_line.mc == (_mc.getChildByName("lineOn") as MovieClip)){ _line.resteMc(_lineOffMc); if (_gridding == null){ _gridding = DisplayManager.instance.getDefinition("gridding"); }; _gridding.x = UiManager.instance.uiData.excursion.x; _gridding.y = UiManager.instance.uiData.excursion.y; DisplayManager.instance.addChild(_gridding, _mapContainer); } else { _line.resteMc(_lineOnMc); DisplayManager.instance.removeChild(_gridding); }; _line.addEventListener(MouseEvent.MOUSE_DOWN, lineHandle, false, 0, true); } private function defenceTowerDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("defenceTowerBtnList")); _proxyBtnParaArr[0] = "defenceTower_down"; _proxyBtnParaArr[1] = DefenceTower; btnListDispose(_arg1); _btnList.setBtnMouse(false); } override public function clearSelf():void{ super.clearSelf(); _creatArr = null; _createdArr = null; _confirm.clearSelf(); _confirm = null; _back.clearSelf(); _back = null; _line.clearSelf(); _line = null; _gridding = null; _lineOnMc = null; _lineOffMc = null; _btnList.clearSelf(); _btnList = null; _bgArr = null; _up = null; _down = null; _left = null; _right = null; _mapContainer = null; _mapMove = null; _lensSize = null; _unitRule = null; if (_proxyBtnList != null){ _proxyBtnList.clearSelf(); _proxyBtnList = null; }; _proxyBtnParaArr = null; } private function homeDispose(_arg1:int):void{ var _local2:int; _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("HQBtnList")); _local2 = 0; while (_local2 < _unitRule["home"].length) { _proxyBtnList.setBtnMouse(_local2, confirmCreatNum("home", _local2)); _local2++; }; _proxyBtnParaArr[0] = "home"; _proxyBtnParaArr[1] = Home; btnListDispose(_arg1); _btnList.setBtnMouse(false); } private function portDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("portBtnList")); _proxyBtnParaArr[0] = "port"; _proxyBtnParaArr[1] = Port; btnListDispose(_arg1); _btnList.setBtnMouse(false); } private function rightHandle(_arg1:Event):void{ var _local2:int; _local2 = (_mapMove.x - 4); if (Math.abs(_local2) < ((UiManager.instance.uiData.mapSize.x * UiManager.instance.uiData.gridWid) - _lensSize.x)){ _mapContainer.x = (_mapContainer.x - 4); _mapMove.x = (_mapMove.x - 4); } else { _mapContainer.x = -(((UiManager.instance.uiData.mapSize.x * UiManager.instance.uiData.gridWid) - _lensSize.x)); }; } private function riverDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("riverBtnList")); _proxyBtnParaArr[0] = "river"; _proxyBtnParaArr[1] = River; btnListDispose(_arg1); _btnList.setBtnMouse(false); } private function downHandle(_arg1:Event):void{ var _local2:int; _local2 = (_mapMove.y - 4); if (Math.abs(_local2) < ((UiManager.instance.uiData.mapSize.y * UiManager.instance.uiData.gridWid) - _lensSize.y)){ _mapContainer.y = (_mapContainer.y - 4); _mapMove.y = (_mapMove.y - 4); } else { _mapContainer.y = -(((UiManager.instance.uiData.mapSize.y * UiManager.instance.uiData.gridWid) - _lensSize.y)); }; } private function treeDispose(_arg1:int):void{ var _local2:MovieClip; _local2 = DisplayManager.instance.getDefinition("tree"); itemDownHandle(_local2); _creatArr[0] = Tree; _creatArr[1] = 0; _creatArr[2] = "tree"; _creatArr[3] = _arg1; } private function btnListDispose(_arg1:int):void{ _proxyBtnList.mc.x = DocumentClass.instance.stage.mouseX; _proxyBtnList.mc.y = DocumentClass.instance.stage.mouseY; DisplayManager.instance.addChild(_proxyBtnList.mc, _container); _proxyBtnList.addEventListener(MouseEvent.MOUSE_DOWN, btnListHandle); _proxyBtnList.addEventListener("close", btnListCloseHandle); _creatArr[3] = _arg1; } private function upHandle(_arg1:Event):void{ var _local2:int; _local2 = (_mapMove.y + 4); if (_local2 < 0){ _mapContainer.y = (_mapContainer.y + 4); _mapMove.y = (_mapMove.y + 4); } else { _mapContainer.y = 0; }; } private function itemCopyDownHandle(_arg1:MouseEvent):void{ Sprite(_arg1.target).startDrag(); Sprite(_arg1.target).addEventListener(MouseEvent.MOUSE_UP, itemCopyUpHandle, false, 0, true); } private function deleWall(_arg1:Sprite):void{ var _local2:Array; var _local3:int; for each (_local2 in _createdArr) { if (_local2[0] == _arg1){ _local3 = _createdArr.indexOf(_local2); var _local6 = _unitRule[_createdArr[_local3][3]]; var _local7 = _createdArr[_local3][2]; var _local8 = (_local6[_local7] - 1); _local6[_local7] = _local8; _createdArr.splice(_local3, 1); }; }; } private function factoryDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("factoryBtnList")); _proxyBtnParaArr[0] = "factory"; _proxyBtnParaArr[1] = Factory; btnListDispose(_arg1); _btnList.setBtnMouse(false); } private function btnListCloseHandle(_arg1:Event):void{ DisplayManager.instance.removeChild(_proxyBtnList.mc); _proxyBtnList.removeEventListener(MouseEvent.MOUSE_DOWN, btnListHandle); _btnList.setBtnMouse(true); } private function mountainDispose(_arg1:int):void{ var _local2:MovieClip; _local2 = DisplayManager.instance.getDefinition("mountain"); itemDownHandle(_local2); _creatArr[0] = Mountain; _creatArr[1] = 0; _creatArr[2] = "mountain"; _creatArr[3] = _arg1; } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("mapCreater"); _mapContainer = new Sprite(); DisplayManager.instance.addChildAt(_mapContainer, _container, 0); _local1 = new MySimpleButtonFactory(); _confirm = _local1.creatInstance((_mc.getChildByName("confirm") as MovieClip)); _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); _lineOnMc = (_mc.getChildByName("lineOn") as MovieClip); _lineOffMc = (_mc.getChildByName("lineOff") as MovieClip); _line = _local1.creatInstance(_lineOnMc); _btnList = new BtnList((_mc.getChildByName("btnList") as MovieClip)); _btnList.setBtnMask(new Point(70, 330)); _up = (_mc.getChildByName("up") as MovieClip); _down = (_mc.getChildByName("down") as MovieClip); _left = (_mc.getChildByName("left") as MovieClip); _right = (_mc.getChildByName("right") as MovieClip); _unitRollList = UnitRollList(UiManager.instance.creatRootUi("UnitRollList")); } private function itemUpHandle(_arg1:MouseEvent):void{ var _local2:int; var _local3:int; MovieClip(_arg1.target).stopDrag(); MovieClip(_arg1.target).removeEventListener(MouseEvent.MOUSE_UP, itemUpHandle); MovieClip(_arg1.target).x = (MovieClip(_arg1.target).x - _mapMove.x); MovieClip(_arg1.target).y = (MovieClip(_arg1.target).y - _mapMove.y); _local2 = Math.floor(((MovieClip(_arg1.target).x - UiManager.instance.uiData.excursion.x) / UiManager.instance.uiData.gridWid)); _local3 = Math.floor(((MovieClip(_arg1.target).y - UiManager.instance.uiData.excursion.y) / UiManager.instance.uiData.gridWid)); DisplayManager.instance.addChild(MovieClip(_arg1.target), _mapContainer); if ((((((((_local2 >= 0)) && ((_local3 >= 0)))) && ((_local2 < UiManager.instance.uiData.mapSize.x)))) && ((_local3 < UiManager.instance.uiData.mapSize.y)))){ _createdArr.push(new Array(MovieClip(_arg1.target), _creatArr[0], _creatArr[1], _creatArr[2], _creatArr[3])); var _local4 = _unitRule[_creatArr[2]]; var _local5 = _creatArr[1]; var _local6 = (_local4[_local5] + 1); _local4[_local5] = _local6; MovieClip(_arg1.target).x = (((_local2 * UiManager.instance.uiData.gridWid) + UiManager.instance.uiData.excursion.x) + (MovieClip(_arg1.target).width / 2)); MovieClip(_arg1.target).y = (((_local3 * UiManager.instance.uiData.gridWid) + UiManager.instance.uiData.excursion.y) + (MovieClip(_arg1.target).height / 2)); } else { DisplayManager.instance.removeChild(MovieClip(_arg1.target)); }; MovieClip(_arg1.target).addEventListener(MouseEvent.MOUSE_DOWN, itemCopyDownHandle, false, 0, true); _btnList.setBtnMouse(true); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _creatArr = new Array(); _createdArr = new Array(); _bgArr = new Array(); _mapMove = new Point(0, 0); _lensSize = new Point(200, 100); _proxyBtnParaArr = new Array(); _unitRule = new Array(); _unitRule["home"] = new Array(0, 0); _unitRule["river"] = new Array(); _unitRule["airfield"] = new Array(); _unitRule["normalBase"] = new Array(); _unitRule["defenceTower_down"] = new Array(); _unitRule["factory"] = new Array(); _unitRule["port"] = new Array(); _unitRule["mountain"] = new Array(); _unitRule["tree"] = new Array(); } private function btnListHandle(_arg1:MouseEvent):void{ var _local2:MovieClip; DisplayManager.instance.removeChild(_proxyBtnList.mc); _proxyBtnList.removeEventListener(MouseEvent.MOUSE_DOWN, btnListHandle); _local2 = DisplayManager.instance.getDefinition(((_proxyBtnParaArr[0] + "_") + _proxyBtnList.mouseDownBtnNum)); itemDownHandle(_local2); _creatArr[0] = _proxyBtnParaArr[1]; _creatArr[1] = _proxyBtnList.mouseDownBtnNum; _creatArr[2] = _proxyBtnParaArr[0]; } private function airportDispose(_arg1:int):void{ _proxyBtnList = new SimpleBtnList(DisplayManager.instance.getDefinition("airfieldBtnList")); _proxyBtnParaArr[0] = "airfield"; _proxyBtnParaArr[1] = Airfield; btnListDispose(_arg1); _btnList.setBtnMouse(false); } override protected function initListener():void{ super.initListener(); _confirm.addEventListener(MouseEvent.MOUSE_DOWN, confirmHandle, false, 0, true); _back.addEventListener(MouseEvent.MOUSE_DOWN, backHandle, false, 0, true); _line.addEventListener(MouseEvent.MOUSE_DOWN, lineHandle, false, 0, true); _btnList.addEventListener(MouseEvent.MOUSE_DOWN, btnMouseDown, false, 0, true); _up.addEventListener(MouseEvent.MOUSE_DOWN, upHandle, false, 0, true); _down.addEventListener(MouseEvent.MOUSE_DOWN, downHandle, false, 0, true); _left.addEventListener(MouseEvent.MOUSE_DOWN, leftHandle, false, 0, true); _right.addEventListener(MouseEvent.MOUSE_DOWN, rightHandle, false, 0, true); } private function btnMouseDown(_arg1:Event):void{ switch (BtnList(_arg1.target).mouseDownBtn){ case 0: riverDispose(0); break; case 1: airportDispose(1); break; case 2: baseDispose(2); break; case 3: defenceTowerDispose(3); break; case 4: factoryDispose(4); break; case 5: homeDispose(5); break; case 6: portDispose(6); break; case 7: mountainDispose(7); break; case 8: treeDispose(8); break; }; } private function itemDownHandle(_arg1:MovieClip):void{ _arg1.x = DocumentClass.instance.stage.mouseX; _arg1.y = DocumentClass.instance.stage.mouseY; DisplayManager.instance.addChild(_arg1, _container); _arg1.startDrag(); _arg1.addEventListener(MouseEvent.CLICK, itemUpHandle); } private function backHandle(_arg1:MouseEvent):void{ _unitRollList.display = false; _unitRollList.clearSelf(); UiManager.instance.clearCreatedUi(_unitRollList); this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); UiManager.instance.back(this); } private function itemCopyUpHandle(_arg1:MouseEvent):void{ var _local2:int; var _local3:int; Sprite(_arg1.target).stopDrag(); Sprite(_arg1.target).removeEventListener(MouseEvent.MOUSE_UP, itemCopyUpHandle); _local2 = Math.floor(((Sprite(_arg1.target).x - UiManager.instance.uiData.excursion.x) / UiManager.instance.uiData.gridWid)); _local3 = Math.floor(((Sprite(_arg1.target).y - UiManager.instance.uiData.excursion.y) / UiManager.instance.uiData.gridWid)); if ((((_local2 >= 0)) && ((_local3 >= 0)))){ Sprite(_arg1.target).x = (((_local2 * UiManager.instance.uiData.gridWid) + (MovieClip(_arg1.target).width / 2)) + UiManager.instance.uiData.excursion.x); Sprite(_arg1.target).y = (((_local3 * UiManager.instance.uiData.gridWid) + (MovieClip(_arg1.target).height / 2)) + UiManager.instance.uiData.excursion.y); } else { DisplayManager.instance.removeChild(Sprite(_arg1.target)); deleWall(Sprite(_arg1.target)); }; } } }//package code.ui
Section 133
//MyMapInfo (code.ui.MyMapInfo) package code.ui { import code.game.map.*; public class MyMapInfo { private var _mapInfo:Array; private var _bgName:String; public function MyMapInfo(){ init(); } private function init():void{ } public function set mapInfo(_arg1:Array):void{ _mapInfo = _arg1; } public function set bgName(_arg1:String):void{ _bgName = _arg1; } public function setMapInfo(_arg1:Map):void{ var _local2:Array; var _local3:int; var _local4:int; _arg1.bgName = _bgName; for each (_local2 in _mapInfo) { _local3 = Math.floor(((_local2[0].x - UiManager.instance.uiData.excursion.x) / UiManager.instance.uiData.gridWid)); _local4 = Math.floor(((_local2[0].y - UiManager.instance.uiData.excursion.y) / UiManager.instance.uiData.gridWid)); _arg1.addObjProp(_local3, _local4, 1, _local2[1], _local2[2]); }; } } }//package code.ui
Section 134
//PauseGame (code.ui.PauseGame) package code.ui { import flash.events.*; import code.game.*; public class PauseGame extends AbstractUi { public function PauseGame(_arg1:int){ super(_arg1); } override protected function init():void{ super.init(); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "pauseGame"; } private function clickHandle(_arg1:MouseEvent):void{ this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); Game.instance.gameUnPause(); } override protected function initView():void{ super.initView(); setMc("pauseGame"); } override protected function initListener():void{ DocumentClass.instance.stage.addEventListener(MouseEvent.CLICK, clickHandle); } override public function clearSelf():void{ DocumentClass.instance.stage.removeEventListener(MouseEvent.CLICK, clickHandle); super.clearSelf(); } } }//package code.ui
Section 135
//SaveConfirm (code.ui.SaveConfirm) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class SaveConfirm extends AbstractUi { private var _cancel:MySimpleButton; private var _save:MySimpleButton; public function SaveConfirm(_arg1:int){ super(_arg1); } private function saveHandle(_arg1:MouseEvent):void{ this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); this.dispatchEvent(new Event("save")); } private function cancelHandle(_arg1:MouseEvent):void{ this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("saveConfirm"); _local1 = new MySimpleButtonFactory(); _save = _local1.creatInstance((_mc.getChildByName("save") as MovieClip)); _cancel = _local1.creatInstance((_mc.getChildByName("cancel") as MovieClip)); } override protected function initListener():void{ _save.addEventListener(MouseEvent.MOUSE_DOWN, saveHandle, false, 0, true); _cancel.addEventListener(MouseEvent.MOUSE_DOWN, cancelHandle, false, 0, true); } override public function clearSelf():void{ _save.clearSelf(); _save = null; _cancel.clearSelf(); _cancel = null; super.clearSelf(); } } }//package code.ui
Section 136
//ScoreList (code.ui.ScoreList) package code.ui { import flash.net.*; import flash.events.*; import flash.display.*; import flash.geom.*; import flash.text.*; import code.system.*; public class ScoreList extends AbstractUi { private var _sevenN:TextField; private var _sevenS:TextField; private var _oneN:TextField; private var _oneS:TextField; private var _threeS:TextField; private var _threeN:TextField; private var _sixS:TextField; private var _sixN:TextField; private var _onePMc:MovieClip; private var _listArr:Array; private var _threeGame:MySimpleButton; private var _nineS:TextField; private var _tenN:TextField; private var _eightN:TextField; private var _eightS:TextField; private var _back:MySimpleButton; private var _tenS:TextField; private var _twoN:TextField; private var _twoS:TextField; private var _newPPosArr:Array; private var _fourS:TextField; private var _fourN:TextField; private var _fiveN:TextField; private var _fiveS:TextField; private var _nineN:TextField; private static var _dataArr:Array; public function ScoreList(_arg1:int){ super(_arg1); flushSharedObject(); } override protected function init():void{ super.init(); } private function flushSharedObject():void{ var _local1:SharedObject; _local1 = SharedObject.getLocal("myHighList_tank_E_01", "/"); _local1.data["scoreList"] = _dataArr; _local1.flush(); } override public function clearSelf():void{ _back.clearSelf(); _back = null; _threeGame.clearSelf(); _threeGame = null; _oneN = null; _oneS = null; _twoN = null; _twoS = null; _threeN = null; _threeS = null; _fourN = null; _fourS = null; _fiveN = null; _fiveS = null; _sixN = null; _sixS = null; _sevenN = null; _sevenS = null; _eightN = null; _eightS = null; _nineN = null; _nineS = null; _tenN = null; _tenS = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("highScore"); _local1 = new MySimpleButtonFactory(); _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); _threeGame = _local1.creatInstance((_mc.getChildByName("threeGame") as MovieClip)); _oneN = (_mc.getChildByName("oneN") as TextField); _oneN.selectable = false; _oneS = (_mc.getChildByName("oneS") as TextField); _oneS.selectable = false; _twoN = (_mc.getChildByName("twoN") as TextField); _twoN.selectable = false; _twoS = (_mc.getChildByName("twoS") as TextField); _twoS.selectable = false; _threeN = (_mc.getChildByName("threeN") as TextField); _threeN.selectable = false; _threeS = (_mc.getChildByName("threeS") as TextField); _threeS.selectable = false; _fourN = (_mc.getChildByName("fourN") as TextField); _fourN.selectable = false; _fourS = (_mc.getChildByName("fourS") as TextField); _fourS.selectable = false; _fiveN = (_mc.getChildByName("fiveN") as TextField); _fiveN.selectable = false; _fiveS = (_mc.getChildByName("fiveS") as TextField); _fiveS.selectable = false; _sixN = (_mc.getChildByName("sixN") as TextField); _sixN.selectable = false; _sixS = (_mc.getChildByName("sixS") as TextField); _sixS.selectable = false; _sevenN = (_mc.getChildByName("sevenN") as TextField); _sevenN.selectable = false; _sevenS = (_mc.getChildByName("sevenS") as TextField); _sevenS.selectable = false; _eightN = (_mc.getChildByName("eightN") as TextField); _eightN.selectable = false; _eightS = (_mc.getChildByName("eightS") as TextField); _eightS.selectable = false; _nineN = (_mc.getChildByName("nineN") as TextField); _nineN.selectable = false; _nineS = (_mc.getChildByName("nineS") as TextField); _nineS.selectable = false; _tenN = (_mc.getChildByName("tenN") as TextField); _tenN.selectable = false; _tenS = (_mc.getChildByName("tenS") as TextField); _tenS.selectable = false; } override protected function initData(_arg1:int):void{ var _local2:int; var _local3:int; super.initData(_arg1); _listArr = new Array(); _listArr[0] = new Array(_oneN, _oneS); _listArr[1] = new Array(_twoN, _twoS); _listArr[2] = new Array(_threeN, _threeS); _listArr[3] = new Array(_fourN, _fourS); _listArr[4] = new Array(_fiveN, _fiveS); _listArr[5] = new Array(_sixN, _sixS); _listArr[6] = new Array(_sevenN, _sevenS); _listArr[7] = new Array(_eightN, _eightS); _listArr[8] = new Array(_nineN, _nineS); _listArr[9] = new Array(_tenN, _tenS); if (_dataArr == null){ initScore(); }; _newPPosArr = new Array(new Point(65, _oneN.y), new Point(65, _twoN.y), new Point(65, _threeN.y), new Point(65, _fourN.y), new Point(65, _fiveN.y), new Point(65, _sixN.y), new Point(65, _sevenN.y), new Point(65, _eightN.y), new Point(65, _nineN.y), new Point(65, _tenN.y)); _local2 = _listArr.length; _local3 = 0; while (_local3 < _local2) { _listArr[_local3][0].text = _dataArr[_local3][0]; _listArr[_local3][1].text = _dataArr[_local3][1]; _local3++; }; if (_onePMc != null){ _mc.addChild(_onePMc); }; _name = "scoreList"; } override protected function initListener():void{ super.initListener(); _back.addEventListener(MouseEvent.MOUSE_DOWN, backHandle, false, 0, true); } private function backHandle(_arg1:MouseEvent):void{ _bindingUiResource.getResource("back")(this); } private static function initScore():void{ var _local1:SharedObject; _local1 = SharedObject.getLocal("myHighList_tank_E01", "/"); if (_local1.data["scoreList"] == null){ _dataArr = new Array(); _dataArr[0] = new Array("Susan D.", 40760); _dataArr[1] = new Array("Tommy L.", 35340); _dataArr[2] = new Array("Isabel R.", 30120); _dataArr[3] = new Array("Mike Strike", 25440); _dataArr[4] = new Array("Gina M.", 20600); _dataArr[5] = new Array("Antonio T.", 15980); _dataArr[6] = new Array("Alain C.", 10580); _dataArr[7] = new Array("Linda M.", 500); _dataArr[8] = new Array("Santina Z.", 300); _dataArr[9] = new Array("Richard BB", 1); } else { _dataArr = _local1.data["scoreList"]; }; } public static function compareScore(_arg1:Array):void{ var _local2:Array; var _local3:int; if (_dataArr == null){ initScore(); }; for each (_local2 in _dataArr) { if (_arg1[1] >= _local2[1]){ _local3 = _dataArr.indexOf(_local2); _dataArr.splice(_local3, 0, _arg1); return; }; }; } } }//package code.ui
Section 137
//ScoreListBack (code.ui.ScoreListBack) package code.ui { public class ScoreListBack extends AbstactUiTactic { override protected function init():void{ super.init(); _resourceArr["back"] = back; } private function back(_arg1:AbstractUi):void{ _arg1.display = false; UiManager.instance.back(_arg1); } } }//package code.ui
Section 138
//ScoreListBackMain (code.ui.ScoreListBackMain) package code.ui { public class ScoreListBackMain extends AbstactUiTactic { override protected function init():void{ super.init(); _resourceArr["back"] = back; } private function back(_arg1:AbstractUi):void{ _arg1.display = false; _arg1.clearSelf(); UiManager.instance.clearCreatedUi(_arg1); UiManager.instance.gameOver(); } } }//package code.ui
Section 139
//SettingConfirm (code.ui.SettingConfirm) package code.ui { import flash.events.*; import flash.display.*; import flash.text.*; import code.system.*; public class SettingConfirm extends AbstractUi { private var _diffi:TextField; private var _stageNum:TextField; private var _bgMc:MovieClip; private var _back:MySimpleButton; private var _done:MySimpleButton; public function SettingConfirm(_arg1:int){ super(_arg1); } override public function set display(_arg1:Boolean):void{ if (_arg1){ DisplayManager.instance.addChild(_container, UiManager.instance.uiContainer); _mc.play(); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); } else { DisplayManager.instance.removeChild(_container); _mc.gotoAndStop(1); }; } public function setStageInfo():void{ _diffi.text = Language.instance.getLanguage(String(UiManager.instance.uiData.stageDescribe[UiManager.instance.uiData.stageNum][1])); if (String(UiManager.instance.uiData.stageDescribe[UiManager.instance.uiData.stageNum][0]) == "Turorial"){ _stageNum.text = Language.instance.getLanguage("Turorial"); } else { _stageNum.text = String(UiManager.instance.uiData.stageDescribe[UiManager.instance.uiData.stageNum][0]); }; _bgMc.gotoAndStop(UiManager.instance.uiData.stageNum); } override public function clearSelf():void{ _done.clearSelf(); _done = null; _back.clearSelf(); _back = null; _diffi = null; _stageNum = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; var _local2:MovieClip; super.initView(); setMc("settingConfirm"); _local1 = new MySimpleButtonFactory(); _done = _local1.creatInstance((_mc.getChildByName("done") as MovieClip)); _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); _local2 = (_mc.getChildByName("stageInfo") as MovieClip); _diffi = (_local2.getChildByName("diffi") as TextField); _stageNum = (_local2.getChildByName("stageNum") as TextField); _bgMc = (_mc.getChildByName("bgMc") as MovieClip); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); } override protected function initData(_arg1:int):void{ super.initData(_arg1); _name = "settingConfirm"; } override protected function initListener():void{ _back.addEventListener(MouseEvent.CLICK, backClickHandle, false, 0, true); _done.addEventListener(MouseEvent.CLICK, doneClickHandle, false, 0, true); } private function doneClickHandle(_arg1:MouseEvent):void{ var _local2:AbstractUi; this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); _local2 = UiManager.instance.getUi("gameSettings"); _local2.display = false; _local2.clearSelf(); UiManager.instance.clearCreatedUi(_local2); UiManager.instance.startGame(); } private function backClickHandle(_arg1:MouseEvent):void{ this.display = false; UiManager.instance.back(this); } private function enterFrameHandle(_arg1:Event):void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); }; } } }//package code.ui
Section 140
//SimpleBtnList (code.ui.SimpleBtnList) package code.ui { import flash.events.*; import flash.display.*; import code.system.*; public class SimpleBtnList extends EventDispatcher { private var _btnArr:Array; private var _mouseDownBtnNum:int; private var _btnMc:MovieClip; private var _btnMcArr:Array; private var _mc:MovieClip; private var _close:MySimpleButton; public function SimpleBtnList(_arg1:MovieClip){ init(_arg1); } private function init(_arg1:MovieClip):void{ _mc = _arg1; _btnMc = (_mc.getChildByName("btnMc") as MovieClip); _btnMcArr = new Array(); _btnArr = new Array(); initBtn(); } public function get mc():MovieClip{ return (_mc); } private function closeHandle(_arg1:MouseEvent):void{ this.dispatchEvent(new Event("close")); } private function initBtn():void{ var _local1:MySimpleButtonFactory; var _local2:int; var _local3:MySimpleButton; _local1 = new MySimpleButtonFactory(); _local2 = 0; while (_local2 < _btnMc.numChildren) { _local3 = _local1.creatInstance((_btnMc.getChildAt(_local2) as MovieClip)); _local3.addEventListener(MouseEvent.MOUSE_DOWN, btnDownHandle, false, 0, true); _btnMcArr.push(_local3.mc); _btnArr.push(_local3); _local2++; }; _close = _local1.creatInstance((_mc.getChildByName("close") as MovieClip)); _close.addEventListener(MouseEvent.CLICK, closeHandle); } public function clearSelf():void{ _mc = null; _btnMc = null; _btnMcArr = null; _close.clearSelf(); _close = null; _btnArr = null; } public function get mouseDownBtnNum():int{ return (_mouseDownBtnNum); } public function setBtnMouse(_arg1:int, _arg2:Boolean):void{ MySimpleButton(_btnArr[_arg1]).mouseEnabled = _arg2; } private function btnDownHandle(_arg1:MouseEvent):void{ _mouseDownBtnNum = _btnMcArr.indexOf(MovieClip(_arg1.target)); this.dispatchEvent(_arg1); } } }//package code.ui
Section 141
//Tutorial (code.ui.Tutorial) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import code.system.*; public class Tutorial extends AbstractUi { private var _back:MySimpleButton; private var _next:MySimpleButton; private var _skip:MySimpleButton; private var _page:MovieClip; public function Tutorial(_arg1:int){ super(_arg1); } private function nextHandle(_arg1:MouseEvent):void{ if (Game.instance.gameData.stageNum == 19){ if (_page.currentFrame == 3){ return; }; _page.nextFrame(); } else { _page.nextFrame(); }; } private function skipHandle(_arg1:MouseEvent):void{ this.display = false; this.clearSelf(); UiManager.instance.clearCreatedUi(this); UiManager.instance.creatRootUi("BuyUnit"); } override public function clearSelf():void{ _skip.clearSelf(); _skip = null; _next.clearSelf(); _next = null; _back.clearSelf(); _back = null; _page = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("tutoriaLevel"); _local1 = new MySimpleButtonFactory(); _skip = _local1.creatInstance((_mc.getChildByName("skip") as MovieClip)); _next = _local1.creatInstance((_mc.getChildByName("next") as MovieClip)); _back = _local1.creatInstance((_mc.getChildByName("back") as MovieClip)); _page = (_mc.getChildByName("page") as MovieClip); if (Game.instance.gameData.stageNum == 19){ _page.stop(); } else { _page.gotoAndStop(4); }; } override protected function initListener():void{ _skip.addEventListener(MouseEvent.MOUSE_DOWN, skipHandle, false, 0, true); _next.addEventListener(MouseEvent.MOUSE_DOWN, nextHandle, false, 0, true); _back.addEventListener(MouseEvent.MOUSE_DOWN, backHandle, false, 0, true); } private function backHandle(_arg1:MouseEvent):void{ if (Game.instance.gameData.stageNum == 20){ if (_page.currentFrame == 4){ return; }; _page.prevFrame(); } else { _page.prevFrame(); }; } } }//package code.ui
Section 142
//UiData (code.ui.UiData) package code.ui { import flash.net.*; import flash.geom.*; import code.game.*; public class UiData { private var _twoPTwoRightDate:int; private var _totalStageNum:int; private var _gameMode:String; private var _stageNum:int; private var _stageMusicArr:Array; private var _enemiesNum:int; private var _allLevelComplete:Boolean; private var _twoPOneRightDate:int; private var _twoPTwoUpDate:int; private var _mapSize:Array; private var _stageData:SharedObject; private var _onePOneRightDate:int; private var _stageSetting:StageSetting; private var _stages:String; private var _difficulty:String; private var _twoPTwoLeftDate:int; private var _myMapInfo:MyMapInfo; private var _excursion:Point; private var _playerNum:int; private var _onePRobot:int; private var _onePOneUpDate:int; private var _gridWid:int; private var _gameDiff:String; private var _twoPOneLeftDate:int; private var _twoPTwoBombDate:int; private var _twoPTwoDownDate:int; private var _levels:int; private var _onePOneLeftDate:int; private var _twoPOneBombDate:int; private var _twoPOneDownDate:int; private var _onePOneBombDate:int; private var _unitInfo:Array; private var _quality:String; private var _onePOneDownDate:int; private var _twoPOneUpDate:int; private var _hideUnitTactic:HideUnitTactic; private var _stageArr:Array; private var _stageDescribe:Array; private var _unitPriceArr:Array; private var _hideStageTactic:HideStageTactic; private var _levelOneComplete:Boolean; private var _buttonLanguageNum:int; private var _unitRule:Array; public function UiData(){ init(); } public function set enemiesNum(_arg1:int):void{ _enemiesNum = _arg1; } public function get onePOneBombDate():int{ return (_onePOneBombDate); } public function set quality(_arg1:String):void{ _quality = _arg1; } public function set stageArr(_arg1:Array):void{ _stageArr = _arg1; } public function get totalStageNum():int{ return (_totalStageNum); } private function init():void{ _twoPTwoBombDate = 13; _twoPTwoLeftDate = 37; _twoPTwoRightDate = 39; _twoPTwoDownDate = 40; _twoPTwoUpDate = 38; _twoPOneUpDate = 87; _twoPOneLeftDate = 65; _twoPOneDownDate = 83; _twoPOneRightDate = 68; _twoPOneBombDate = 32; _onePOneUpDate = 38; _onePOneLeftDate = 37; _onePOneDownDate = 40; _onePOneRightDate = 39; _onePOneBombDate = 32; _mapSize = new Array(new Point(18, 14), new Point(20, 15), new Point(18, 14), new Point(18, 17), new Point(24, 18), new Point(32, 18), new Point(20, 17), new Point(19, 13), new Point(27, 20), new Point(18, 18), new Point(21, 16), new Point(35, 30), new Point(20, 20), new Point(19, 19), new Point(27, 15), new Point(26, 24), new Point(35, 18), new Point(46, 26), new Point(35, 33), new Point(18, 18), new Point(18, 18)); _excursion = new Point(100, 5); _unitPriceArr = new Array(); _unitPriceArr["tank"] = 7000; _unitPriceArr["soldier"] = 1000; _unitPriceArr["recon"] = 5000; _unitPriceArr["heavyTank"] = 16000; _unitPriceArr["demon"] = 22000; _unitPriceArr["artillery"] = 6000; _totalStageNum = 21; _stageData = SharedObject.getLocal("stageData_tank_E03", "/"); if (_stageData.data["stageData"] == null){ initStageData(); _stageData.data["stageData"] = _stageDescribe; } else { _stageDescribe = _stageData.data["stageData"]; }; _unitInfo = new Array(new Array("tankInfo", "7000", "B", "B", "C", "1"), new Array("soldierInfo", "1000", "A", "B", "C", "1"), new Array("reconInfo", "5000", "C", "A", "C", "100"), new Array("heavyTankInfo", "16000", "A", "C", "C", "1"), new Array("demonInfo", "22000", "A", "B", "C", "100"), new Array("artilleryInfo", "6000", "B", "C", "C", "1")); _hideStageTactic = new HideStageTactic(); _hideUnitTactic = new HideUnitTactic(); _gridWid = 35; _stageSetting = new StageSetting(); _unitRule = new Array(); _unitRule["home"] = new Array(); _unitRule["home"][0] = 1; _unitRule["home"][1] = 1; _stageMusicArr = new Array("gameMusic0", "gameMusic0", "gameMusic0", "gameMusic0", "gameMusic2", "gameMusic0", "gameMusic0", "gameMusic2", "gameMusic0", "gameMusic1", "gameMusic1", "gameMusic0", "gameMusic2", "gameMusic2", "gameMusic0", "gameMusic0", "gameMusic1", "gameMusic0", "gameMusic0", "gameMusic0", "gameMusic0"); } public function set mapSize(_arg1:Point):void{ _mapSize[0] = _arg1; } public function get quality():String{ return (_quality); } public function get gameDiff():String{ return (_gameDiff); } public function set gameDiff(_arg1:String):void{ _gameDiff = _arg1; } public function get allLevelComplete():Boolean{ return (_allLevelComplete); } public function get twoPTwoUpDate():int{ return (_twoPTwoUpDate); } public function get hideStageTactic():HideStageTactic{ return (_hideStageTactic); } public function get stages():String{ return (_stages); } public function resetStageData():void{ _stageData.data["stageData"] = _stageDescribe; } public function getMapSize(_arg1:int):Point{ return (_mapSize[_arg1]); } public function set stageNum(_arg1:int):void{ _stageNum = _arg1; } public function get unitInfo():Array{ return (_unitInfo); } public function set levelOneComplete(_arg1:Boolean):void{ _levelOneComplete = _arg1; } public function get onePOneUpDate():int{ return (_onePOneUpDate); } public function set gameMode(_arg1:String):void{ _gameMode = _arg1; } public function getStageMusicArr(_arg1:int):String{ return (_stageMusicArr[_arg1]); } public function get levels():int{ return (_levels); } public function set stages(_arg1:String):void{ _stages = _arg1; } public function get stageSetting():StageSetting{ return (_stageSetting); } public function set difficulty(_arg1:String):void{ _difficulty = _arg1; } public function set allLevelComplete(_arg1:Boolean):void{ _allLevelComplete = _arg1; } public function get buttonLanguageNum():int{ return (_buttonLanguageNum); } public function get mapSize():Point{ return (_mapSize[0]); } public function get enemiesNum():int{ return (_enemiesNum); } public function get stageArr():Array{ return (_stageArr); } public function clearData():void{ } public function get levelOneComplete():Boolean{ return (_levelOneComplete); } public function get twoPTwoLeftDate():int{ return (_twoPTwoLeftDate); } private function initStageData():void{ _stageDescribe = new Array(new Array("0", "hard", false, true), new Array("1", "very hard", false, true), new Array("2", "hard", false, true), new Array("3", "hard", false, true), new Array("4", "hard", false, true), new Array("5", "hard", false, true), new Array("6", "hard", false, true), new Array("7", "hard", false, true), new Array("8", "hard", false, true), new Array("9", "hard", false, true), new Array("10", "hard", false, true), new Array("11", "hard", false, true), new Array("12", "hard", false, true), new Array("13", "hard", false, true), new Array("14", "hard", false, true), new Array("15", "hard", false, true), new Array("16", "hard", false, true), new Array("17", "hard", false, true), new Array("18", "hard", false, true), new Array("Turorial", "hard", false, false), new Array("Turorial", "hard", false, true)); } public function get unitRule():Array{ return (_unitRule); } public function get twoPTwoRightDate():int{ return (_twoPTwoRightDate); } public function get gridWid():int{ return (_gridWid); } public function get stageNum():int{ return (_stageNum); } public function get gameMode():String{ return (_gameMode); } public function get twoPOneLeftDate():int{ return (_twoPOneLeftDate); } public function get twoPTwoDownDate():int{ return (_twoPTwoDownDate); } public function get difficulty():String{ return (_difficulty); } public function get twoPTwoBombDate():int{ return (_twoPTwoBombDate); } public function set myMapInfo(_arg1:MyMapInfo):void{ _myMapInfo = _arg1; } public function set onePRobot(_arg1:int):void{ _onePRobot = _arg1; } public function get twoPOneRightDate():int{ return (_twoPOneRightDate); } public function set playerNum(_arg1:int):void{ _playerNum = _arg1; } public function get twoPOneUpDate():int{ return (_twoPOneUpDate); } public function get hideUnitTactic():HideUnitTactic{ return (_hideUnitTactic); } public function get onePOneLeftDate():int{ return (_onePOneLeftDate); } public function get twoPOneDownDate():int{ return (_twoPOneDownDate); } public function get twoPOneBombDate():int{ return (_twoPOneBombDate); } public function set levels(_arg1:int):void{ _levels = _arg1; } public function get onePRobot():int{ return (_onePRobot); } public function get playerNum():int{ return (_playerNum); } public function get excursion():Point{ return (_excursion); } public function get myMapInfo():MyMapInfo{ return (_myMapInfo); } public function get onePOneRightDate():int{ return (_onePOneRightDate); } public function get stageDescribe():Array{ return (_stageDescribe); } public function get onePOneDownDate():int{ return (_onePOneDownDate); } public function get unitPriceArr():Array{ return (_unitPriceArr); } } }//package code.ui
Section 143
//UiManager (code.ui.UiManager) package code.ui { import flash.display.*; import code.game.*; import code.system.*; public class UiManager { private var _createdUiArr:Array; private var _uiContainer:Sprite; private var _uiClassArr:Array; private var _uiData:UiData; private static var _instance:UiManager; public function UiManager(_arg1:UiManagerSingletonEnforcer, _arg2:UiData){ trace(_arg1); init(_arg2); DocumentClass.instance._tracker.trackEvent("Tank Tactics", "mainscreen viewed", "per session", 0); } public function getUi(_arg1:String):AbstractUi{ var _local2:AbstractUi; for each (_local2 in _createdUiArr) { if (_local2 != null){ if (_local2.name == _arg1){ return (_local2); }; }; }; return (null); } public function renewFocus():void{ DocumentClass.instance.stage.focus = _uiContainer; } public function get uiContainer():Sprite{ return (_uiContainer); } private function init(_arg1:UiData):void{ _uiData = _arg1; _createdUiArr = new Array(); _uiContainer = new Sprite(); DisplayManager.instance.addChild(_uiContainer, DocumentClass.instance.stage); _uiClassArr = new Array(); _uiClassArr["GameSettings"] = GameSettings; _uiClassArr["CharacterSelect"] = CharacterSelect; _uiClassArr["HowToPlay"] = HowToPlay; _uiClassArr["MainUi"] = MainUi; _uiClassArr["GameInterFace"] = GameInterFace; _uiClassArr["LevelComplete"] = LevelComplete; _uiClassArr["MapCreater"] = MapCreater; _uiClassArr["BuyUnit"] = BuyUnit; _uiClassArr["UnitChos"] = UnitChos; _uiClassArr["GameOver"] = GameOver; _uiClassArr["ScoreList"] = ScoreList; _uiClassArr["SettingConfirm"] = SettingConfirm; _uiClassArr["PauseGame"] = PauseGame; _uiClassArr["DiffiConfirm"] = DiffiConfirm; _uiClassArr["UnitRollList"] = UnitRollList; _uiClassArr["Tutorial"] = Tutorial; _uiClassArr["SaveConfirm"] = SaveConfirm; } public function clearCreatedUi(_arg1:AbstractUi):void{ var _local2:AbstractUi; for each (_local2 in _createdUiArr) { if (_local2 == _arg1){ _createdUiArr[_createdUiArr.indexOf(_local2)] = null; if (_local2.createrNum != -1){ _createdUiArr[_local2.createrNum].compositeArr.splice(_local2.serialNumber, 1); }; }; }; } private function clearAllUi():void{ var _local1:AbstractUi; for each (_local1 in _createdUiArr) { if (_local1 != null){ _local1.clearSelf(); }; }; _createdUiArr = new Array(); } public function startUi():void{ creatRootUi("MainUi"); SoundManager.instance.creatMusic("uiMusic", new Array("mainMenu"), 10000, false); SoundManager.instance.play("uiMusic"); } public function get uiData():UiData{ return (_uiData); } public function transferUi(_arg1:AbstractUi, _arg2:String, _arg3:AbstactUiTactic=null):void{ var _local4:Class; var _local5:int; var _local6:int; var _local7:AbstractUi; var _local8:AbstractUi; _local4 = _uiClassArr[_arg2]; for each (_local5 in _arg1.compositeArr) { _local8 = _createdUiArr[_local5]; if ((_local8 as _local4)){ _local8.display = true; _local8.bindingUiResource = _arg3; return; }; }; _local6 = getArrPos(); _local7 = new _local4(_local6); _local7.bindingUiResource = _arg3; _local7.createrNum = _arg1.serialNumber; _arg1.addCompositeArr(_local6); _createdUiArr[_local6] = _local7; } function gameOver():void{ clearAllUi(); Game.deleInstance(); DisplayManager.instance.clearAllContainer(); _uiData.clearData(); startUi(); } public function back(_arg1:AbstractUi):void{ var _local2:AbstractUi; _local2 = _createdUiArr[_arg1.createrNum]; _local2.display = true; } private function getArrPos():int{ var _local1:int; _local1 = 0; while (_local1 < _createdUiArr.length) { if (_createdUiArr[_local1] == null){ return (_local1); }; _local1++; }; return (_createdUiArr.length); } public function get stageClear():Boolean{ var _local1:Array; for each (_local1 in _uiData.stageDescribe) { if (!_local1[2]){ return (false); }; }; return (true); } function startGame():void{ var _local1:GameInterFace; clearAllUi(); _local1 = GameInterFace(creatRootUi("GameInterFace")); Game.instance.startGame(); _local1.startCountTime(); SoundManager.instance.stop("uiMusic"); SoundManager.instance.deleMusic("uiMusic"); SoundManager.instance.creatMusic("gameMusic", new Array(_uiData.getStageMusicArr(_uiData.stageNum)), 10000, false); SoundManager.instance.play("gameMusic"); } public function creatRootUi(_arg1:String, _arg2:AbstactUiTactic=null):AbstractUi{ var _local3:Class; var _local4:int; var _local5:AbstractUi; _local3 = _uiClassArr[_arg1]; _local4 = getArrPos(); _local5 = new _local3(_local4); _local5.bindingUiResource = _arg2; _createdUiArr[_local4] = _local5; return (_local5); } public static function get instance():UiManager{ if (UiManager._instance == null){ UiManager._instance = new UiManager(new UiManagerSingletonEnforcer(), new UiData()); }; return (UiManager._instance); } } }//package code.ui class UiManagerSingletonEnforcer { private function UiManagerSingletonEnforcer(){ } }
Section 144
//UnitChos (code.ui.UnitChos) package code.ui { import flash.events.*; import flash.display.*; import code.game.*; import code.system.*; public class UnitChos extends AbstractUi { private var _keyChosMc:MovieClip; private var _deadUnitMcArr:Array; private var _unitMcArr:Array; private var _chosNum:int; public function UnitChos(_arg1:int){ super(_arg1); } override protected function init():void{ super.init(); _unitMcArr = new Array(); _deadUnitMcArr = new Array(); } private function keyDownHandle(_arg1:KeyboardEvent):void{ switch (_arg1.keyCode){ case 9: _chosNum++; if (_chosNum == _unitMcArr.length){ _chosNum = 0; }; _keyChosMc.x = _unitMcArr[_chosNum][0].x; _keyChosMc.y = _unitMcArr[_chosNum][0].y; break; case 32: DisplayManager.instance.removeChild(_keyChosMc); this.display = false; clearSelf(); UiManager.instance.clearCreatedUi(this); Game.instance.gamePause(); break; }; } override protected function initView():void{ super.initView(); setMc("unitChos"); } override public function clearSelf():void{ var _local1:Array; var _local2:MovieClip; DocumentClass.instance.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandle); _keyChosMc = null; for each (_local1 in _unitMcArr) { DisplayManager.instance.removeChild(_local1[0]); }; for each (_local2 in _deadUnitMcArr) { DisplayManager.instance.removeChild(_local2); }; _unitMcArr = null; super.clearSelf(); } override protected function initListener():void{ super.initListener(); DocumentClass.instance.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandle, false, 0, true); UiManager.instance.renewFocus(); } } }//package code.ui
Section 145
//UnitRoll (code.ui.UnitRoll) package code.ui { import flash.events.*; import flash.display.*; import flash.geom.*; import flash.text.*; import code.system.*; public class UnitRoll { private var _rollRange:MovieClip; private var _totalNum:int; private var _insClass:Class; private var _rollNum:int; private var _roll:MovieClip; private var _rollText:TextField; private var _mc:MovieClip; public function UnitRoll(_arg1:MovieClip, _arg2:int=0, _arg3:Class=null){ init(_arg1, _arg2, _arg3); } public function clearSelf():void{ _mc = null; _rollRange = null; _roll = null; _rollText = null; _insClass = null; } private function setRollText():void{ _rollNum = Math.round((((_roll.x - _rollRange.x) / _rollRange.width) * _totalNum)); _rollText.text = _rollNum.toString(); } private function outHandle(_arg1:MouseEvent):void{ stopDrag(); } private function init(_arg1:MovieClip, _arg2:int=0, _arg3:Class=null):void{ _mc = _arg1; _totalNum = _arg2; _insClass = _arg3; _rollRange = (_mc.getChildByName("rollRange") as MovieClip); _roll = (_mc.getChildByName("roll") as MovieClip); _rollText = (_mc.getChildByName("rollText") as TextField); _rollText.text = "0"; _roll.x = _rollRange.x; _roll.y = (_rollRange.y + (_rollRange.height / 2)); _roll.addEventListener(MouseEvent.MOUSE_DOWN, downHandle); } public function get rollNum():int{ return (_rollNum); } private function moveHandle(_arg1:MouseEvent):void{ setRollText(); } private function stopDrag():void{ _roll.stopDrag(); _roll.removeEventListener(MouseEvent.MOUSE_UP, upHandle); _roll.removeEventListener(MouseEvent.MOUSE_OUT, outHandle); _roll.removeEventListener(MouseEvent.MOUSE_MOVE, moveHandle); _roll.addEventListener(MouseEvent.MOUSE_DOWN, downHandle); } public function set rollTextDis(_arg1:Boolean):void{ if (_arg1){ DisplayManager.instance.addChild(_rollText, _mc); } else { DisplayManager.instance.removeChild(_rollText); }; } private function upHandle(_arg1:MouseEvent):void{ stopDrag(); } private function downHandle(_arg1:MouseEvent):void{ _roll.removeEventListener(MouseEvent.MOUSE_DOWN, downHandle); _roll.addEventListener(MouseEvent.MOUSE_UP, upHandle); _roll.addEventListener(MouseEvent.MOUSE_OUT, outHandle); _roll.addEventListener(MouseEvent.MOUSE_MOVE, moveHandle); _roll.startDrag(false, new Rectangle(_rollRange.x, (_rollRange.y + (_rollRange.height / 2)), _rollRange.width, 0.1)); _arg1.stopImmediatePropagation(); } public function get insClass():Class{ return (_insClass); } } }//package code.ui
Section 146
//UnitRollList (code.ui.UnitRollList) package code.ui { import flash.events.*; import flash.display.*; import flash.geom.*; import code.system.*; import code.game.mainItem.*; public class UnitRollList extends AbstractUi { private var _revert:MySimpleButton; private var _reduce:MySimpleButton; private var _reconRoll:UnitRoll; private var _demonRoll:UnitRoll; private var _infantryRoll:UnitRoll; private var _unitRollArr:Array; private var _tankRoll:UnitRoll; private var _artilleryRoll:UnitRoll; private var _heavyTankRoll:UnitRoll; public function UnitRollList(_arg1:int){ super(_arg1); } private function reduceMc(_arg1:Event):void{ _mc.prevFrame(); if (_mc.currentFrame == 1){ DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, reduceMc); _mc.stop(); _revert.mouseEnabled = true; }; } private function mcDownHandle(_arg1:MouseEvent):void{ _mc.startDrag(false, new Rectangle(0, 0, 550, 450)); _mc.addEventListener(MouseEvent.MOUSE_UP, mcUpHandle); } private function revertHandle(_arg1:MouseEvent):void{ _mc.play(); DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, enterFrameHandle, false, 0, true); _revert.mouseEnabled = false; } private function reduceHandle(_arg1:MouseEvent):void{ rollTextDis = false; DocumentClass.instance.stage.addEventListener(Event.ENTER_FRAME, reduceMc, false, 0, true); } override public function clearSelf():void{ _unitRollArr = null; _demonRoll.clearSelf(); _demonRoll = null; _infantryRoll.clearSelf(); _infantryRoll = null; _tankRoll.clearSelf(); _tankRoll = null; _heavyTankRoll.clearSelf(); _heavyTankRoll = null; _reconRoll.clearSelf(); _reconRoll = null; _artilleryRoll.clearSelf(); _artilleryRoll = null; _revert.clearSelf(); _revert = null; _reduce.clearSelf(); _reduce = null; super.clearSelf(); } override protected function initView():void{ var _local1:MySimpleButtonFactory; super.initView(); setMc("unitRollList"); _mc.stop(); _unitRollArr = new Array(); _demonRoll = new UnitRoll((_mc.getChildByName("demonRoll") as MovieClip), 10, Demon); _demonRoll.rollTextDis = false; _unitRollArr.push(_demonRoll); _infantryRoll = new UnitRoll((_mc.getChildByName("infantryRoll") as MovieClip), 10, Soldier); _unitRollArr.push(_infantryRoll); _tankRoll = new UnitRoll((_mc.getChildByName("tankRoll") as MovieClip), 10, Tank); _unitRollArr.push(_tankRoll); _heavyTankRoll = new UnitRoll((_mc.getChildByName("heavyTankRoll") as MovieClip), 10, HeavyTank); _unitRollArr.push(_heavyTankRoll); _reconRoll = new UnitRoll((_mc.getChildByName("reconRoll") as MovieClip), 10, Recon); _unitRollArr.push(_reconRoll); _artilleryRoll = new UnitRoll((_mc.getChildByName("artilleryRoll") as MovieClip), 10, Artillery); _unitRollArr.push(_artilleryRoll); _local1 = new MySimpleButtonFactory(); _revert = _local1.creatInstance((_mc.getChildByName("revert") as MovieClip)); _reduce = _local1.creatInstance((_mc.getChildByName("reduce") as MovieClip)); _mc.addEventListener(MouseEvent.MOUSE_DOWN, mcDownHandle); rollTextDis = false; } public function confirm():void{ var _local1:UnitRoll; var _local2:int; UiManager.instance.uiData.stageSetting.userDefinedUnit.splice(0); for each (_local1 in _unitRollArr) { _local2 = 0; while (_local2 < _local1.rollNum) { UiManager.instance.uiData.stageSetting.userDefinedUnit.push(_local1.insClass); _local2++; }; }; } private function mcUpHandle(_arg1:MouseEvent):void{ _mc.stopDrag(); _mc.removeEventListener(MouseEvent.MOUSE_UP, mcUpHandle); } override protected function initListener():void{ super.initListener(); _revert.addEventListener(MouseEvent.MOUSE_DOWN, revertHandle, false, 0, true); _reduce.addEventListener(MouseEvent.MOUSE_DOWN, reduceHandle, false, 0, true); } private function set rollTextDis(_arg1:Boolean):void{ var _local2:UnitRoll; for each (_local2 in _unitRollArr) { _local2.rollTextDis = _arg1; }; } private function enterFrameHandle(_arg1:Event):void{ if (_mc.currentFrame == _mc.totalFrames){ _mc.stop(); rollTextDis = true; DocumentClass.instance.stage.removeEventListener(Event.ENTER_FRAME, enterFrameHandle); }; } } }//package code.ui
Section 147
//WinCompleteTactic (code.ui.WinCompleteTactic) package code.ui { public class WinCompleteTactic extends AbstactUiTactic { override protected function init():void{ super.init(); _resourceArr["nextLevelFunc"] = nextLevelFunc; } private function nextLevelFunc():void{ var _local1:LevelComplete; _local1 = LevelComplete(UiManager.instance.getUi("levelComplete")); _local1.display = false; _local1.clearSelf(); UiManager.instance.clearCreatedUi(_local1); UiManager.instance.creatRootUi("GameSettings", new LevelComToSettingTactic()); } } }//package code.ui
Section 148
//CampaignInfo (com.google.analytics.campaign.CampaignInfo) package com.google.analytics.campaign { import com.google.analytics.utils.*; public class CampaignInfo { private var _new:Boolean; private var _empty:Boolean; public function CampaignInfo(_arg1:Boolean=true, _arg2:Boolean=false){ _empty = _arg1; _new = _arg2; } public function isEmpty():Boolean{ return (_empty); } public function toURLString():String{ var _local1:Variables; _local1 = toVariables(); return (_local1.toString()); } public function toVariables():Variables{ var _local1:Variables; _local1 = new Variables(); _local1.URIencode = true; if (((!(isEmpty())) && (isNew()))){ _local1.utmcn = utmcn; }; if (((!(isEmpty())) && (!(isNew())))){ _local1.utmcr = utmcr; }; return (_local1); } public function isNew():Boolean{ return (_new); } public function get utmcn():String{ return ("1"); } public function get utmcr():String{ return ("1"); } } }//package com.google.analytics.campaign
Section 149
//CampaignKey (com.google.analytics.campaign.CampaignKey) package com.google.analytics.campaign { public class CampaignKey { public var UCMD:String;// = "utm_medium" public var UCID:String;// = "utm_id" public var UCTR:String;// = "utm_term" public var UCSR:String;// = "utm_source" public var UCNO:String;// = "utm_nooverride" public var UCCN:String;// = "utm_campaign" public var UGCLID:String;// = "gclid" public var UCCT:String;// = "utm_content" } }//package com.google.analytics.campaign
Section 150
//CampaignManager (com.google.analytics.campaign.CampaignManager) package com.google.analytics.campaign { import com.google.analytics.core.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import com.google.analytics.utils.*; public class CampaignManager { private var _config:Configuration; private var _domainHash:Number; private var _debug:DebugConfiguration; private var _timeStamp:Number; private var _referrer:String; private var _buffer:Buffer; public static const trackingDelimiter:String = "|"; public function CampaignManager(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Number, _arg5:String, _arg6:Number){ _config = _arg1; _debug = _arg2; _buffer = _arg3; _domainHash = _arg4; _referrer = _arg5; _timeStamp = _arg6; } public function hasNoOverride(_arg1:String):Boolean{ var _local2:CampaignKey; var _local3:Variables; var _local4:String; _local2 = _config.campaignKey; if (_arg1 == ""){ return (false); }; _local3 = new Variables(_arg1); _local4 = ""; if (_local3.hasOwnProperty(_local2.UCNO)){ _local4 = _local3[_local2.UCNO]; switch (_local4){ case "1": return (true); case "": case "0": default: return (false); }; }; return (false); } public function getCampaignInformation(_arg1:String, _arg2:Boolean):CampaignInfo{ var _local3:CampaignInfo; var _local4:CampaignTracker; var _local5:Boolean; var _local6:Boolean; var _local7:int; var _local8:CampaignTracker; var _local9:int; _local3 = new CampaignInfo(); _local5 = false; _local6 = false; _local7 = 0; if (((_config.allowLinker) && (_buffer.isGenuine()))){ if (!_buffer.hasUTMZ()){ return (_local3); }; }; _local4 = getTrackerFromSearchString(_arg1); if (isValid(_local4)){ _local6 = hasNoOverride(_arg1); if (((_local6) && (!(_buffer.hasUTMZ())))){ return (_local3); }; }; if (!isValid(_local4)){ _local4 = getOrganicCampaign(); if (((!(_buffer.hasUTMZ())) && (isIgnoredKeyword(_local4)))){ return (_local3); }; }; if (((!(isValid(_local4))) && (_arg2))){ _local4 = getReferrerCampaign(); if (((!(_buffer.hasUTMZ())) && (isIgnoredReferral(_local4)))){ return (_local3); }; }; if (!isValid(_local4)){ if (((!(_buffer.hasUTMZ())) && (_arg2))){ _local4 = getDirectCampaign(); }; }; if (!isValid(_local4)){ return (_local3); }; if (((_buffer.hasUTMZ()) && (!(_buffer.utmz.isEmpty())))){ _local8 = new CampaignTracker(); _local8.fromTrackerString(_buffer.utmz.campaignTracking); _local5 = (_local8.toTrackerString() == _local4.toTrackerString()); _local7 = _buffer.utmz.responseCount; }; if (((!(_local5)) || (_arg2))){ _local9 = _buffer.utma.sessionCount; _local7++; if (_local9 == 0){ _local9 = 1; }; _buffer.utmz.domainHash = _domainHash; _buffer.utmz.campaignCreation = _timeStamp; _buffer.utmz.campaignSessions = _local9; _buffer.utmz.responseCount = _local7; _buffer.utmz.campaignTracking = _local4.toTrackerString(); _debug.info(_buffer.utmz.toString(), VisualDebugMode.geek); _local3 = new CampaignInfo(false, true); } else { _local3 = new CampaignInfo(false, false); }; return (_local3); } public function isValid(_arg1:CampaignTracker):Boolean{ if (((_arg1) && (_arg1.isValid()))){ return (true); }; return (false); } public function getTrackerFromSearchString(_arg1:String):CampaignTracker{ var _local2:CampaignTracker; var _local3:CampaignTracker; var _local4:CampaignKey; var _local5:Variables; _local2 = getOrganicCampaign(); _local3 = new CampaignTracker(); _local4 = _config.campaignKey; if (_arg1 == ""){ return (_local3); }; _local5 = new Variables(_arg1); if (_local5.hasOwnProperty(_local4.UCID)){ _local3.id = _local5[_local4.UCID]; }; if (_local5.hasOwnProperty(_local4.UCSR)){ _local3.source = _local5[_local4.UCSR]; }; if (_local5.hasOwnProperty(_local4.UGCLID)){ _local3.clickId = _local5[_local4.UGCLID]; }; if (_local5.hasOwnProperty(_local4.UCCN)){ _local3.name = _local5[_local4.UCCN]; } else { _local3.name = "(not set)"; }; if (_local5.hasOwnProperty(_local4.UCMD)){ _local3.medium = _local5[_local4.UCMD]; } else { _local3.medium = "(not set)"; }; if (_local5.hasOwnProperty(_local4.UCTR)){ _local3.term = _local5[_local4.UCTR]; } else { if (((_local2) && (!((_local2.term == ""))))){ _local3.term = _local2.term; }; }; if (_local5.hasOwnProperty(_local4.UCCT)){ _local3.content = _local5[_local4.UCCT]; }; return (_local3); } public function getOrganicCampaign():CampaignTracker{ var _local1:CampaignTracker; var _local2:URL; var _local3:String; var _local4:Array; var _local5:OrganicReferrer; var _local6:String; if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){ return (_local1); }; _local2 = new URL(_referrer); _local3 = ""; if (_local2.hostName != ""){ if (_local2.hostName.indexOf(".") > -1){ _local4 = _local2.hostName.split("."); switch (_local4.length){ case 2: _local3 = _local4[0]; break; case 3: _local3 = _local4[1]; break; }; }; }; if (_config.organic.match(_local3)){ _local5 = _config.organic.getReferrerByName(_local3); _local6 = _config.organic.getKeywordValue(_local5, _local2.search); _local1 = new CampaignTracker(); _local1.source = _local5.engine; _local1.name = "(organic)"; _local1.medium = "organic"; _local1.term = _local6; }; return (_local1); } public function isIgnoredReferral(_arg1:CampaignTracker):Boolean{ if (((_arg1) && ((_arg1.medium == "referral")))){ return (_config.organic.isIgnoredReferral(_arg1.source)); }; return (false); } public function getDirectCampaign():CampaignTracker{ var _local1:CampaignTracker; _local1 = new CampaignTracker(); _local1.source = "(direct)"; _local1.name = "(direct)"; _local1.medium = "(none)"; return (_local1); } public function isIgnoredKeyword(_arg1:CampaignTracker):Boolean{ if (((_arg1) && ((_arg1.medium == "organic")))){ return (_config.organic.isIgnoredKeyword(_arg1.term)); }; return (false); } public function getReferrerCampaign():CampaignTracker{ var _local1:CampaignTracker; var _local2:URL; var _local3:String; var _local4:String; if (((isInvalidReferrer(_referrer)) || (isFromGoogleCSE(_referrer, _config)))){ return (_local1); }; _local2 = new URL(_referrer); _local3 = _local2.hostName; _local4 = _local2.path; if (_local3.indexOf("www.") == 0){ _local3 = _local3.substr(4); }; _local1 = new CampaignTracker(); _local1.source = _local3; _local1.name = "(referral)"; _local1.medium = "referral"; _local1.content = _local4; return (_local1); } public static function isInvalidReferrer(_arg1:String):Boolean{ var _local2:URL; if ((((((_arg1 == "")) || ((_arg1 == "-")))) || ((_arg1 == "0")))){ return (true); }; if (_arg1.indexOf("://") > -1){ _local2 = new URL(_arg1); if ((((_local2.protocol == Protocols.file)) || ((_local2.protocol == Protocols.none)))){ return (true); }; }; return (false); } public static function isFromGoogleCSE(_arg1:String, _arg2:Configuration):Boolean{ var _local3:URL; _local3 = new URL(_arg1); if (_local3.hostName.indexOf(_arg2.google) > -1){ if (_local3.search.indexOf((_arg2.googleSearchParam + "=")) > -1){ if (_local3.path == ("/" + _arg2.googleCsePath)){ return (true); }; }; }; return (false); } } }//package com.google.analytics.campaign
Section 151
//CampaignTracker (com.google.analytics.campaign.CampaignTracker) package com.google.analytics.campaign { import com.google.analytics.utils.*; public class CampaignTracker { public var content:String; public var source:String; public var clickId:String; public var name:String; public var term:String; public var medium:String; public var id:String; public function CampaignTracker(_arg1:String="", _arg2:String="", _arg3:String="", _arg4:String="", _arg5:String="", _arg6:String="", _arg7:String=""){ this.id = _arg1; this.source = _arg2; this.clickId = _arg3; this.name = _arg4; this.medium = _arg5; this.term = _arg6; this.content = _arg7; } public function isValid():Boolean{ if (((((!((id == ""))) || (!((source == ""))))) || (!((clickId == ""))))){ return (true); }; return (false); } public function toTrackerString():String{ var _local1:Array = []; _addIfNotEmpty(_local1, "utmcsr=", source); _addIfNotEmpty(_local1, "utmccn=", name); _addIfNotEmpty(_local1, "utmcmd=", medium); _addIfNotEmpty(_local1, "utmctr=", term); _addIfNotEmpty(_local1, "utmcct=", content); _addIfNotEmpty(_local1, "utmcid=", id); _addIfNotEmpty(_local1, "utmgclid=", clickId); return (_local1.join(CampaignManager.trackingDelimiter)); } private function _addIfNotEmpty(_arg1:Array, _arg2:String, _arg3:String):void{ if (_arg3 != ""){ _arg3 = _arg3.split("+").join("%20"); _arg3 = _arg3.split(" ").join("%20"); _arg1.push((_arg2 + _arg3)); }; } public function fromTrackerString(_arg1:String):void{ var _local2:String = _arg1.split(CampaignManager.trackingDelimiter).join("&"); var _local3:Variables = new Variables(_local2); if (_local3.hasOwnProperty("utmcid")){ this.id = _local3["utmcid"]; }; if (_local3.hasOwnProperty("utmcsr")){ this.source = _local3["utmcsr"]; }; if (_local3.hasOwnProperty("utmccn")){ this.name = _local3["utmccn"]; }; if (_local3.hasOwnProperty("utmcmd")){ this.medium = _local3["utmcmd"]; }; if (_local3.hasOwnProperty("utmctr")){ this.term = _local3["utmctr"]; }; if (_local3.hasOwnProperty("utmcct")){ this.content = _local3["utmcct"]; }; if (_local3.hasOwnProperty("utmgclid")){ this.clickId = _local3["utmgclid"]; }; } } }//package com.google.analytics.campaign
Section 152
//FlashTracker (com.google.analytics.components.FlashTracker) package com.google.analytics.components { import com.google.analytics.core.*; import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.events.*; import flash.display.*; import com.google.analytics.utils.*; import com.google.analytics.external.*; import com.google.analytics.*; import flash.utils.*; import com.google.analytics.events.*; public class FlashTracker extends Sprite implements AnalyticsTracker { private var _adSense:AdSenseGlobals; private var _env:Environment; protected var _height:Number;// = 18 private var _idleTimer:IdleTimer; private var _config:Configuration; private var _mode:String;// = "AS3" private var _dom:HTMLDOM; private var _ready:Boolean;// = false protected var _width:Number;// = 18 private var _account:String;// = "" protected var _componentInspectorSetting:Boolean; private var _visualDebug:Boolean;// = false public var boundingBox_mc:DisplayObject; private var _debug:DebugConfiguration; private var _buffer:Buffer; private var _display:DisplayObject; protected var livePreviewHeight:Number; private var _jsproxy:JavascriptProxy; protected var isLivePreview:Boolean; protected var preview:MovieClip; private var _gifRequest:GIFRequest; protected var livePreviewWidth:Number; private var _tracker:GoogleAnalyticsAPI; public static var version:Version = API.version; public function FlashTracker(){ _ready = false; _account = ""; _mode = TrackerMode.AS3; _visualDebug = false; _width = 18; _height = 18; super(); _tracker = new TrackerCache(); isLivePreview = _checkLivePreview(); _componentInspectorSetting = false; if (boundingBox_mc){ boundingBox_mc.visible = false; removeChild(boundingBox_mc); boundingBox_mc = null; }; if (isLivePreview){ _createLivePreview(); }; addEventListener(Event.ENTER_FRAME, _factory); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ return (_tracker.trackEvent(_arg1, _arg2, _arg3, _arg4)); } public function trackTrans():void{ _tracker.trackTrans(); } private function _createLivePreview():void{ var _local1:Graphics; var _local2:Class; preview = new MovieClip(); _local1 = preview.graphics; _local1.beginFill(0xFFFFFF); _local1.moveTo(0, 0); _local1.lineTo(0, _width); _local1.lineTo(_width, _height); _local1.lineTo(_height, 0); _local1.lineTo(0, 0); _local1.endFill(); _local2 = (getDefinitionByName("com.google.analytics.components::Icon") as Class); preview.icon_mc = new (_local2); preview.icon_mc.name = "icon_mc"; preview.addChild(preview.icon_mc); addChild(preview); } public function trackPageview(_arg1:String=""):void{ _tracker.trackPageview(_arg1); } public function get account():String{ return (_account); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ _tracker.linkByPost(_arg1, _arg2); } public function getDetectTitle():Boolean{ return (_tracker.getDetectTitle()); } public function setCampNameKey(_arg1:String):void{ _tracker.setCampNameKey(_arg1); } public function resetSession():void{ _tracker.resetSession(); } public function set account(_arg1:String):void{ _account = _arg1; } public function get debug():DebugConfiguration{ if (!_debug){ _createDebugAndConfig(); }; return (_debug); } public function createEventTracker(_arg1:String):EventTracker{ return (_tracker.createEventTracker(_arg1)); } public function set config(_arg1:Configuration):void{ _config = _arg1; } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ return (_tracker.addTrans(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8)); } public function setLocalServerMode():void{ _tracker.setLocalServerMode(); } public function getLocalGifPath():String{ return (_tracker.getLocalGifPath()); } public function clearIgnoredRef():void{ _tracker.clearIgnoredRef(); } public function isReady():Boolean{ return (_ready); } public function set debug(_arg1:DebugConfiguration):void{ _debug = _arg1; } public function getVersion():String{ return (_tracker.getVersion()); } public function setLocalRemoteServerMode():void{ _tracker.setLocalRemoteServerMode(); } public function setCampNOKey(_arg1:String):void{ _tracker.setCampNOKey(_arg1); } public function addIgnoredOrganic(_arg1:String):void{ _tracker.addIgnoredOrganic(_arg1); } public function setCookiePath(_arg1:String):void{ _tracker.setCookiePath(_arg1); } public function setCampTermKey(_arg1:String):void{ _tracker.setCampTermKey(_arg1); } private function _trackerFactory():GoogleAnalyticsAPI{ debug.info(((("GATracker (AS3) v" + version) + "\naccount: ") + account)); _adSense = new AdSenseGlobals(debug); _dom = new HTMLDOM(debug); _dom.cacheProperties(); _env = new Environment("", "", "", debug, _dom); _buffer = new Buffer(config, debug, false); _gifRequest = new GIFRequest(config, debug, _buffer, _env); _idleTimer = new IdleTimer(config, debug, _display, _buffer); _env.url = _display.stage.loaderInfo.url; return (new Tracker(account, config, debug, _env, _buffer, _gifRequest, _adSense)); } public function setCampaignTrack(_arg1:Boolean):void{ _tracker.setCampaignTrack(_arg1); } public function getServiceMode():ServerOperationMode{ return (_tracker.getServiceMode()); } public function set componentInspectorSetting(_arg1:Boolean):void{ _componentInspectorSetting = _arg1; } public function setSessionTimeout(_arg1:int):void{ _tracker.setSessionTimeout(_arg1); } public function setRemoteServerMode():void{ _tracker.setRemoteServerMode(); } public function get visualDebug():Boolean{ return (_visualDebug); } public function addOrganic(_arg1:String, _arg2:String):void{ _tracker.addOrganic(_arg1, _arg2); } public function setCookieTimeout(_arg1:int):void{ _tracker.setCookieTimeout(_arg1); } public function getClientInfo():Boolean{ return (_tracker.getClientInfo()); } public function setAllowLinker(_arg1:Boolean):void{ _tracker.setAllowLinker(_arg1); } public function setClientInfo(_arg1:Boolean):void{ _tracker.setClientInfo(_arg1); } private function _bridgeFactory():GoogleAnalyticsAPI{ debug.info(((("GATracker (Bridge) v" + version) + "\naccount: ") + account)); return (new Bridge(account, _debug, _jsproxy)); } public function get config():Configuration{ if (!_config){ _createDebugAndConfig(); }; return (_config); } public function set mode(_arg1:String):void{ _mode = _arg1; } public function setDetectFlash(_arg1:Boolean):void{ _tracker.setDetectFlash(_arg1); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ _tracker.addItem(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } public function setVar(_arg1:String):void{ _tracker.setVar(_arg1); } public function clearIgnoredOrganic():void{ _tracker.clearIgnoredOrganic(); } public function setDomainName(_arg1:String):void{ _tracker.setDomainName(_arg1); } private function _checkLivePreview():Boolean{ if (((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")))){ return (true); }; return (false); } public function setCampSourceKey(_arg1:String):void{ _tracker.setCampSourceKey(_arg1); } public function setCampContentKey(_arg1:String):void{ _tracker.setCampContentKey(_arg1); } public function setSize(_arg1:Number, _arg2:Number):void{ } public function setAllowAnchor(_arg1:Boolean):void{ _tracker.setAllowAnchor(_arg1); } public function setLocalGifPath(_arg1:String):void{ _tracker.setLocalGifPath(_arg1); } public function get mode():String{ return (_mode); } public function setSampleRate(_arg1:Number):void{ _tracker.setSampleRate(_arg1); } public function setAllowHash(_arg1:Boolean):void{ _tracker.setAllowHash(_arg1); } public function setDetectTitle(_arg1:Boolean):void{ _tracker.setDetectTitle(_arg1); } public function cookiePathCopy(_arg1:String):void{ _tracker.cookiePathCopy(_arg1); } private function _factory(_arg1:Event):void{ var _local2:GoogleAnalyticsAPI; var _local3:TrackerCache; removeEventListener(Event.ENTER_FRAME, _factory); if (isLivePreview){ return; }; _display = this; _createDebugAndConfig(); if (visualDebug){ debug.layout = new Layout(debug, _display); debug.active = visualDebug; }; _jsproxy = new JavascriptProxy(debug); _local3 = (_tracker as TrackerCache); switch (mode){ case TrackerMode.BRIDGE: _local2 = _bridgeFactory(); break; case TrackerMode.AS3: default: _local2 = _trackerFactory(); }; if (!_local3.isEmpty()){ _local3.tracker = _local2; _local3.flush(); }; _tracker = _local2; _ready = true; dispatchEvent(new AnalyticsEvent(AnalyticsEvent.READY, this)); } public function getDetectFlash():Boolean{ return (_tracker.getDetectFlash()); } public function clearOrganic():void{ _tracker.clearOrganic(); } private function _createDebugAndConfig():void{ if (!_debug){ this.debug = new DebugConfiguration(); }; if (!_config){ this.config = new Configuration(debug); }; } public function addIgnoredRef(_arg1:String):void{ _tracker.addIgnoredRef(_arg1); } public function set visualDebug(_arg1:Boolean):void{ _visualDebug = _arg1; } public function setCampMediumKey(_arg1:String):void{ _tracker.setCampMediumKey(_arg1); } public function getAccount():String{ return (_tracker.getAccount()); } public function link(_arg1:String, _arg2:Boolean=false):void{ _tracker.link(_arg1, _arg2); } } var _local1:* = ServerOperationMode; return (_local1); }//package com.google.analytics.components
Section 153
//Icon (com.google.analytics.components.Icon) package com.google.analytics.components { import flash.display.*; public dynamic class Icon extends MovieClip { } }//package com.google.analytics.components
Section 154
//BrowserInfo (com.google.analytics.core.BrowserInfo) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.utils.*; public class BrowserInfo { private var _config:Configuration; private var _info:Environment; public function BrowserInfo(_arg1:Configuration, _arg2:Environment){ _config = _arg1; _info = _arg2; } public function get utmul():String{ return (_info.language.toLowerCase()); } public function get utmje():String{ return ("0"); } public function toURLString():String{ var _local1:Variables; _local1 = toVariables(); return (_local1.toString()); } public function get utmsr():String{ return (((_info.screenWidth + "x") + _info.screenHeight)); } public function get utmcs():String{ return (_info.languageEncoding); } public function get utmfl():String{ var _local1:Version; if (_config.detectFlash){ _local1 = _info.flashVersion; return (((((_local1.major + ".") + _local1.minor) + " r") + _local1.build)); }; return ("-"); } public function toVariables():Variables{ var _local1:Variables; _local1 = new Variables(); _local1.URIencode = true; _local1.utmcs = utmcs; _local1.utmsr = utmsr; _local1.utmsc = utmsc; _local1.utmul = utmul; _local1.utmje = utmje; _local1.utmfl = utmfl; return (_local1); } public function get utmsc():String{ return ((_info.screenColorDepth + "-bit")); } } }//package com.google.analytics.core
Section 155
//Buffer (com.google.analytics.core.Buffer) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.net.*; import flash.events.*; import com.google.analytics.data.*; public dynamic class Buffer { private var _SO:SharedObject; private var _OBJ:Object; private var _utma:UTMA; private var _utmb:UTMB; private var _utmc:UTMC; private var _debug:DebugConfiguration; private var _utmk:UTMK; private var _config:Configuration; private var _utmv:UTMV; private var _utmz:UTMZ; private var _volatile:Boolean; public function Buffer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Boolean=false, _arg4:Object=null){ var _local5:Boolean; var _local6:String; super(); _config = _arg1; _debug = _arg2; UTMB.defaultTimespan = _config.sessionTimeout; UTMZ.defaultTimespan = _config.conversionTimeout; if (!_arg3){ _SO = SharedObject.getLocal(_config.cookieName, _config.cookiePath); _local5 = false; if (_SO.data.utma){ if (!hasUTMA()){ _createUMTA(); }; _utma.fromSharedObject(_SO.data.utma); if (_debug.verbose){ _debug.info(("found: " + _utma.toString(true)), VisualDebugMode.geek); }; if (_utma.isExpired()){ if (_debug.verbose){ _debug.warning("UTMA has expired", VisualDebugMode.advanced); }; _clearUTMA(); _local5 = true; }; }; if (_SO.data.utmb){ if (!hasUTMB()){ _createUMTB(); }; _utmb.fromSharedObject(_SO.data.utmb); if (_debug.verbose){ _debug.info(("found: " + _utmb.toString(true)), VisualDebugMode.geek); }; if (_utmb.isExpired()){ if (_debug.verbose){ _debug.warning("UTMB has expired", VisualDebugMode.advanced); }; _clearUTMB(); _local5 = true; }; }; if (_SO.data.utmc){ delete _SO.data.utmc; _local5 = true; }; if (_SO.data.utmk){ if (!hasUTMK()){ _createUMTK(); }; _utmk.fromSharedObject(_SO.data.utmk); if (_debug.verbose){ _debug.info(("found: " + _utmk.toString()), VisualDebugMode.geek); }; }; if (_SO.data.utmv){ if (!hasUTMV()){ _createUMTV(); }; _utmv.fromSharedObject(_SO.data.utmv); if (_debug.verbose){ _debug.info(("found: " + _utmv.toString(true)), VisualDebugMode.geek); }; if (_utmv.isExpired()){ if (_debug.verbose){ _debug.warning("UTMV has expired", VisualDebugMode.advanced); }; _clearUTMV(); _local5 = true; }; }; if (_SO.data.utmz){ if (!hasUTMZ()){ _createUMTZ(); }; _utmz.fromSharedObject(_SO.data.utmz); if (_debug.verbose){ _debug.info(("found: " + _utmz.toString(true)), VisualDebugMode.geek); }; if (_utmz.isExpired()){ if (_debug.verbose){ _debug.warning("UTMZ has expired", VisualDebugMode.advanced); }; _clearUTMZ(); _local5 = true; }; }; if (_local5){ save(); }; } else { _OBJ = new Object(); if (_arg4){ for (_local6 in _arg4) { _OBJ[_local6] = _arg4[_local6]; }; }; }; _volatile = _arg3; } public function clearCookies():void{ utma.reset(); utmb.reset(); utmc.reset(); utmz.reset(); utmv.reset(); utmk.reset(); } public function save():void{ var flushStatus:String; if (!isVolatile()){ flushStatus = null; try { flushStatus = _SO.flush(); } catch(e:Error) { _debug.warning("Error...Could not write SharedObject to disk"); }; switch (flushStatus){ case SharedObjectFlushStatus.PENDING: _debug.info("Requesting permission to save object..."); _SO.addEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus); break; case SharedObjectFlushStatus.FLUSHED: _debug.info("Value flushed to disk."); break; }; }; } public function get utmv():UTMV{ if (!hasUTMV()){ _createUMTV(); }; return (_utmv); } public function get utmz():UTMZ{ if (!hasUTMZ()){ _createUMTZ(); }; return (_utmz); } public function hasUTMA():Boolean{ if (_utma){ return (true); }; return (false); } public function hasUTMB():Boolean{ if (_utmb){ return (true); }; return (false); } public function hasUTMC():Boolean{ if (_utmc){ return (true); }; return (false); } public function isGenuine():Boolean{ if (!hasUTMK()){ return (true); }; return ((utmk.hash == generateCookiesHash())); } public function resetCurrentSession():void{ _clearUTMB(); _clearUTMC(); save(); } public function hasUTMK():Boolean{ if (_utmk){ return (true); }; return (false); } public function generateCookiesHash():Number{ var _local1 = ""; _local1 = (_local1 + utma.valueOf()); _local1 = (_local1 + utmb.valueOf()); _local1 = (_local1 + utmc.valueOf()); _local1 = (_local1 + utmz.valueOf()); _local1 = (_local1 + utmv.valueOf()); return (Utils.generateHash(_local1)); } private function _createUMTB():void{ _utmb = new UTMB(); _utmb.proxy = this; } private function _createUMTC():void{ _utmc = new UTMC(); } private function _createUMTA():void{ _utma = new UTMA(); _utma.proxy = this; } public function hasUTMV():Boolean{ if (_utmv){ return (true); }; return (false); } private function _createUMTK():void{ _utmk = new UTMK(); _utmk.proxy = this; } public function hasUTMZ():Boolean{ if (_utmz){ return (true); }; return (false); } private function _createUMTV():void{ _utmv = new UTMV(); _utmv.proxy = this; } private function _onFlushStatus(_arg1:NetStatusEvent):void{ _debug.info("User closed permission dialog..."); switch (_arg1.info.code){ case "SharedObject.Flush.Success": _debug.info("User granted permission -- value saved."); break; case "SharedObject.Flush.Failed": _debug.info("User denied permission -- value not saved."); break; }; _SO.removeEventListener(NetStatusEvent.NET_STATUS, _onFlushStatus); } private function _createUMTZ():void{ _utmz = new UTMZ(); _utmz.proxy = this; } public function updateUTMA(_arg1:Number):void{ if (_debug.verbose){ _debug.info((("updateUTMA( " + _arg1) + " )"), VisualDebugMode.advanced); }; if (!utma.isEmpty()){ if (isNaN(utma.sessionCount)){ utma.sessionCount = 1; } else { utma.sessionCount = (utma.sessionCount + 1); }; utma.lastTime = utma.currentTime; utma.currentTime = _arg1; }; } private function _clearUTMA():void{ _utma = null; if (!isVolatile()){ _SO.data.utma = null; delete _SO.data.utma; }; } private function _clearUTMC():void{ _utmc = null; } private function _clearUTMB():void{ _utmb = null; if (!isVolatile()){ _SO.data.utmb = null; delete _SO.data.utmb; }; } public function update(_arg1:String, _arg2):void{ if (isVolatile()){ _OBJ[_arg1] = _arg2; } else { _SO.data[_arg1] = _arg2; }; } private function _clearUTMZ():void{ _utmz = null; if (!isVolatile()){ _SO.data.utmz = null; delete _SO.data.utmz; }; } private function _clearUTMV():void{ _utmv = null; if (!isVolatile()){ _SO.data.utmv = null; delete _SO.data.utmv; }; } public function isVolatile():Boolean{ return (_volatile); } public function get utma():UTMA{ if (!hasUTMA()){ _createUMTA(); }; return (_utma); } public function get utmb():UTMB{ if (!hasUTMB()){ _createUMTB(); }; return (_utmb); } public function get utmc():UTMC{ if (!hasUTMC()){ _createUMTC(); }; return (_utmc); } public function get utmk():UTMK{ if (!hasUTMK()){ _createUMTK(); }; return (_utmk); } } }//package com.google.analytics.core
Section 156
//DocumentInfo (com.google.analytics.core.DocumentInfo) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.utils.*; import com.google.analytics.external.*; public class DocumentInfo { private var _config:Configuration; private var _utmr:String; private var _adSense:AdSenseGlobals; private var _info:Environment; private var _pageURL:String; public function DocumentInfo(_arg1:Configuration, _arg2:Environment, _arg3:String, _arg4:String=null, _arg5:AdSenseGlobals=null){ _config = _arg1; _info = _arg2; _utmr = _arg3; _pageURL = _arg4; _adSense = _arg5; } public function get utmr():String{ if (!_utmr){ return ("-"); }; return (_utmr); } public function toURLString():String{ var _local1:Variables; _local1 = toVariables(); return (_local1.toString()); } private function _renderPageURL(_arg1:String=""):String{ var _local2:String; var _local3:String; _local2 = _info.locationPath; _local3 = _info.locationSearch; if (((!(_arg1)) || ((_arg1 == "")))){ _arg1 = (_local2 + unescape(_local3)); }; return (_arg1); } public function get utmp():String{ return (_renderPageURL(_pageURL)); } private function _generateHitId():Number{ var _local1:Number; if (((_adSense.hid) && (!((_adSense.hid == ""))))){ _local1 = Number(_adSense.hid); } else { _local1 = Math.round((Math.random() * 2147483647)); _adSense.hid = String(_local1); }; return (_local1); } public function get utmhid():String{ return (String(_generateHitId())); } public function toVariables():Variables{ var _local1:Variables; _local1 = new Variables(); _local1.URIencode = true; if (((_config.detectTitle) && (!((utmdt == ""))))){ _local1.utmdt = utmdt; }; _local1.utmhid = utmhid; _local1.utmr = utmr; _local1.utmp = utmp; return (_local1); } public function get utmdt():String{ return (_info.documentTitle); } } }//package com.google.analytics.core
Section 157
//Domain (com.google.analytics.core.Domain) package com.google.analytics.core { import com.google.analytics.debug.*; public class Domain { private var _mode:DomainNameMode; private var _debug:DebugConfiguration; private var _name:String; public function Domain(_arg1:DomainNameMode=null, _arg2:String="", _arg3:DebugConfiguration=null){ _debug = _arg3; if (_arg1 == null){ _arg1 = DomainNameMode.auto; }; _mode = _arg1; if (_arg1 == DomainNameMode.custom){ this.name = _arg2; } else { _name = _arg2; }; } public function get mode():DomainNameMode{ return (_mode); } public function set mode(_arg1:DomainNameMode):void{ _mode = _arg1; if (_mode == DomainNameMode.none){ _name = ""; }; } public function get name():String{ return (_name); } public function set name(_arg1:String):void{ if (((!((_arg1.charAt(0) == "."))) && (_debug))){ _debug.warning(("missing leading period \".\", cookie will only be accessible on " + _arg1), VisualDebugMode.geek); }; _name = _arg1; } } }//package com.google.analytics.core
Section 158
//DomainNameMode (com.google.analytics.core.DomainNameMode) package com.google.analytics.core { public class DomainNameMode { private var _value:int; private var _name:String; public static const custom:DomainNameMode = new DomainNameMode(2, "custom"); ; public static const none:DomainNameMode = new DomainNameMode(0, "none"); ; public static const auto:DomainNameMode = new DomainNameMode(1, "auto"); ; public function DomainNameMode(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.core
Section 159
//EventInfo (com.google.analytics.core.EventInfo) package com.google.analytics.core { import com.google.analytics.data.*; import com.google.analytics.utils.*; public class EventInfo { private var _isEventHit:Boolean; private var _ext10:X10; private var _x10:X10; public function EventInfo(_arg1:Boolean, _arg2:X10, _arg3:X10=null){ _isEventHit = _arg1; _x10 = _arg2; _ext10 = _arg3; } public function toURLString():String{ var _local1:Variables; _local1 = toVariables(); return (_local1.toString()); } public function get utmt():String{ return ("event"); } public function get utme():String{ return (_x10.renderMergedUrlString(_ext10)); } public function toVariables():Variables{ var _local1:Variables; _local1 = new Variables(); _local1.URIencode = true; if (_isEventHit){ _local1.utmt = utmt; }; _local1.utme = utme; return (_local1); } } }//package com.google.analytics.core
Section 160
//EventTracker (com.google.analytics.core.EventTracker) package com.google.analytics.core { import com.google.analytics.v4.*; public class EventTracker { private var _parent:GoogleAnalyticsAPI; public var name:String; public function EventTracker(_arg1:String, _arg2:GoogleAnalyticsAPI){ this.name = _arg1; _parent = _arg2; } public function trackEvent(_arg1:String, _arg2:String=null, _arg3:Number=NaN):Boolean{ return (_parent.trackEvent(name, _arg1, _arg2, _arg3)); } } }//package com.google.analytics.core
Section 161
//ga_internal (com.google.analytics.core.ga_internal) package com.google.analytics.core { public namespace ga_internal; }//package com.google.analytics.core
Section 162
//GIFRequest (com.google.analytics.core.GIFRequest) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.net.*; import flash.events.*; import flash.display.*; import com.google.analytics.utils.*; import flash.system.*; public class GIFRequest { private var _info:Environment; private var _count:int; private var _utmac:String; private var _alertcount:int; private var _debug:DebugConfiguration; private var _lastRequest:URLRequest; private var _buffer:Buffer; private var _config:Configuration; private var _requests:Array; public function GIFRequest(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:Buffer, _arg4:Environment){ _config = _arg1; _debug = _arg2; _buffer = _arg3; _info = _arg4; _count = 0; _alertcount = 0; _requests = []; } public function get utmn():String{ return ((Utils.generate32bitRandom() as String)); } public function onIOError(_arg1:IOErrorEvent):void{ var _local2:String = _lastRequest.url; var _local3:String = String((_requests.length - 1)); var _local4 = (("Gif Request #" + _local3) + " failed"); if (_debug.GIFRequests){ if (!_debug.verbose){ if (_local2.indexOf("?") > -1){ _local2 = _local2.split("?")[0]; }; _local2 = _shortenURL(_local2); }; if (int(_debug.mode) > int(VisualDebugMode.basic)){ _local4 = (_local4 + ((" \"" + _local2) + "\" does not exists or is unreachable")); }; _debug.failure(_local4); } else { _debug.warning(_local4); }; _removeListeners(_arg1.target); } public function send(_arg1:String, _arg2:Variables=null, _arg3:Boolean=false, _arg4:Boolean=false):void{ var _local5:String; var _local6:URLRequest; var _local7:URLRequest; _utmac = _arg1; if (!_arg2){ _arg2 = new Variables(); }; _arg2.URIencode = false; _arg2.pre = ["utmwv", "utmn", "utmhn", "utmt", "utme", "utmcs", "utmsr", "utmsc", "utmul", "utmje", "utmfl", "utmdt", "utmhid", "utmr", "utmp"]; _arg2.post = ["utmcc"]; if (_debug.verbose){ _debug.info(((("tracking: " + _buffer.utmb.trackCount) + "/") + _config.trackingLimitPerSession), VisualDebugMode.geek); }; if ((((_buffer.utmb.trackCount < _config.trackingLimitPerSession)) || (_arg3))){ if (_arg4){ updateToken(); }; if (((((_arg3) || (!(_arg4)))) || ((_buffer.utmb.token >= 1)))){ if (((!(_arg3)) && (_arg4))){ _buffer.utmb.token = (_buffer.utmb.token - 1); }; _buffer.utmb.trackCount = (_buffer.utmb.trackCount + 1); if (_debug.verbose){ _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); }; _arg2.utmwv = utmwv; _arg2.utmn = Utils.generate32bitRandom(); if (_info.domainName != ""){ _arg2.utmhn = _info.domainName; }; if (_config.sampleRate < 1){ _arg2.utmsp = (_config.sampleRate * 100); }; if ((((_config.serverMode == ServerOperationMode.local)) || ((_config.serverMode == ServerOperationMode.both)))){ _local5 = _info.locationSWFPath; if (_local5.lastIndexOf("/") > 0){ _local5 = _local5.substring(0, _local5.lastIndexOf("/")); }; _local6 = new URLRequest(); if (_config.localGIFpath.indexOf("http") == 0){ _local6.url = _config.localGIFpath; } else { _local6.url = (_local5 + _config.localGIFpath); }; _local6.url = (_local6.url + ("?" + _arg2.toString())); if (((_debug.active) && (_debug.GIFRequests))){ _debugSend(_local6); } else { sendRequest(_local6); }; }; if ((((_config.serverMode == ServerOperationMode.remote)) || ((_config.serverMode == ServerOperationMode.both)))){ _local7 = new URLRequest(); if (_info.protocol == Protocols.HTTPS){ _local7.url = _config.secureRemoteGIFpath; } else { if (_info.protocol == Protocols.HTTP){ _local7.url = _config.remoteGIFpath; } else { _local7.url = _config.remoteGIFpath; }; }; _arg2.utmac = utmac; _arg2.utmcc = encodeURIComponent(utmcc); _local7.url = (_local7.url + ("?" + _arg2.toString())); if (((_debug.active) && (_debug.GIFRequests))){ _debugSend(_local7); } else { sendRequest(_local7); }; }; }; }; } public function onSecurityError(_arg1:SecurityErrorEvent):void{ if (_debug.GIFRequests){ _debug.failure(_arg1.text); }; } public function get utmsp():String{ return (((_config.sampleRate * 100) as String)); } public function get utmcc():String{ var _local1:Array = []; if (_buffer.hasUTMA()){ _local1.push((_buffer.utma.toURLString() + ";")); }; if (_buffer.hasUTMZ()){ _local1.push((_buffer.utmz.toURLString() + ";")); }; if (_buffer.hasUTMV()){ _local1.push((_buffer.utmv.toURLString() + ";")); }; return (_local1.join("+")); } public function get utmac():String{ return (_utmac); } public function get utmwv():String{ return (_config.version); } public function sendRequest(_arg1:URLRequest):void{ var request = _arg1; var loader:Loader = new Loader(); loader.name = String(_count++); var context:LoaderContext = new LoaderContext(false); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); _lastRequest = request; _requests[loader.name] = new RequestObject(request); try { loader.load(request, context); } catch(e:Error) { _debug.failure("\"Loader.load()\" could not instanciate Gif Request"); }; } private function _removeListeners(_arg1:Object):void{ _arg1.removeEventListener(IOErrorEvent.IO_ERROR, onIOError); _arg1.removeEventListener(Event.COMPLETE, onComplete); } public function updateToken():void{ var _local2:Number; var _local1:Number = new Date().getTime(); _local2 = ((_local1 - _buffer.utmb.lastTime) * (_config.tokenRate / 1000)); if (_debug.verbose){ _debug.info(("tokenDelta: " + _local2), VisualDebugMode.geek); }; if (_local2 >= 1){ _buffer.utmb.token = Math.min(Math.floor((_buffer.utmb.token + _local2)), _config.bucketCapacity); _buffer.utmb.lastTime = _local1; if (_debug.verbose){ _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); }; }; } public function get utmhn():String{ return (_info.domainName); } private function _shortenURL(_arg1:String):String{ var _local2:Array; if (_arg1.length > 60){ _local2 = _arg1.split("/"); while (_arg1.length > 60) { _local2.shift(); _arg1 = ("../" + _local2.join("/")); }; }; return (_arg1); } private function _debugSend(_arg1:URLRequest):void{ var _local3:String; var _local2 = ""; switch (_debug.mode){ case VisualDebugMode.geek: _local2 = ((("Gif Request #" + _alertcount) + ":\n") + _arg1.url); break; case VisualDebugMode.advanced: _local3 = _arg1.url; if (_local3.indexOf("?") > -1){ _local3 = _local3.split("?")[0]; }; _local3 = _shortenURL(_local3); _local2 = (((("Send Gif Request #" + _alertcount) + ":\n") + _local3) + " ?"); break; case VisualDebugMode.basic: default: _local2 = (((("Send " + _config.serverMode.toString()) + " Gif Request #") + _alertcount) + " ?"); }; _debug.alertGifRequest(_local2, _arg1, this); _alertcount++; } public function onComplete(_arg1:Event):void{ var _local2:String = _arg1.target.loader.name; _requests[_local2].complete(); var _local3 = (("Gif Request #" + _local2) + " sent"); var _local4:String = _requests[_local2].request.url; if (_debug.GIFRequests){ if (!_debug.verbose){ if (_local4.indexOf("?") > -1){ _local4 = _local4.split("?")[0]; }; _local4 = _shortenURL(_local4); }; if (int(_debug.mode) > int(VisualDebugMode.basic)){ _local3 = (_local3 + ((" to \"" + _local4) + "\"")); }; _debug.success(_local3); } else { _debug.info(_local3); }; _removeListeners(_arg1.target); } } }//package com.google.analytics.core
Section 163
//IdleTimer (com.google.analytics.core.IdleTimer) package com.google.analytics.core { import com.google.analytics.v4.*; import com.google.analytics.debug.*; import flash.events.*; import flash.display.*; import flash.utils.*; public class IdleTimer { private var _loop:Timer; private var _stage:Stage; private var _lastMove:int; private var _debug:DebugConfiguration; private var _session:Timer; private var _inactivity:Number; private var _buffer:Buffer; public function IdleTimer(_arg1:Configuration, _arg2:DebugConfiguration, _arg3:DisplayObject, _arg4:Buffer){ var _local5:Number; var _local6:Number; var _local7:Number; super(); _local5 = _arg1.idleLoop; _local6 = _arg1.idleTimeout; _local7 = _arg1.sessionTimeout; _loop = new Timer((_local5 * 1000)); _session = new Timer((_local7 * 1000), 1); _debug = _arg2; _stage = _arg3.stage; _buffer = _arg4; _lastMove = getTimer(); _inactivity = (_local6 * 1000); _loop.addEventListener(TimerEvent.TIMER, checkForIdle); _session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession); _stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); _debug.info(((((("delay: " + _local5) + "sec , inactivity: ") + _local6) + "sec, sessionTimeout: ") + _local7), VisualDebugMode.geek); _loop.start(); } private function onMouseMove(_arg1:MouseEvent):void{ _lastMove = getTimer(); if (_session.running){ _debug.info("session timer reset", VisualDebugMode.geek); _session.reset(); }; } public function endSession(_arg1:TimerEvent):void{ _session.removeEventListener(TimerEvent.TIMER_COMPLETE, endSession); _debug.info("session timer end session", VisualDebugMode.geek); _session.reset(); _buffer.resetCurrentSession(); _debug.info(_buffer.utmb.toString(), VisualDebugMode.geek); _debug.info(_buffer.utmc.toString(), VisualDebugMode.geek); _session.addEventListener(TimerEvent.TIMER_COMPLETE, endSession); } public function checkForIdle(_arg1:TimerEvent):void{ var _local2:int; _local2 = getTimer(); if ((_local2 - _lastMove) >= _inactivity){ if (!_session.running){ _debug.info("session timer start", VisualDebugMode.geek); _session.start(); }; }; } } }//package com.google.analytics.core
Section 164
//Organic (com.google.analytics.core.Organic) package com.google.analytics.core { import com.google.analytics.utils.*; public class Organic { private var _sourcesCache:Array; private var _sourcesEngine:Array; private var _ignoredKeywords:Array; private var _ignoredReferralsCache:Object; private var _ignoredReferrals:Array; private var _ignoredKeywordsCache:Object; private var _sources:Array; public static var throwErrors:Boolean = false; public function Organic(){ _sources = []; _sourcesCache = []; _sourcesEngine = []; _ignoredReferrals = []; _ignoredReferralsCache = {}; _ignoredKeywords = []; _ignoredKeywordsCache = {}; } public function getKeywordValue(_arg1:OrganicReferrer, _arg2:String):String{ var _local3:String; _local3 = _arg1.keyword; return (getKeywordValueFromPath(_local3, _arg2)); } public function isIgnoredKeyword(_arg1:String):Boolean{ if (_ignoredKeywordsCache.hasOwnProperty(_arg1)){ return (true); }; return (false); } public function isIgnoredReferral(_arg1:String):Boolean{ if (_ignoredReferralsCache.hasOwnProperty(_arg1)){ return (true); }; return (false); } public function clear():void{ clearEngines(); clearIgnoredReferrals(); clearIgnoredKeywords(); } public function get ignoredKeywordsCount():int{ return (_ignoredKeywords.length); } public function match(_arg1:String):Boolean{ if (_arg1 == ""){ return (false); }; _arg1 = _arg1.toLowerCase(); if (_sourcesEngine[_arg1] != undefined){ return (true); }; return (false); } public function get count():int{ return (_sources.length); } public function addSource(_arg1:String, _arg2:String):void{ var _local3:OrganicReferrer; _local3 = new OrganicReferrer(_arg1, _arg2); if (_sourcesCache[_local3.toString()] == undefined){ _sources.push(_local3); _sourcesCache[_local3.toString()] = (_sources.length - 1); if (_sourcesEngine[_local3.engine] == undefined){ _sourcesEngine[_local3.engine] = [(_sources.length - 1)]; } else { _sourcesEngine[_local3.engine].push((_sources.length - 1)); }; } else { if (throwErrors){ throw (new Error((_local3.toString() + " already exists, we don't add it."))); }; }; } public function clearIgnoredKeywords():void{ _ignoredKeywords = []; _ignoredKeywordsCache = {}; } public function clearEngines():void{ _sources = []; _sourcesCache = []; _sourcesEngine = []; } public function get ignoredReferralsCount():int{ return (_ignoredReferrals.length); } public function addIgnoredReferral(_arg1:String):void{ if (_ignoredReferralsCache[_arg1] == undefined){ _ignoredReferrals.push(_arg1); _ignoredReferralsCache[_arg1] = (_ignoredReferrals.length - 1); } else { if (throwErrors){ throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it."))); }; }; } public function clearIgnoredReferrals():void{ _ignoredReferrals = []; _ignoredReferralsCache = {}; } public function getReferrerByName(_arg1:String):OrganicReferrer{ var _local2:int; if (match(_arg1)){ _local2 = _sourcesEngine[_arg1][0]; return (_sources[_local2]); }; return (null); } public function addIgnoredKeyword(_arg1:String):void{ if (_ignoredKeywordsCache[_arg1] == undefined){ _ignoredKeywords.push(_arg1); _ignoredKeywordsCache[_arg1] = (_ignoredKeywords.length - 1); } else { if (throwErrors){ throw (new Error((("\"" + _arg1) + "\" already exists, we don't add it."))); }; }; } public function get sources():Array{ return (_sources); } public static function getKeywordValueFromPath(_arg1:String, _arg2:String):String{ var _local3:String; var _local4:Variables; if (_arg2.indexOf((_arg1 + "=")) > -1){ if (_arg2.charAt(0) == "?"){ _arg2 = _arg2.substr(1); }; _arg2 = _arg2.split("+").join("%20"); _local4 = new Variables(_arg2); _local3 = _local4[_arg1]; }; return (_local3); } } }//package com.google.analytics.core
Section 165
//OrganicReferrer (com.google.analytics.core.OrganicReferrer) package com.google.analytics.core { public class OrganicReferrer { private var _engine:String; private var _keyword:String; public function OrganicReferrer(_arg1:String, _arg2:String){ this.engine = _arg1; this.keyword = _arg2; } public function set engine(_arg1:String):void{ _engine = _arg1.toLowerCase(); } public function get keyword():String{ return (_keyword); } public function toString():String{ return (((engine + "?") + keyword)); } public function get engine():String{ return (_engine); } public function set keyword(_arg1:String):void{ _keyword = _arg1.toLowerCase(); } } }//package com.google.analytics.core
Section 166
//RequestObject (com.google.analytics.core.RequestObject) package com.google.analytics.core { import flash.net.*; import flash.utils.*; public class RequestObject { public var start:int; public var request:URLRequest; public var end:int; public function RequestObject(_arg1:URLRequest){ start = getTimer(); this.request = _arg1; } public function toString():String{ var _local1:Array; _local1 = []; _local1.push((("duration: " + duration) + "ms")); _local1.push(("url: " + request.url)); return ((("{ " + _local1.join(", ")) + " }")); } public function get duration():int{ if (!hasCompleted()){ return (0); }; return ((end - start)); } public function hasCompleted():Boolean{ return ((end > 0)); } public function complete():void{ end = getTimer(); } } }//package com.google.analytics.core
Section 167
//ServerOperationMode (com.google.analytics.core.ServerOperationMode) package com.google.analytics.core { public class ServerOperationMode { private var _value:int; private var _name:String; public static const both:ServerOperationMode = new ServerOperationMode(2, "both"); ; public static const remote:ServerOperationMode = new ServerOperationMode(1, "remote"); ; public static const local:ServerOperationMode = new ServerOperationMode(0, "local"); ; public function ServerOperationMode(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.core
Section 168
//TrackerCache (com.google.analytics.core.TrackerCache) package com.google.analytics.core { import com.google.analytics.v4.*; import flash.errors.*; public class TrackerCache implements GoogleAnalyticsAPI { public var tracker:GoogleAnalyticsAPI; private var _ar:Array; public static var CACHE_THROW_ERROR:Boolean; public function TrackerCache(_arg1:GoogleAnalyticsAPI=null){ this.tracker = _arg1; _ar = []; } public function size():uint{ return (_ar.length); } public function flush():void{ var _local1:Object; var _local2:String; var _local3:Array; var _local4:int; var _local5:int; if (tracker == null){ return; }; if (size() > 0){ _local4 = _ar.length; while (_local5 < _local4) { _local1 = _ar.shift(); _local2 = (_local1.name as String); _local3 = (_local1.args as Array); if (((!((_local2 == null))) && ((_local2 in tracker)))){ (tracker[_local2] as Function).apply(tracker, _local3); }; _local5++; }; }; } public function enqueue(_arg1:String, ... _args):Boolean{ if (_arg1 == null){ return (false); }; _ar.push({name:_arg1, args:_args}); return (true); } public function link(_arg1:String, _arg2:Boolean=false):void{ enqueue("link", _arg1, _arg2); } public function addOrganic(_arg1:String, _arg2:String):void{ enqueue("addOrganic", _arg1, _arg2); } public function setAllowLinker(_arg1:Boolean):void{ enqueue("setAllowLinker", _arg1); } public function trackEvent(_arg1:String, _arg2:String, _arg3:String=null, _arg4:Number=NaN):Boolean{ enqueue("trackEvent", _arg1, _arg2, _arg3, _arg4); return (true); } public function getClientInfo():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getClientInfo' method for the moment.")); }; return (false); } public function trackTrans():void{ enqueue("trackTrans"); } public function trackPageview(_arg1:String=""):void{ enqueue("trackPageview", _arg1); } public function setClientInfo(_arg1:Boolean):void{ enqueue("setClientInfo", _arg1); } public function linkByPost(_arg1:Object, _arg2:Boolean=false):void{ enqueue("linkByPost", _arg1, _arg2); } public function setCookieTimeout(_arg1:int):void{ enqueue("setCookieTimeout", _arg1); } public function isEmpty():Boolean{ return ((_ar.length == 0)); } public function getDetectTitle():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectTitle' method for the moment.")); }; return (false); } public function resetSession():void{ enqueue("resetSession"); } public function setDetectFlash(_arg1:Boolean):void{ enqueue("setDetectFlash", _arg1); } public function clear():void{ _ar = []; } public function setCampNameKey(_arg1:String):void{ enqueue("setCampNameKey", _arg1); } public function addItem(_arg1:String, _arg2:String, _arg3:String, _arg4:String, _arg5:Number, _arg6:int):void{ enqueue("addItem", _arg1, _arg2, _arg3, _arg4, _arg5, _arg6); } public function createEventTracker(_arg1:String):EventTracker{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'createEventTracker' method for the moment.")); }; return (null); } public function setVar(_arg1:String):void{ enqueue("setVar", _arg1); } public function clearIgnoredOrganic():void{ enqueue("clearIgnoredOrganic"); } public function setDomainName(_arg1:String):void{ enqueue("setDomainName", _arg1); } public function setCampSourceKey(_arg1:String):void{ enqueue("setCampSourceKey", _arg1); } public function addTrans(_arg1:String, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:String, _arg7:String, _arg8:String):Object{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'addTrans' method for the moment.")); }; return (null); } public function setCampContentKey(_arg1:String):void{ enqueue("setCampContentKey", _arg1); } public function setLocalServerMode():void{ enqueue("setLocalServerMode"); } public function getLocalGifPath():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getLocalGifPath' method for the moment.")); }; return (""); } public function setAllowAnchor(_arg1:Boolean):void{ enqueue("setAllowAnchor", _arg1); } public function clearIgnoredRef():void{ enqueue("clearIgnoredRef"); } public function setLocalGifPath(_arg1:String):void{ enqueue("setLocalGifPath", _arg1); } public function getVersion():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getVersion' method for the moment.")); }; return (""); } public function setCookiePath(_arg1:String):void{ enqueue("setCookiePath", _arg1); } public function setSampleRate(_arg1:Number):void{ enqueue("setSampleRate", _arg1); } public function setDetectTitle(_arg1:Boolean):void{ enqueue("setDetectTitle", _arg1); } public function setAllowHash(_arg1:Boolean):void{ enqueue("setAllowHash", _arg1); } public function addIgnoredOrganic(_arg1:String):void{ enqueue("addIgnoredOrganic", _arg1); } public function setCampNOKey(_arg1:String):void{ enqueue("setCampNOKey", _arg1); } public function getServiceMode():ServerOperationMode{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getServiceMode' method for the moment.")); }; return (null); } public function setLocalRemoteServerMode():void{ enqueue("setLocalRemoteServerMode"); } public function cookiePathCopy(_arg1:String):void{ enqueue("cookiePathCopy", _arg1); } public function getDetectFlash():Boolean{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getDetectFlash' method for the moment.")); }; return (false); } public function setCampaignTrack(_arg1:Boolean):void{ enqueue("setCampaignTrack", _arg1); } public function clearOrganic():void{ enqueue("clearOrganic"); } public function setCampTermKey(_arg1:String):void{ enqueue("setCampTermKey", _arg1); } public function addIgnoredRef(_arg1:String):void{ enqueue("addIgnoredRef", _arg1); } public function setCampMediumKey(_arg1:String):void{ enqueue("setCampMediumKey", _arg1); } public function setSessionTimeout(_arg1:int):void{ enqueue("setSessionTimeout", _arg1); } public function setRemoteServerMode():void{ enqueue("setRemoteServerMode"); } public function element(){ return (_ar[0]); } public function getAccount():String{ if (CACHE_THROW_ERROR){ throw (new IllegalOperationError("The tracker is not ready and you can use the 'getAccount' method for the moment.")); }; return (""); } } }//package com.google.analytics.core
Section 169
//TrackerMode (com.google.analytics.core.TrackerMode) package com.google.analytics.core { public class TrackerMode { public static const BRIDGE:String = "Bridge"; public static const AS3:String = "AS3"; } }//package com.google.analytics.core
Section 170
//Utils (com.google.analytics.core.Utils) package com.google.analytics.core { public class Utils { public static function trim(_arg1:String, _arg2:Boolean=false):String{ var _local3:Array; var _local4:String; var _local5:int; var _local6:int; var _local7:int; if (_arg1 == ""){ return (""); }; _local3 = [" ", "\n", "\r", "\t"]; _local4 = _arg1; if (_arg2){ _local5 = 0; while ((((_local5 < _local3.length)) && ((_local4.indexOf(_local3[_local5]) > -1)))) { _local4 = _local4.split(_local3[_local5]).join(""); _local5++; }; } else { _local6 = 0; while ((((_local6 < _local4.length)) && ((_local3.indexOf(_local4.charAt(_local6)) > -1)))) { _local6++; }; _local4 = _local4.substr(_local6); _local7 = (_local4.length - 1); while ((((_local7 >= 0)) && ((_local3.indexOf(_local4.charAt(_local7)) > -1)))) { _local7--; }; _local4 = _local4.substring(0, (_local7 + 1)); }; return (_local4); } public static function generateHash(_arg1:String):int{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local2 = 1; _local3 = 0; if (((!((_arg1 == null))) && (!((_arg1 == ""))))){ _local2 = 0; _local4 = (_arg1.length - 1); while (_local4 >= 0) { _local5 = _arg1.charCodeAt(_local4); _local2 = ((((_local2 << 6) & 268435455) + _local5) + (_local5 << 14)); _local3 = (_local2 & 266338304); if (_local3 != 0){ _local2 = (_local2 ^ (_local3 >> 21)); }; _local4--; }; }; return (_local2); } public static function generate32bitRandom():int{ return (Math.round((Math.random() * 2147483647))); } public static function validateAccount(_arg1:String):Boolean{ var _local2:RegExp; _local2 = /^UA-[0-9]*-[0-9]*$/; return (_local2.test(_arg1)); } } }//package com.google.analytics.core
Section 171
//Cookie (com.google.analytics.data.Cookie) package com.google.analytics.data { public interface Cookie { function fromSharedObject(_arg1:Object):void; function toURLString():String; function get creation():Date; function toSharedObject():Object; function isExpired():Boolean; function set creation(_arg1:Date):void; function set expiration(_arg1:Date):void; function get expiration():Date; } }//package com.google.analytics.data
Section 172
//UTMA (com.google.analytics.data.UTMA) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMA extends UTMCookie { private var _sessionId:Number; private var _domainHash:Number; private var _firstTime:Number; private var _currentTime:Number; private var _lastTime:Number; private var _sessionCount:Number; public function UTMA(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:Number=NaN, _arg6:Number=NaN){ super("utma", "__utma", ["domainHash", "sessionId", "firstTime", "lastTime", "currentTime", "sessionCount"], (Timespan.twoyears * 1000)); this.domainHash = _arg1; this.sessionId = _arg2; this.firstTime = _arg3; this.lastTime = _arg4; this.currentTime = _arg5; this.sessionCount = _arg6; } public function get lastTime():Number{ return (_lastTime); } public function set lastTime(_arg1:Number):void{ _lastTime = _arg1; update(); } public function set currentTime(_arg1:Number):void{ _currentTime = _arg1; update(); } public function get sessionId():Number{ return (_sessionId); } public function get sessionCount():Number{ return (_sessionCount); } public function get firstTime():Number{ return (_firstTime); } public function get currentTime():Number{ return (_currentTime); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set sessionId(_arg1:Number):void{ _sessionId = _arg1; update(); } public function set sessionCount(_arg1:Number):void{ _sessionCount = _arg1; update(); } public function get domainHash():Number{ return (_domainHash); } public function set firstTime(_arg1:Number):void{ _firstTime = _arg1; update(); } } }//package com.google.analytics.data
Section 173
//UTMB (com.google.analytics.data.UTMB) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMB extends UTMCookie { private var _trackCount:Number; private var _lastTime:Number; private var _domainHash:Number; private var _token:Number; public static var defaultTimespan:Number = Timespan.thirtyminutes; public function UTMB(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN){ super("utmb", "__utmb", ["domainHash", "trackCount", "token", "lastTime"], (defaultTimespan * 1000)); this.domainHash = _arg1; this.trackCount = _arg2; this.token = _arg3; this.lastTime = _arg4; } public function set token(_arg1:Number):void{ _token = _arg1; update(); } public function set trackCount(_arg1:Number):void{ _trackCount = _arg1; update(); } public function get lastTime():Number{ return (_lastTime); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set lastTime(_arg1:Number):void{ _lastTime = _arg1; update(); } public function get domainHash():Number{ return (_domainHash); } public function get token():Number{ return (_token); } public function get trackCount():Number{ return (_trackCount); } } }//package com.google.analytics.data
Section 174
//UTMC (com.google.analytics.data.UTMC) package com.google.analytics.data { public class UTMC extends UTMCookie { private var _domainHash:Number; public function UTMC(_arg1:Number=NaN){ super("utmc", "__utmc", ["domainHash"]); this.domainHash = _arg1; } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function get domainHash():Number{ return (_domainHash); } } }//package com.google.analytics.data
Section 175
//UTMCookie (com.google.analytics.data.UTMCookie) package com.google.analytics.data { import com.google.analytics.core.*; public class UTMCookie implements Cookie { protected var inURL:String; protected var name:String; private var _creation:Date; private var _expiration:Date; public var proxy:Buffer; private var _timespan:Number; protected var fields:Array; public function UTMCookie(_arg1:String, _arg2:String, _arg3:Array, _arg4:Number=0){ this.name = _arg1; this.inURL = _arg2; this.fields = _arg3; _timestamp(_arg4); } public function isEmpty():Boolean{ var _local1:int; var _local2:String; var _local3:int; _local1 = 0; _local3 = 0; while (_local3 < fields.length) { _local2 = fields[_local3]; if ((((this[_local2] is Number)) && (isNaN(this[_local2])))){ _local1++; } else { if ((((this[_local2] is String)) && ((this[_local2] == "")))){ _local1++; }; }; _local3++; }; if (_local1 == fields.length){ return (true); }; return (false); } protected function update():void{ resetTimestamp(); if (proxy){ proxy.update(name, toSharedObject()); }; } public function fromSharedObject(_arg1:Object):void{ var _local2:String; var _local3:int; var _local4:int; _local3 = fields.length; _local4 = 0; while (_local4 < _local3) { _local2 = fields[_local4]; if (_arg1[_local2]){ this[_local2] = _arg1[_local2]; }; _local4++; }; if (_arg1.creation){ this.creation = _arg1.creation; }; if (_arg1.expiration){ this.expiration = _arg1.expiration; }; } private function _timestamp(_arg1:Number):void{ creation = new Date(); _timespan = _arg1; if (_arg1 > 0){ expiration = new Date((creation.valueOf() + _arg1)); }; } public function isExpired():Boolean{ var _local1:Date; var _local2:Number; _local1 = new Date(); _local2 = (expiration.valueOf() - _local1.valueOf()); if (_local2 <= 0){ return (true); }; return (false); } public function set expiration(_arg1:Date):void{ _expiration = _arg1; } public function get creation():Date{ return (_creation); } public function reset():void{ var _local1:String; var _local2:int; _local2 = 0; while (_local2 < fields.length) { _local1 = fields[_local2]; if ((this[_local1] is Number)){ this[_local1] = NaN; } else { if ((this[_local1] is String)){ this[_local1] = ""; }; }; _local2++; }; resetTimestamp(); update(); } public function valueOf():String{ var _local1:Array; var _local2:String; var _local3:*; var _local4:int; _local1 = []; _local4 = 0; while (_local4 < fields.length) { _local2 = fields[_local4]; _local3 = this[_local2]; if ((_local3 is String)){ if (_local3 == ""){ _local3 = "-"; _local1.push(_local3); } else { _local1.push(_local3); }; } else { if ((_local3 is Number)){ if (_local3 == 0){ _local1.push(_local3); } else { if (isNaN(_local3)){ _local3 = "-"; _local1.push(_local3); } else { _local1.push(_local3); }; }; }; }; _local4++; }; return (("" + _local1.join("."))); } public function resetTimestamp(_arg1:Number=NaN):void{ if (!isNaN(_arg1)){ _timespan = _arg1; }; _creation = null; _expiration = null; _timestamp(_timespan); } public function get expiration():Date{ if (_expiration){ return (_expiration); }; return (new Date((new Date().valueOf() + 1000))); } public function toURLString():String{ return (((inURL + "=") + valueOf())); } public function toSharedObject():Object{ var _local1:Object; var _local2:String; var _local3:*; var _local4:int; _local1 = {}; _local4 = 0; for (;_local4 < fields.length;_local4++) { _local2 = fields[_local4]; _local3 = this[_local2]; if ((_local3 is String)){ _local1[_local2] = _local3; } else { if (_local3 == 0){ _local1[_local2] = _local3; } else { if (isNaN(_local3)){ continue; } else { _local1[_local2] = _local3; }; }; }; }; _local1.creation = creation; _local1.expiration = expiration; return (_local1); } public function toString(_arg1:Boolean=false):String{ var _local2:Array; var _local3:String; var _local4:*; var _local5:int; var _local6:int; var _local7:String; _local2 = []; _local5 = fields.length; _local6 = 0; for (;_local6 < _local5;_local6++) { _local3 = fields[_local6]; _local4 = this[_local3]; if ((_local4 is String)){ _local2.push((((_local3 + ": \"") + _local4) + "\"")); } else { if (_local4 == 0){ _local2.push(((_local3 + ": ") + _local4)); } else { if (isNaN(_local4)){ continue; } else { _local2.push(((_local3 + ": ") + _local4)); }; }; }; }; _local7 = (((name.toUpperCase() + " {") + _local2.join(", ")) + "}"); if (_arg1){ _local7 = (_local7 + (((" creation:" + creation) + ", expiration:") + expiration)); }; return (_local7); } public function set creation(_arg1:Date):void{ _creation = _arg1; } } }//package com.google.analytics.data
Section 176
//UTMK (com.google.analytics.data.UTMK) package com.google.analytics.data { public class UTMK extends UTMCookie { private var _hash:Number; public function UTMK(_arg1:Number=NaN){ super("utmk", "__utmk", ["hash"]); this.hash = _arg1; } public function set hash(_arg1:Number):void{ _hash = _arg1; update(); } public function get hash():Number{ return (_hash); } } }//package com.google.analytics.data
Section 177
//UTMV (com.google.analytics.data.UTMV) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMV extends UTMCookie { private var _domainHash:Number; private var _value:String; public function UTMV(_arg1:Number=NaN, _arg2:String=""){ super("utmv", "__utmv", ["domainHash", "value"], (Timespan.twoyears * 1000)); this.domainHash = _arg1; this.value = _arg2; } override public function toURLString():String{ return (((inURL + "=") + encodeURI(valueOf()))); } public function get value():String{ return (_value); } public function get domainHash():Number{ return (_domainHash); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set value(_arg1:String):void{ _value = _arg1; update(); } } }//package com.google.analytics.data
Section 178
//UTMZ (com.google.analytics.data.UTMZ) package com.google.analytics.data { import com.google.analytics.utils.*; public class UTMZ extends UTMCookie { private var _campaignTracking:String; private var _campaignCreation:Number; private var _responseCount:Number; private var _domainHash:Number; private var _campaignSessions:Number; public static var defaultTimespan:Number = Timespan.sixmonths; public function UTMZ(_arg1:Number=NaN, _arg2:Number=NaN, _arg3:Number=NaN, _arg4:Number=NaN, _arg5:String=""){ super("utmz", "__utmz", ["domainHash", "campaignCreation", "campaignSessions", "responseCount", "campaignTracking"], (defaultTimespan * 1000)); this.domainHash = _arg1; this.campaignCreation = _arg2; this.campaignSessions = _arg3; this.responseCount = _arg4; this.campaignTracking = _arg5; } public function set responseCount(_arg1:Number):void{ _responseCount = _arg1; update(); } public function set domainHash(_arg1:Number):void{ _domainHash = _arg1; update(); } public function set campaignCreation(_arg1:Number):void{ _campaignCreation = _arg1; update(); } public function get campaignTracking():String{ return (_campaignTracking); } public function get campaignSessions():Number{ return (_campaignSessions); } public function get domainHash():Number{ return (_domainHash); } public function get responseCount():Number{ return (_responseCount); } public function get campaignCreation():Number{ return (_campaignCreation); } public function set campaignSessions(_arg1:Number):void{ _campaignSessions = _arg1; update(); } public function set campaignTracking(_arg1:String):void{ _campaignTracking = _arg1; update(); } } }//package com.google.analytics.data
Section 179
//X10 (com.google.analytics.data.X10) package com.google.analytics.data { public class X10 { private var _delimEnd:String;// = ")" private var _delimSet:String;// = "*" private var _escapeChar:String;// = "'" private var _delimBegin:String;// = "(" private var _delimNumValue:String;// = "!" private var _key:String;// = "k" private var _set:Array; private var _projectData:Object; private var _hasData:int; private var _escapeCharMap:Object; private var _minimum:int; private var _value:String;// = "v" public function X10(){ _key = "k"; _value = "v"; _set = [_key, _value]; _delimBegin = "("; _delimEnd = ")"; _delimSet = "*"; _delimNumValue = "!"; _escapeChar = "'"; super(); _projectData = {}; _escapeCharMap = {}; _escapeCharMap[_escapeChar] = "'0"; _escapeCharMap[_delimEnd] = "'1"; _escapeCharMap[_delimSet] = "'2"; _escapeCharMap[_delimNumValue] = "'3"; _minimum = 1; } private function _clearInternal(_arg1:Number, _arg2:String):void{ var _local3:Boolean; var _local4:int; var _local5:int; if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){ _projectData[_arg1][_arg2] = undefined; _local3 = true; _local5 = _set.length; _local4 = 0; while (_local4 < _local5) { if (_projectData[_arg1][_set[_local4]] != undefined){ _local3 = false; break; }; _local4++; }; if (_local3){ _projectData[_arg1] = undefined; _hasData = (_hasData - 1); }; }; } public function hasData():Boolean{ return ((_hasData > 0)); } private function _setInternal(_arg1:Number, _arg2:String, _arg3:Number, _arg4:String):void{ if (!hasProject(_arg1)){ _projectData[_arg1] = {}; }; if (_projectData[_arg1][_arg2] == undefined){ _projectData[_arg1][_arg2] = []; }; _projectData[_arg1][_arg2][_arg3] = _arg4; _hasData = (_hasData + 1); } public function hasProject(_arg1:Number):Boolean{ return (_projectData[_arg1]); } public function clearKey(_arg1:Number):void{ _clearInternal(_arg1, _key); } private function _renderDataType(_arg1:Array):String{ var _local2:Array; var _local3:String; var _local4:int; _local2 = []; _local4 = 0; while (_local4 < _arg1.length) { if (_arg1[_local4] != undefined){ _local3 = ""; if (((!((_local4 == _minimum))) && ((_arg1[(_local4 - 1)] == undefined)))){ _local3 = (_local3 + _local4.toString()); _local3 = (_local3 + _delimNumValue); }; _local3 = (_local3 + _escapeExtensibleValue(_arg1[_local4])); _local2.push(_local3); }; _local4++; }; return (((_delimBegin + _local2.join(_delimSet)) + _delimEnd)); } public function getKey(_arg1:Number, _arg2:Number):String{ return ((_getInternal(_arg1, _key, _arg2) as String)); } public function clearValue(_arg1:Number):void{ _clearInternal(_arg1, _value); } public function renderMergedUrlString(_arg1:X10=null):String{ var _local2:Array; var _local3:String; if (!_arg1){ return (renderUrlString()); }; _local2 = [_arg1.renderUrlString()]; for (_local3 in _projectData) { if (((hasProject(Number(_local3))) && (!(_arg1.hasProject(Number(_local3)))))){ _local2.push((_local3 + _renderProject(_projectData[_local3]))); }; }; return (_local2.join("")); } public function setValue(_arg1:Number, _arg2:Number, _arg3:Number):Boolean{ if (((((!((Math.round(_arg3) == _arg3))) || (isNaN(_arg3)))) || ((_arg3 == Infinity)))){ return (false); }; _setInternal(_arg1, _value, _arg2, _arg3.toString()); return (true); } public function renderUrlString():String{ var _local1:Array; var _local2:String; _local1 = []; for (_local2 in _projectData) { if (hasProject(Number(_local2))){ _local1.push((_local2 + _renderProject(_projectData[_local2]))); }; }; return (_local1.join("")); } private function _getInternal(_arg1:Number, _arg2:String, _arg3:Number):Object{ if (((hasProject(_arg1)) && (!((_projectData[_arg1][_arg2] == undefined))))){ return (_projectData[_arg1][_arg2][_arg3]); }; return (undefined); } public function setKey(_arg1:Number, _arg2:Number, _arg3:String):Boolean{ _setInternal(_arg1, _key, _arg2, _arg3); return (true); } public function getValue(_arg1:Number, _arg2:Number){ var _local3:*; _local3 = _getInternal(_arg1, _value, _arg2); if (_local3 == null){ return (null); }; return (Number(_local3)); } private function _renderProject(_arg1:Object):String{ var _local2:String; var _local3:Boolean; var _local4:int; var _local5:Array; var _local6:int; _local2 = ""; _local3 = false; _local6 = _set.length; _local4 = 0; while (_local4 < _local6) { _local5 = _arg1[_set[_local4]]; if (_local5){ if (_local3){ _local2 = (_local2 + _set[_local4]); }; _local2 = (_local2 + _renderDataType(_local5)); _local3 = false; } else { _local3 = true; }; _local4++; }; return (_local2); } private function _escapeExtensibleValue(_arg1:String):String{ var _local2:String; var _local3:int; var _local4:String; var _local5:String; _local2 = ""; _local3 = 0; while (_local3 < _arg1.length) { _local4 = _arg1.charAt(_local3); _local5 = _escapeCharMap[_local4]; if (_local5){ _local2 = (_local2 + _local5); } else { _local2 = (_local2 + _local4); }; _local3++; }; return (_local2); } } }//package com.google.analytics.data
Section 180
//_Style (com.google.analytics.debug._Style) package com.google.analytics.debug { import flash.net.*; import flash.text.*; public class _Style { public var borderColor:uint; public var backgroundColor:uint; private var _sheet:StyleSheet; public var roundedCorner:uint; public var alertColor:uint; public var infoColor:uint; public var successColor:uint; private var _loader:URLLoader; public var failureColor:uint; private var _defaultSheet:String; public var warningColor:uint; public function _Style(){ _sheet = new StyleSheet(); _loader = new URLLoader(); _init(); } private function _parseSheet(_arg1:String):void{ _sheet.parseCSS(_arg1); } public function get sheet():StyleSheet{ return (_sheet); } private function _init():void{ _defaultSheet = ""; _defaultSheet = (_defaultSheet + "a{text-decoration: underline;}\n"); _defaultSheet = (_defaultSheet + ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n"); _defaultSheet = (_defaultSheet + ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n"); _defaultSheet = (_defaultSheet + "\n"); roundedCorner = 6; backgroundColor = 0xCCCCCC; borderColor = 0x555555; infoColor = 16777113; alertColor = 0xFFCC00; warningColor = 0xCC0000; successColor = 0xFF00; failureColor = 0xFF0000; _parseSheet(_defaultSheet); } } }//package com.google.analytics.debug
Section 181
//Alert (com.google.analytics.debug.Alert) package com.google.analytics.debug { import flash.events.*; public class Alert extends Label { public var actionOnNextLine:Boolean;// = true public var autoClose:Boolean;// = true private var _actions:Array; public function Alert(_arg1:String, _arg2:Array, _arg3:String="uiAlert", _arg4:uint=0, _arg5:Align=null, _arg6:Boolean=false, _arg7:Boolean=true){ var _local8:int; autoClose = true; actionOnNextLine = true; if (_arg4 == 0){ _arg4 = Style.alertColor; }; if (_arg5 == null){ _arg5 = Align.center; }; super(_arg1, _arg3, _arg4, _arg5, _arg6); this.selectable = true; super.mouseChildren = true; this.buttonMode = true; this.mouseEnabled = true; this.useHandCursor = true; this.actionOnNextLine = _arg7; _actions = []; _local8 = 0; while (_local8 < _arg2.length) { _arg2[_local8].container = this; _actions.push(_arg2[_local8]); _local8++; }; } protected function getAction(_arg1:String):AlertAction{ var _local2:int; _local2 = 0; while (_local2 < _actions.length) { if (_arg1 == _actions[_local2].activator){ return (_actions[_local2]); }; _local2++; }; return (null); } override protected function layout():void{ super.layout(); _defineActions(); } protected function spaces(_arg1:int):String{ var _local2:String; var _local3:String; var _local4:int; _local2 = ""; _local3 = " "; _local4 = 0; while (_local4 < (_arg1 + 1)) { _local2 = (_local2 + _local3); _local4++; }; return (_local2); } override public function onLink(_arg1:TextEvent):void{ var _local2:AlertAction; if (isValidAction(_arg1.text)){ _local2 = getAction(_arg1.text); if (_local2){ _local2.execute(); }; }; if (autoClose){ close(); }; } protected function isValidAction(_arg1:String):Boolean{ var _local2:int; _local2 = 0; while (_local2 < _actions.length) { if (_arg1 == _actions[_local2].activator){ return (true); }; _local2++; }; return (false); } private function _defineActions():void{ var _local1:String; var _local2:Array; var _local3:AlertAction; var _local4:int; _local1 = ""; if (actionOnNextLine){ _local1 = (_local1 + "\n"); } else { _local1 = (_local1 + " |"); }; _local1 = (_local1 + " "); _local2 = []; _local4 = 0; while (_local4 < _actions.length) { _local3 = _actions[_local4]; _local2.push((((("<a href=\"event:" + _local3.activator) + "\">") + _local3.name) + "</a>")); _local4++; }; _local1 = (_local1 + _local2.join(" | ")); appendText(_local1, "uiAlertAction"); } public function close():void{ if (parent != null){ parent.removeChild(this); }; } } }//package com.google.analytics.debug
Section 182
//AlertAction (com.google.analytics.debug.AlertAction) package com.google.analytics.debug { public class AlertAction { public var container:Alert; private var _callback; public var name:String; public var activator:String; public function AlertAction(_arg1:String, _arg2:String, _arg3){ this.name = _arg1; this.activator = _arg2; _callback = _arg3; } public function execute():void{ if (_callback){ if ((_callback is Function)){ (_callback as Function)(); } else { if ((_callback is String)){ var _local1 = container; _local1[_callback](); }; }; }; } } }//package com.google.analytics.debug
Section 183
//Align (com.google.analytics.debug.Align) package com.google.analytics.debug { public class Align { private var _value:int; private var _name:String; public static const bottomRight:Align = new Align(18, "bottomRight"); ; public static const right:Align = new Align(16, "right"); ; public static const left:Align = new Align(32, "left"); ; public static const topRight:Align = new Align(17, "topRight"); ; public static const bottom:Align = new Align(2, "bottom"); ; public static const bottomLeft:Align = new Align(34, "bottomLeft"); ; public static const topLeft:Align = new Align(33, "topLeft"); ; public static const center:Align = new Align(0x0100, "center"); ; public static const none:Align = new Align(0, "none"); ; public static const top:Align = new Align(1, "top"); ; public function Align(_arg1:int=0, _arg2:String=""){ _value = _arg1; _name = _arg2; } public function valueOf():int{ return (_value); } public function toString():String{ return (_name); } } }//package com.google.analytics.debug
Section 184
//Background (com.google.analytics.debug.Background) package com.google.analytics.debug { import flash.display.*; public class Background { public static function drawRounded(_arg1, _arg2:Graphics, _arg3:uint=0, _arg4:uint=0):void{ var _local5:uint; var _local6:uint; var _local7:uint; _local7 = Style.roundedCorner; if ((((_arg3 > 0)) && ((_arg4 > 0)))){ _local5 = _arg3; _local6 = _arg4; } else { _local5 = _arg1.width; _local6 = _arg1.height; }; if (((_arg1.stickToEdge) && (!((_arg1.alignement == Align.none))))){ switch (_arg1.alignement){ case Align.top: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, _local7); break; case Align.topLeft: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, 0, _local7); break; case Align.topRight: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, 0, _local7, 0); break; case Align.bottom: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, _local7, 0, 0); break; case Align.bottomLeft: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, 0); break; case Align.bottomRight: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, 0, 0); break; case Align.left: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, 0, _local7, 0, _local7); break; case Align.right: _arg2.drawRoundRectComplex(0, 0, _local5, _local6, _local7, 0, _local7, 0); break; case Align.center: _arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7); break; }; } else { _arg2.drawRoundRect(0, 0, _local5, _local6, _local7, _local7); }; } } }//package com.google.analytics.debug
Section 185
//Debug (com.google.analytics.debug.Debug) package com.google.analytics.debug { import flash.events.*; import flash.ui.*; public class Debug extends Label { private var _lines:Array; private var _preferredForcedWidth:uint;// = 540 private var _linediff:int;// = 0 public var maxLines:uint;// = 16 public static var count:uint = 0; public function Debug(_arg1:uint=0, _arg2:Align=null, _arg3:Boolean=false){ if (_arg2 == null){ _arg2 = Align.bottom; }; super("", "uiLabel", _arg1, _arg2, _arg3); this.name = ("Debug" + count++); _lines = []; selectable = true; addEventListener(KeyboardEvent.KEY_DOWN, onKey); } public function writeBold(_arg1:String):void{ write(_arg1, true); } private function _getLinesToDisplay(_arg1:int=0):Array{ var _local2:Array; var _local3:uint; var _local4:uint; if ((_lines.length - 1) > maxLines){ if ((_linediff <= 0)){ _linediff = (_linediff + _arg1); } else { if ((((_linediff > 0)) && ((_arg1 < 0)))){ _linediff = (_linediff + _arg1); }; }; _local3 = ((_lines.length - maxLines) + _linediff); _local4 = (_local3 + maxLines); _local2 = _lines.slice(_local3, _local4); } else { _local2 = _lines; }; return (_local2); } private function onKey(_arg1:KeyboardEvent=null):void{ var _local2:Array; switch (_arg1.keyCode){ case Keyboard.DOWN: _local2 = _getLinesToDisplay(1); break; case Keyboard.UP: _local2 = _getLinesToDisplay(-1); break; default: _local2 = null; }; if (_local2 == null){ return; }; text = _local2.join("\n"); } override public function get forcedWidth():uint{ if (this.parent){ if (UISprite(this.parent).forcedWidth > _preferredForcedWidth){ return (_preferredForcedWidth); }; return (UISprite(this.parent).forcedWidth); //unresolved jump }; return (super.forcedWidth); } public function write(_arg1:String, _arg2:Boolean=false):void{ var _local3:Array; if (_arg1.indexOf("") > -1){ _local3 = _arg1.split("\n"); } else { _local3 = [_arg1]; }; var _local4 = ""; var _local5 = ""; if (_arg2){ _local4 = "<b>"; _local5 = "</b>"; }; var _local6:int; while (_local6 < _local3.length) { _lines.push(((_local4 + _local3[_local6]) + _local5)); _local6++; }; var _local7:Array = _getLinesToDisplay(); text = _local7.join("\n"); } public function close():void{ dispose(); } override protected function dispose():void{ removeEventListener(KeyboardEvent.KEY_DOWN, onKey); super.dispose(); } } }//package com.google.analytics.debug
Section 186
//DebugConfiguration (com.google.analytics.debug.DebugConfiguration) package com.google.analytics.debug { import com.google.analytics.core.*; import flash.net.*; import flash.utils.*; import flash.ui.*; public class DebugConfiguration { public var showHideKey:Number; private var _mode:VisualDebugMode; private var _verbose:Boolean;// = false public var destroyKey:Number; public var GIFRequests:Boolean;// = false public var showInfos:Boolean;// = true public var infoTimeout:Number;// = 1000 public var minimizedOnStart:Boolean;// = false private var _active:Boolean;// = false public var traceOutput:Boolean;// = false public var layout:ILayout; public var warningTimeout:Number;// = 1500 public var javascript:Boolean;// = false public var showWarnings:Boolean;// = true private var _visualInitialized:Boolean;// = false public function DebugConfiguration(){ _mode = VisualDebugMode.basic; showHideKey = Keyboard.SPACE; destroyKey = Keyboard.BACKSPACE; super(); } public function get verbose():Boolean{ return (_verbose); } public function set verbose(_arg1:Boolean):void{ _verbose = _arg1; } public function set mode(_arg1):void{ if ((_arg1 is String)){ switch (_arg1){ case "geek": _arg1 = VisualDebugMode.geek; break; case "advanced": _arg1 = VisualDebugMode.advanced; break; case "basic": default: _arg1 = VisualDebugMode.basic; }; }; _mode = _arg1; } public function success(_arg1:String):void{ if (layout){ layout.createSuccessAlert(_arg1); }; if (traceOutput){ trace((("[+] " + _arg1) + " !!")); }; } public function get active():Boolean{ return (_active); } private function _initializeVisual():void{ if (layout){ layout.init(); _visualInitialized = true; }; } private function _destroyVisual():void{ if (((layout) && (_visualInitialized))){ layout.destroy(); }; } public function warning(_arg1:String, _arg2:VisualDebugMode=null):void{ if (_filter(_arg2)){ return; }; if (((layout) && (showWarnings))){ layout.createWarning(_arg1); }; if (traceOutput){ trace((("## " + _arg1) + " ##")); }; } private function _filter(_arg1:VisualDebugMode=null):Boolean{ return (((_arg1) && ((int(_arg1) >= int(this.mode))))); } public function failure(_arg1:String):void{ if (layout){ layout.createFailureAlert(_arg1); }; if (traceOutput){ trace((("[-] " + _arg1) + " !!")); }; } public function get mode(){ return (_mode); } public function set active(_arg1:Boolean):void{ _active = _arg1; if (_active){ _initializeVisual(); } else { _destroyVisual(); }; } protected function trace(_arg1:String):void{ var _local7:Array; var _local8:int; var _local2:Array = []; var _local3 = ""; var _local4 = ""; if (this.mode == VisualDebugMode.geek){ _local3 = (getTimer() + " - "); _local4 = (new Array(_local3.length).join(" ") + " "); }; if (_arg1.indexOf("\n") > -1){ _local7 = _arg1.split("\n"); _local8 = 0; while (_local8 < _local7.length) { if (_local7[_local8] == ""){ } else { if (_local8 == 0){ _local2.push((_local3 + _local7[_local8])); } else { _local2.push((_local4 + _local7[_local8])); }; }; _local8++; }; } else { _local2.push((_local3 + _arg1)); }; var _local5:int = _local2.length; var _local6:int; while (_local6 < _local5) { trace(_local2[_local6]); _local6++; }; } public function alert(_arg1:String):void{ if (layout){ layout.createAlert(_arg1); }; if (traceOutput){ trace((("!! " + _arg1) + " !!")); }; } public function info(_arg1:String, _arg2:VisualDebugMode=null):void{ if (_filter(_arg2)){ return; }; if (((layout) && (showInfos))){ layout.createInfo(_arg1); }; if (traceOutput){ trace(_arg1); }; } public function alertGifRequest(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void{ if (layout){ layout.createGIFRequestAlert(_arg1, _arg2, _arg3); }; if (traceOutput){ trace(((">> " + _arg1) + " <<")); }; } } }//package com.google.analytics.debug
Section 187
//FailureAlert (com.google.analytics.debug.FailureAlert) package com.google.analytics.debug { public class FailureAlert extends Alert { public function FailureAlert(_arg1:DebugConfiguration, _arg2:String, _arg3:Array){ var _local4:Align; var _local5:Boolean; var _local6:Boolean; _local4 = Align.bottomLeft; _local5 = true; _local6 = false; if (_arg1.verbose){ _arg2 = ((("<u><span class=\"uiAlertTitle\">Failure</span>" + spaces(18)) + "</u>\n\n") + _arg2); _local4 = Align.center; _local5 = false; _local6 = true; }; super(_arg2, _arg3, "uiFailure", Style.failureColor, _local4, _local5, _local6); } } }//package com.google.analytics.debug
Section 188
//GIFRequestAlert (com.google.analytics.debug.GIFRequestAlert) package com.google.analytics.debug { public class GIFRequestAlert extends Alert { public function GIFRequestAlert(_arg1:String, _arg2:Array){ super(_arg1, _arg2); } } }//package com.google.analytics.debug
Section 189
//ILayout (com.google.analytics.debug.ILayout) package com.google.analytics.debug { import com.google.analytics.core.*; import flash.net.*; import flash.display.*; public interface ILayout { function createWarning(_arg1:String):void; function addToStage(_arg1:DisplayObject):void; function createGIFRequestAlert(_arg1:String, _arg2:URLRequest, _arg3:GIFRequest):void; function createPanel(_arg1:String, _arg2:uint, _arg3:uint):void; function createInfo(_arg1:String):void; function createFailureAlert(_arg1:String):void; function addToPanel(_arg1:String, _arg2:DisplayObject):void; function init():void; function createSuccessAlert(_arg1:String):void; function createVisualDebug():void; function createAlert(_arg1:String):void; function destroy():void; function bringToFront(_arg1:DisplayObject):void; function isAvailable():Boolean; } }//package com.google.analytics.debug
Section 190
//Info (com.google.analytics.debug.Info) package com.google.analytics.debug { import flash.events.*; import flash.utils.*; public class Info extends Label { private var _timer:Timer; public function Info(_arg1:String="", _arg2:uint=3000){ super(_arg1, "uiInfo", Style.infoColor, Align.top, true); if (_arg2 > 0){ _timer = new Timer(_arg2, 1); _timer.start(); _timer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete, false, 0, true); }; } public function onComplete(_arg1:TimerEvent):void{ close(); } override public function onLink(_arg1:TextEvent):void{ switch (_arg1.text){ case "hide": close(); break; }; } public function close():void{ if (parent != null){ parent.removeChild(this); }; } } }//package com.google.analytics.debug
Section 191
//Label (com.google.analytics.debug.Label) package com.google.analytics.debug { import flash.events.*; import flash.display.*; import flash.text.*; public class Label extends UISprite { private var _color:uint; private var _background:Shape; private var _textField:TextField; public var stickToEdge:Boolean; private var _text:String; protected var selectable:Boolean; private var _tag:String; public static var count:uint = 0; public function Label(_arg1:String="", _arg2:String="uiLabel", _arg3:uint=0, _arg4:Align=null, _arg5:Boolean=false){ this.name = ("Label" + count++); selectable = false; _background = new Shape(); _textField = new TextField(); _text = _arg1; _tag = _arg2; if (_arg4 == null){ _arg4 = Align.none; }; this.alignement = _arg4; this.stickToEdge = _arg5; if (_arg3 == 0){ _arg3 = Style.backgroundColor; }; _color = _arg3; _textField.addEventListener(TextEvent.LINK, onLink); } public function get tag():String{ return (_tag); } private function _draw():void{ var _local1:Graphics = _background.graphics; _local1.clear(); _local1.beginFill(_color); var _local2:uint = _textField.width; var _local3:uint = _textField.height; if (forcedWidth > 0){ _local2 = forcedWidth; }; Background.drawRounded(this, _local1, _local2, _local3); _local1.endFill(); } public function get text():String{ return (_textField.text); } public function appendText(_arg1:String, _arg2:String=""):void{ if (_arg1 == ""){ return; }; if (_arg2 == ""){ _arg2 = tag; }; _textField.htmlText = (_textField.htmlText + (((("<span class=\"" + _arg2) + "\">") + _arg1) + "</span>")); _text = (_text + _arg1); _draw(); resize(); } public function set text(_arg1:String):void{ if (_arg1 == ""){ _arg1 = _text; }; _textField.htmlText = (((("<span class=\"" + tag) + "\">") + _arg1) + "</span>"); _text = _arg1; _draw(); resize(); } override protected function layout():void{ _textField.type = TextFieldType.DYNAMIC; _textField.autoSize = TextFieldAutoSize.LEFT; _textField.background = false; _textField.selectable = selectable; _textField.multiline = true; _textField.styleSheet = Style.sheet; this.text = _text; addChild(_background); addChild(_textField); } public function set tag(_arg1:String):void{ _tag = _arg1; text = ""; } public function onLink(_arg1:TextEvent):void{ } override protected function dispose():void{ _textField.removeEventListener(TextEvent.LINK, onLink); super.dispose(); } } }//package com.google.analytics.debug
Section 192
//Layout (com.google.analytics.debug.Layout) package com.google.analytics.debug { import com.google.analytics.core.*; import flash.net.*; import flash.events.*; import flash.display.*; import com.google.analytics.*; public class Layout implements ILayout { private var _display:DisplayObject; private var _infoQueue:Array; private var _maxCharPerLine:int;// = 85 private var _hasInfo:Boolean; private var _warningQueue:Array; private var _hasDebug:Boolean; private var _hasWarning:Boolean; private var _mainPanel:Panel; private var _GRAlertQueue:Array; private var _debug:DebugConfiguration; public var visualDebug:Debug; private var _hasGRAlert:Boolean; public function Layout(_arg1:DebugConfiguration, _arg2:DisplayObject){ _display = _arg2; _debug = _arg1; _hasWarning = false; _hasInfo = false; _hasDebug = false; _hasGRAlert = false; _warningQueue = []; _infoQueue = []; _GRAlertQueue = []; } private function onKey(_arg1:KeyboardEvent=null):void{ switch (_arg1.keyCode){ case _debug.showHideKey: _mainPanel.visible = !(_mainPanel.visible); break; case _debug.destroyKey: destroy(); break; }; } public function createWarning(_arg1:String):void{ if (((_hasWarning) || (!(isAvailable())))){ _warningQueue.push(_arg1); return; }; _arg1 = _filterMaxChars(_arg1); _hasWarning = true; var _local2:Warning = new Warning(_arg1, _debug.warningTimeout); addToPanel("analytics", _local2); _local2.addEventListener(Event.REMOVED_FROM_STAGE, _clearWarning, false, 0, true); if (_hasDebug){ visualDebug.writeBold(_arg1); }; } public function bringToFront(_arg1:DisplayObject):void{ _display.stage.setChildIndex(_arg1, (_display.stage.numChildren - 1)); } public function createFailureAlert(_arg1:String):void{ var _local2:AlertAction; if (_debug.verbose){ _arg1 = _filterMaxChars(_arg1); _local2 = new AlertAction("Close", "close", "close"); } else { _local2 = new AlertAction("X", "close", "close"); }; var _local3:Alert = new FailureAlert(_debug, _arg1, [_local2]); addToPanel("analytics", _local3); if (_hasDebug){ if (_debug.verbose){ _arg1 = _arg1.split("\n").join(""); _arg1 = _filterMaxChars(_arg1, 66); }; visualDebug.writeBold(_arg1); }; } public function init():void{ var _local1 = 10; var _local2:uint = (_display.stage.stageWidth - (_local1 * 2)); var _local3:uint = (_display.stage.stageHeight - (_local1 * 2)); var _local4:Panel = new Panel("analytics", _local2, _local3); _local4.alignement = Align.top; _local4.stickToEdge = false; _local4.title = ("Google Analytics v" + GATracker.version); _mainPanel = _local4; addToStage(_local4); bringToFront(_local4); if (_debug.minimizedOnStart){ _mainPanel.onToggle(); }; createVisualDebug(); _display.stage.addEventListener(KeyboardEvent.KEY_DOWN, onKey, false, 0, true); } public function addToPanel(_arg1:String, _arg2:DisplayObject):void{ var _local4:Panel; var _local3:DisplayObject = _display.stage.getChildByName(_arg1); if (_local3){ _local4 = (_local3 as Panel); _local4.addData(_arg2); } else { trace((("panel \"" + _arg1) + "\" not found")); }; } private function _clearInfo(_arg1:Event):void{ _hasInfo = false; if (_infoQueue.length > 0){ createInfo(_infoQueue.shift()); }; } private function _filterMaxChars(_arg1