OSDN Git Service

マップスクリプト以外ロード可能
[awarsiii/AwarsIV.git] / Awars III / MapEditor.h
1 //
2 //  MapEditor.h
3 //  Awars III
4 //
5 //  Created by Killery on 2012/12/06.
6 //  Copyright (c) 2012年 Killery. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #import "MapChipList.h"
11 #import "BuildChipList.h"
12 #import "ChipView.h"
13 #import "SeedView.h"
14 #import "MapView.h"
15 #import "LoadChipList.h"
16
17 typedef struct _BGMUSIC{
18
19     NSString *name;
20     NSString *fName;
21     NSSound *snd;
22
23 }BGMUSIC;
24
25 typedef struct _SEFFECT{
26     
27     NSString *name;
28     NSString *fName;
29     NSSound *snd;
30     
31 }SEFFECT;
32
33 typedef struct _GAMEOVER{
34
35     NSString *fNname;
36     NSImage *img;
37     bool gaovFlag;
38     bool edcdFlag;
39
40 }GAMEOVER;
41
42 typedef struct _STAGECLEAR{
43
44     bool scFlag;
45     bool edcdFlag;
46
47 }STAGECLEAR;
48
49
50
51 typedef struct _EVENTIMAGE{
52
53     struct _EVENTIMAGE *next;
54     
55     NSString *name;
56     
57     NSImage *img;
58
59 }EVENTIMAGE;
60
61 struct _MAPSCRIPT0;
62
63 typedef struct _ENDGAMECONDITION{
64     
65     int endType1;
66     int endType2;
67     
68     NSString *etValue1[64];
69     NSString *etValue2[64];
70     
71 }ENDGAMECONDITION;
72 typedef struct _MAPSCRIPT1{
73     //文章スクリプト
74     NSString *name;
75     NSString *str;
76     NSImage *img;
77     NSString *iName;
78     NSString *nameID;
79     
80 }MAPSCRIPT1;
81
82 typedef struct _MAPSCRIPT2A{
83     
84     struct _MAPSCRIPT2A *next;
85     
86     struct _MAPSCRIPT0 *P;
87     
88 }MAPSCRIPT2A;
89
90 typedef struct _MAPSCRIPT2{
91     //文章選択肢スクリプト
92     
93     struct _MAPSCRIPT2 *next;
94     
95     NSString *selection;
96     NSString *labelJump;
97     
98     
99 }MAPSCRIPT2;
100
101 typedef struct _MAPSCRIPT3{
102     
103     struct _MAPSCRIPT3 *next;
104     
105     int x;
106     int y;
107     bool flag;
108     
109     int type;
110     int team;
111     
112     UNITCHIP U;
113     int unitNum;
114     
115     int loadInt;
116 }MAPSCRIPT3;
117
118 typedef struct _MAPSCRIPT5{
119     
120     struct _MAPSCRIPT5 *next;
121     
122     int x;
123     int y;
124     
125     int type;
126     int team;
127     
128     UNITCHIP U;
129     int unitNum;
130     
131     int saveInt;
132 }MAPSCRIPT5;
133
134 typedef struct _PLACEMENT{
135     
136     struct _PLACEMENT *next;
137     
138     int type;
139     int x;
140     int y;
141     int z;
142     int x2;
143     int y2;
144     
145 }PLACEMENT;
146
147 typedef struct _UNIT2{
148     
149     struct _UNIT2 *next;
150     UNITCHIP C;
151     
152     int team;
153     int x;
154     int y;
155     
156 }UNIT2;
157
158 typedef struct _BUILD2{
159     
160     struct _BUILD2 *next;
161     struct _BUILDCHIP *C;
162     
163     int team;
164     int x;
165     int y;
166     
167 }BUILD2;
168
169 typedef struct _MAPSCRIPT4{
170     
171     bool lagFixFlag;
172     
173     NSString *COMPrabel;
174     NSString *FAILrabel;
175     
176     bool suicchiFlag;
177     int *suicchi;
178     bool suicchiONOFF;
179     
180     bool hensuFlag;
181     int hensu1;
182     bool teisuFlag;
183     int teisuValue;
184     bool hensu2flag;
185     int hensu2;
186     int hensuType;
187     
188     bool timerFlag;
189     int timerMin;
190     int timerSec;
191     int timerType;
192     
193     bool unitNumFlag;
194     int team;
195     int unitNum;
196     int unitType;
197     bool unitTypeFlag;
198     UNIT2 *subj;
199     bool placeFlag;
200     PLACEMENT *wayp;
201     bool unitCMDflag;
202     int unitCMD;
203     bool objeFlag;
204     UNIT2 *obje;
205     int objeRange;
206     bool buildFlag;
207     BUILD2 *build;
208     
209     
210 }MAPSCRIPT4;
211
212 typedef struct _MAPSCRIPT6{
213     
214     int team;
215     
216     bool RCsupply;
217     bool RCfood;
218     bool RCmoney;
219     
220     bool RCsupplyAdd;
221     bool RCfoodAdd;
222     bool RCmoneyAdd;
223     
224     int RCsupplyValue;
225     int RCfoodValue;
226     int RCmoneyValue;
227     
228     int RCsupplySelect;
229     int RCfoodSelect;
230     int RCmoneySelect;
231     
232     bool RCsupplyS;
233     bool RCfoodS;
234     bool RCmoneyS;
235 }MAPSCRIPT6;
236
237
238 typedef struct _MAPSCRIPT0{
239     bool endFlag;
240     struct _MAPSCRIPT0 *next;
241     
242     int type;
243     bool succeessfulFlag;
244     struct _MAPSCRIPT1 S1;
245     struct _MAPSCRIPT2 *S2;
246     struct _MAPSCRIPT3 *S3;
247     struct _MAPSCRIPT4 S4;
248     struct _MAPSCRIPT5 *S5;
249     struct _MAPSCRIPT6 S6;
250     int indent;
251     
252     NSString *label;
253     NSString *labelJump;
254     NSString *memo;
255     
256     int *switch1;
257     int *switch2;
258     
259     int val;
260     int valCnt;
261     
262     int timerMin;
263     int timerSec;
264     int timerEntire;
265     bool timerFlag;
266     bool timerVisible;
267     bool timerRun;
268     bool timerMode;
269     double wait;
270     
271     UNITCHIP U;
272     int unitAction;
273     
274     BGMUSIC BGM;
275     SEFFECT SE;
276     
277     bool titleBack;
278     
279     STAGECLEAR sc;
280     GAMEOVER gaov;
281     
282 }MAPSCRIPT0;
283
284 typedef struct _MAPSCRIPTD{
285     bool endFlag;
286     NSMutableArray *SCRPT;
287     struct _MAPSCRIPTD *next;
288     struct _MAPSCRIPT0 *P;
289     int index;
290     int x;
291     int y;
292     int type;
293     double ET1;
294     double ET2;
295     double ET3;
296     double ET4;
297     int ETtype;
298     bool onlyInitialDeley;
299     bool initialDeleyedFlag;
300     
301     int *switch1;
302     int *switch2;
303     bool switch1f;
304     bool switch2f;
305     
306 }MAPSCRIPTD;
307
308 typedef struct _MAPSCRIPT{
309     int adCnt;
310     int adFix;
311     
312     ENDGAMECONDITION EGClight;
313     ENDGAMECONDITION EGCdark;
314     
315     int playerSet1;
316     int playerSet2;
317     bool battleSetMode;
318     bool employAllowedFlag;
319     bool buildAllowedFlag;
320     bool summonAllowedFlag;
321     
322     bool scenarioSetMode;
323     int scenarioNumbCrnt;
324     int scenarioNumbNext;
325     int guildListRegist[4096];
326     int guildListRegistNum11;
327     int guildListRegistNum12;
328     int guildListRegist2[4096];
329     int guildListRegistNum21;
330     int guildListRegistNum22;
331     
332     NSMutableArray *SCRPTname;
333     struct _MAPSCRIPTD *D;
334     
335 }MAPSCRIPT;
336
337 typedef struct _MAPFILE{
338     
339     NSString *fileName;
340     
341     MAPSCRIPT MS;
342     
343 }MAPFILE;
344
345 bool loadChipSideFlag;
346
347 MAPFILE MF[512];
348 ENDGAMECONDITION EGC[2];
349 EVENTIMAGE *EIMG;
350 EVENTIMAGE *EIMGtop;
351 NSString *CEIMG;
352 int EIMGN;
353
354 int MapChipMax;
355 int BuildChipMax;
356 int UnitChipMax;
357 int LoadChipMax;
358
359 int MapChipListIndex;
360 int BuildChipListIndex;
361 int UnitChipListIndex;
362 int LoadChipListIndex;
363
364 bool saveMapChipFlag;
365 bool loadMapChipFlag;
366 bool mapSizeChangedFlag;
367 bool initMapChipNumbFlag;
368 bool loadMapListSubmitFlag;
369 bool saveMapListSubmitFlag;
370
371 int postHeight;
372 int postWidth;
373
374 int MFselectedRow;
375 NSString *saveMapDataName;
376
377
378 bool EEGCslctFlag;
379 bool EEGCslctFlag2;
380 int EEGCslctCnt;
381 int etValueCnt;
382
383 int EDtextImageRow;
384
385 int EEGC1row;
386 int EEGC2row;
387
388 int eventListRow;
389
390 bool eventPosFlag;
391
392 NSInteger ELrow;
393 NSInteger EDrow;
394 int squareCnt;
395 bool editFlag;
396 bool insertFlag;
397
398 NSInteger EDselRow;
399
400 bool mapLoadFlagForMSD;
401 bool mapLoadFlagForMSD2;
402 MAPSCRIPTD *MSDTOPP;//一番もとの先頭
403 MAPSCRIPTD *MSDTOP;//一番先頭
404 MAPSCRIPTD *msdtop;//スクリプト上の先頭
405
406
407 bool Suicchi[9999];
408 bool SuicchiONOFFsentakuflag;
409 bool SuicchiSentakuflag;
410 int HensuuNum;
411 NSString *Hensuu[65000];
412 int HensuuMin;
413 int HensuuMax;
414 NSString *HensuuName[65000];
415 int EDvarHensuSet1Row;
416 int EDvarHensuSet2Row;
417 bool hensuuFlag;
418
419 bool selectionDBLclickFlag;
420 bool suicchiDBLslickFlag;
421 bool timerDBLslickFlag;
422 bool labelDBLclickFlag;
423 bool labeljumpDBLclickFlag;
424 bool memoDBLclickFlag;
425 bool appearDBLclickFlag;
426 bool dissappearDBLclickFlag;
427
428 int *ichijihensuS1;
429
430 bool EDproceedFlag;
431
432 bool EQmodeFlag;
433
434 bool battleSetMode;
435 int playerSet1;
436 int playerSet2;
437 bool scenarioSetMode;
438 int scenarioNumbCrnt;
439 int scenarioNumbNext;
440 bool employAllowedFlag;
441 bool buildAllowedFlag;
442 bool summonAllowedFlag;
443
444
445 NSRect scCenter;
446 NSInteger headerFrame;
447
448 bool EDappearFlag;
449 bool EDappearPosFlag;
450 int EDappearListRow;
451 int EDappearListRow2;
452
453 bool EDdissappearFlag;
454 bool EDdissappearPosFlag;
455 int EDdissappearListRow;
456
457 MAPSCRIPT0 *MS0T;
458 MAPSCRIPT3 *MS3T;
459 MAPSCRIPT5 *MS5T;
460
461 int EDBGMListRow;
462 int EDSEListRow;
463
464 BGMUSIC BGM[999];
465 SEFFECT SE[9999];
466 int bgmNum;
467 int seNum;
468
469 bool EDbranchFlag;
470 bool EDbranchBH1Flag;
471 bool EDbranchBH2Flag;
472 int EDbranchBUrow;
473 int EDbranchBProw;
474 int EDbranchBOrow;
475 int EDbranchBBrow;
476 bool EDbranchUnitFlag;
477 bool EDbranchPlaceFlag;
478 bool EDbranchPlaceTenFlag;
479 bool EDbranchPlaceHaniFlag;
480 bool EDbranchPlaceHani2Flag;
481 bool EDbranchPlaceHani3Flag;
482 bool EDbranchPlaceKukeiFlag;
483 bool EDbranchPlaceKukei2Flag;
484 bool EDbranchObjeFlag;
485 bool EDbranchBuildFlag;
486
487 bool EDresourceflag;
488 bool EDresourceflag1;
489 bool EDresourceflag2;
490 bool EDresourceflag3;
491
492 bool fuckingRetardedBtnPushed1;
493
494 int fileNumb;
495
496 int eventGuildListRow;
497 bool eventGUildListFlag;
498
499 bool oopsIsRightFlag;
500
501 NSTimer *timeMapEditor;
502
503 @interface MapEditor : NSObject
504 {
505     
506     
507     IBOutlet NSImageView *topIV;
508     IBOutlet NSTextField *topName;
509     IBOutlet NSTextField *topHealth;
510     
511     IBOutlet NSButtonCell *EDSWON;
512     IBOutlet NSButtonCell *EDSWOFF;
513     IBOutlet NSTextField *EDSWTF;
514     IBOutlet NSWindow *EDSwitchWindow2;
515     
516     
517     
518     
519     IBOutlet NSTextField *EDeventTimeTF1;
520     IBOutlet NSTextField *EDeventTimeTF2;
521     IBOutlet NSPopUpButton *EDeventTrigger;
522     IBOutlet NSButton *EDeventTriggerDeley;
523     
524     IBOutlet NSTextField *TFcurrentChipIndex;
525     
526     IBOutlet NSPanel *PMCL;
527     IBOutlet NSPanel *PBCL;
528     IBOutlet NSPanel *PUCL;
529     IBOutlet NSPanel *PLCL;
530     
531     IBOutlet NSWindow *MapEditorWindow;
532     NSPoint windowPoint;
533     
534     IBOutlet NSWindow *TitleWindow;
535     
536     IBOutlet NSPanel *mapSizeWindow;
537     IBOutlet NSTextField *mapSizeHeight;
538     IBOutlet NSTextField *mapSizeWidth;
539     
540     
541     IBOutlet NSPanel *loadMapWindow;
542     NSMutableArray *loadMapListMA;
543     IBOutlet NSArrayController *loadMapListAC;
544     IBOutlet NSTableView *loadMapListTV;
545     
546     IBOutlet NSPanel *saveMapWindow;
547     NSMutableArray *saveMapListMA;
548     IBOutlet NSArrayController *saveMapListAC;
549     IBOutlet NSTableView *saveMapListTV;
550     IBOutlet NSTextField *saveMapTF;
551     
552     
553     
554     IBOutlet NSWindow *eventWindow;
555     NSMutableArray *eventListMA;
556     IBOutlet NSArrayController *eventListAC;
557     IBOutlet NSTableView *eventListTV;
558     
559     IBOutlet NSButton *eventCheckBtn;
560     IBOutlet NSPopUpButton *eventPopupBtn;
561     NSMutableArray *eventPosMA;
562     IBOutlet NSArrayController *eventPosAC;
563     IBOutlet NSTableView *eventPosTV;
564     
565     IBOutlet NSPopUpButton *eventPlayerSetPUB1;
566     IBOutlet NSPopUpButton *eventPlayerSetPUB2;
567     IBOutlet NSButton *eventBattleDetailBtn;
568     
569     
570     IBOutlet NSWindow *eventEndGameCondition;
571     IBOutlet NSPopUpButton *EPUB1;
572     IBOutlet NSPopUpButton *EPUB2;
573     NSMutableArray *EEGC1MA;
574     IBOutlet NSArrayController *EEGC1AC;
575     IBOutlet NSTableView *EEGC1TV;
576     NSMutableArray *EEGC2MA;
577     IBOutlet NSArrayController *EEGC2AC;
578     IBOutlet NSTableView *EEGC2TV;
579     
580     IBOutlet NSTextField *EEGCstr;
581     
582     NSMutableArray *EEGC01MA;
583     IBOutlet NSArrayController *EEGC01AC;
584     IBOutlet NSTableView *EEGC01TV;
585     IBOutlet NSTextField *EEGC01str;
586     IBOutlet NSTextField *EEGC012str;
587     
588     NSMutableArray *EEGC02MA;
589     IBOutlet NSArrayController *EEGC02AC;
590     IBOutlet NSTableView *EEGC02TV;
591     IBOutlet NSTextField *EEGC02str;
592     IBOutlet NSTextField *EEGC022str;
593     
594     short EEGCflag;
595     
596     IBOutlet NSWindow *eventDetailWindow;
597     NSMutableArray *eventDetailListMA;
598     IBOutlet NSArrayController *eventDetailListAC;
599     IBOutlet NSTableView *eventDetailListTV;
600     
601     NSMutableArray *EDswitch1MA;
602     IBOutlet NSArrayController *EDswitch1AC;
603     IBOutlet NSTableView *EDswitch1TV;
604     
605     NSMutableArray *EDswitch2MA;
606     IBOutlet NSArrayController *EDswitch2AC;
607     IBOutlet NSTableView *EDswitch2TV;
608     
609     NSMutableArray *EDvariableMA;
610     IBOutlet NSArrayController *EDvariableAC;
611     IBOutlet NSTableView *EDvariableTV;
612     IBOutlet NSTextField *EDvariableTF;
613     
614     IBOutlet NSPopUpButton *EDitemPUB;
615     IBOutlet NSPopUpButton *EDunitPUB;
616     
617     IBOutlet NSTextField *EDnameTF;
618     IBOutlet NSButton *EDswitch1Btn;
619     IBOutlet NSButton *EDswitch2Btn;
620     IBOutlet NSButton *EDvariableBtn;
621     IBOutlet NSButton *EDitemBtn;
622     IBOutlet NSButton *EDunitBtn;
623     
624     IBOutlet NSWindow *eventDetailSelectionWindow;
625     
626     IBOutlet NSWindow *EDtextWindow;
627     IBOutlet NSTextField *EDtextName;
628     IBOutlet NSTextField *EDtextString;
629     IBOutlet NSImageView *EDtextImage;
630     
631     IBOutlet NSWindow *EDtextImageWindow;
632     NSMutableArray *EDtextImageMA;
633     IBOutlet NSArrayController *EDtextImageAC;
634     IBOutlet NSTableView *EDtextImageTV;
635     IBOutlet NSButtonCell *EDtextImageButton1;
636     IBOutlet NSButtonCell *EDtextImageButton2;
637     IBOutlet NSButtonCell *EDtextImageButton3;
638     NSInteger EDtextImageButtonValue;
639     
640     IBOutlet NSWindow *EDselectionWindow;
641     NSMutableArray *EDselectionMA;
642     IBOutlet NSArrayController *EDselectionAC;
643     IBOutlet NSTableView *EDselectionTV;
644     bool EDselectionEditing;
645     IBOutlet NSTextField *EDselectionTF;
646     IBOutlet NSTextField *EDselectionTF2;
647     
648     
649     IBOutlet NSWindow *EDvalueWindow;
650     
651     NSMutableArray *EDvalueMA;
652     IBOutlet NSArrayController *EDvalueAC;
653     IBOutlet NSTableView *EDvalueTV;
654  
655     
656     IBOutlet NSWindow *EDswitchWindow;
657     IBOutlet NSTextField *EDswitchTF;
658     
659     IBOutlet NSWindow *EDvarWindow;
660     NSMutableArray *EDvarMA;
661     IBOutlet NSArrayController *EDvarAC;
662     IBOutlet NSTableView *EDvarTV;
663     IBOutlet NSTextField *EDvarTF1;
664     IBOutlet NSTextField *EDvarTF2;
665     IBOutlet NSButtonCell *EDvarButtonT;
666     IBOutlet NSButtonCell *EDvarButtonI;
667     IBOutlet NSButtonCell *EDvarButton1;
668     IBOutlet NSButtonCell *EDvarButton2;
669     IBOutlet NSButtonCell *EDvarButton3;
670     IBOutlet NSButtonCell *EDvarButton4;
671     IBOutlet NSButtonCell *EDvarButton5;
672     IBOutlet NSButtonCell *EDvarButton6;
673     IBOutlet NSButtonCell *EDvarButtonA;
674     IBOutlet NSButtonCell *EDvarButtonB;
675     IBOutlet NSButtonCell *EDvarButtonC;
676     IBOutlet NSButtonCell *EDvarButtonD;
677     IBOutlet NSButtonCell *EDvarButtonE;
678     IBOutlet NSButtonCell *EDvarButtonF;
679     IBOutlet NSButtonCell *EDvarButtonG;
680     IBOutlet NSTextField *EDvarTeisu;
681     NSMutableArray *EDvarHensuMA;
682     IBOutlet NSArrayController *EDvarHensuAC;
683     IBOutlet NSTableView *EDvarHensuTV;
684     IBOutlet NSTextField *EDvarRansu1;
685     IBOutlet NSTextField *EDvarRansu2;
686     IBOutlet NSPopUpButton *EDvarItem;
687     IBOutlet NSPopUpButton *EDvarUnit1;
688     IBOutlet NSPopUpButton *EDvarUnit2;
689     IBOutlet NSPopUpButton *EDvarEtc;
690     
691     IBOutlet NSWindow *EDvarSetWindow;
692     NSMutableArray *EDvarHensuSet1MA;
693     IBOutlet NSArrayController *EDvarHensuSet1AC;
694     IBOutlet NSTableView *EDvarHensuSet1TV;
695     NSMutableArray *EDvarHensuSet2MA;
696     IBOutlet NSArrayController *EDvarHensuSet2AC;
697     IBOutlet NSTableView *EDvarHensuSet2TV;
698     IBOutlet NSTextField *EDvarMax;
699     IBOutlet NSTextField *EDvarName;
700     
701
702     IBOutlet NSWindow *EDtimerWindow;
703     IBOutlet NSButtonCell *EDtimerButton1;
704     IBOutlet NSButtonCell *EDtimerButton2;
705     IBOutlet NSTextField *EDtimerTF1;
706     IBOutlet NSTextField *EDtimerTF2;
707     
708     IBOutlet NSWindow *EDtermsWindow;
709     
710     
711     
712     
713     
714     
715     
716     
717     
718     
719     IBOutlet NSWindow *EDlabelWindow;
720     IBOutlet NSTextField *EDlabelTF;
721     
722     IBOutlet NSWindow *EDlabelJumpWindow;
723     IBOutlet NSTextField *EDlabelJumpTF;
724     
725     IBOutlet NSWindow *EDmemoWindow;
726     IBOutlet NSTextField *EDmemoTF;
727     
728     IBOutlet NSWindow *EDresourceWindow;
729     IBOutlet NSButton *EDresourceBtn1;
730     IBOutlet NSButton *EDresourceBtn2;
731     IBOutlet NSButton *EDresourceBtn3;
732     IBOutlet NSButtonCell *EDresourceButton1;
733     IBOutlet NSButtonCell *EDresourceButton2;
734     IBOutlet NSButtonCell *EDresourceButton3;
735     IBOutlet NSButtonCell *EDresourceButton4;
736     IBOutlet NSButtonCell *EDresourceButton5;
737     IBOutlet NSButtonCell *EDresourceButton6;
738     IBOutlet NSButtonCell *EDresourceButtonS1;
739     IBOutlet NSButtonCell *EDresourceButtonS2;
740     IBOutlet NSButtonCell *EDresourceButtonS3;
741     IBOutlet NSButtonCell *EDresourceButtonS4;
742     IBOutlet NSButtonCell *EDresourceButtonS5;
743     IBOutlet NSButtonCell *EDresourceButtonS6;
744     IBOutlet NSTextField *EDresourceTF1;
745     IBOutlet NSTextField *EDresourceTF2;
746     IBOutlet NSTextField *EDresourceTF3;
747     NSMutableArray *EDresourceMA1;
748     IBOutlet NSArrayController *EDresourceAC1;
749     IBOutlet NSTableView *EDresourceTV1;
750     NSMutableArray *EDresourceMA2;
751     IBOutlet NSArrayController *EDresourceAC2;
752     IBOutlet NSTableView *EDresourceTV2;
753     NSMutableArray *EDresourceMA3;
754     IBOutlet NSArrayController *EDresourceAC3;
755     IBOutlet NSTableView *EDresourceTV3;
756     IBOutlet NSTextField *EDresourceTeam;
757     
758     IBOutlet NSWindow *EDitemWindow;
759     
760     
761     
762     
763     
764     
765     IBOutlet NSWindow *EDmemberWindow;
766     
767     
768     
769     
770     
771     
772     IBOutlet NSWindow *EDhpWindow;
773     IBOutlet NSButtonCell *EDhpButton1;
774     IBOutlet NSButtonCell *EDhpButton2;
775     IBOutlet NSButtonCell *EDhpButtonA;
776     IBOutlet NSButtonCell *EDhpButtonB;
777     IBOutlet NSTextField *EDhpTF;
778     NSMutableArray *EDhp1MA;
779     IBOutlet NSArrayController *EDhp1AC;
780     IBOutlet NSTableView *EDhp1TV;
781     NSMutableArray *EDhp2MA;
782     IBOutlet NSArrayController *EDhp2AC;
783     IBOutlet NSTableView *EDhp2TV;
784     
785     IBOutlet NSWindow *EDmpWindow;
786     IBOutlet NSButtonCell *EDmpButton1;
787     IBOutlet NSButtonCell *EDmpButton2;
788     IBOutlet NSButtonCell *EDmpButtonA;
789     IBOutlet NSButtonCell *EDmpButtonB;
790     IBOutlet NSTextField *EDmpTF;
791     NSMutableArray *EDmp1MA;
792     IBOutlet NSArrayController *EDmp1AC;
793     IBOutlet NSTableView *EDmp1TV;
794     NSMutableArray *EDmp2MA;
795     IBOutlet NSArrayController *EDmp2AC;
796     IBOutlet NSTableView *EDmp2TV;
797     
798     IBOutlet NSWindow *EDstatus;
799     IBOutlet NSPopUpButton *EDstpubA;
800     IBOutlet NSButtonCell *EDstButtonA11;
801     IBOutlet NSButtonCell *EDstButtonA12;
802     IBOutlet NSButtonCell *EDstButtonA13;
803     IBOutlet NSButtonCell *EDstButtonA21;
804     IBOutlet NSButtonCell *EDstButtonA22;
805     IBOutlet NSTextField *EDstTFA;
806     NSMutableArray *EDstA1MA;
807     IBOutlet NSArrayController *EDstA1AC;
808     IBOutlet NSTableView *EDstA1TV;
809     NSMutableArray *EDstA2MA;
810     IBOutlet NSArrayController *EDstA2AC;
811     IBOutlet NSTableView *EDstA2TV;
812     
813     IBOutlet NSPopUpButton *EDstpubB;
814     IBOutlet NSButtonCell *EDstButtonB11;
815     IBOutlet NSButtonCell *EDstButtonB12;
816     IBOutlet NSButtonCell *EDstButtonB13;
817     IBOutlet NSButtonCell *EDstButtonB21;
818     IBOutlet NSButtonCell *EDstButtonB22;
819     IBOutlet NSTextField *EDstTFB;
820     NSMutableArray *EDstB1MA;
821     IBOutlet NSArrayController *EDstB1AC;
822     IBOutlet NSTableView *EDstB1TV;
823     NSMutableArray *EDstB2MA;
824     IBOutlet NSArrayController *EDstB2AC;
825     IBOutlet NSTableView *EDstB2TV;
826     
827     IBOutlet NSButtonCell *EDTimerSet1A;
828     IBOutlet NSButtonCell *EDTimerSet1B;
829     IBOutlet NSButtonCell *EDTimerSet2A;
830     IBOutlet NSButtonCell *EDTimerSet2B;
831     IBOutlet NSButtonCell *EDTimerSet3A;
832     IBOutlet NSButtonCell *EDTimerSet3B;
833     IBOutlet NSTextField *EDTimerTF1;
834     IBOutlet NSTextField *EDTimerTF2;
835     
836     
837     IBOutlet NSWindow *EDAppearWindow;
838     NSMutableArray *EDAppear1MA;
839     IBOutlet NSArrayController *EDAppear1AC;
840     IBOutlet NSTableView *EDAppear1TV;
841     NSMutableArray *EDAppear2MA;
842     IBOutlet NSArrayController *EDAppear2AC;
843     IBOutlet NSTableView *EDAppear2TV;
844     IBOutlet NSButtonCell *EDAppearBC1;
845     IBOutlet NSButtonCell *EDAppearBC2;
846     
847     IBOutlet NSWindow *EDWaitWindow;
848     IBOutlet NSTextField *EDWaitTF;
849     
850     IBOutlet NSWindow *EDBGMWindow;
851     NSMutableArray *EDBGMMA;
852     IBOutlet NSArrayController *EDBGMAC;
853     IBOutlet NSTableView *EDBGMTV;
854     
855     IBOutlet NSWindow *EDSEWindow;
856     NSMutableArray *EDSEMA;
857     IBOutlet NSArrayController *EDSEAC;
858     IBOutlet NSTableView *EDSETV;
859     
860     IBOutlet NSWindow *EDtileBackWindow;
861     
862     IBOutlet NSWindow *EDGameOverWindow;
863     IBOutlet NSButton *EDGameOverBtn;
864     IBOutlet NSTextField *EDGameOverTF;
865     IBOutlet NSImageView *EDGameOverIV;
866     
867     IBOutlet NSWindow *EDStageClearWindow;
868     IBOutlet NSButton *EDStageClearBtn;
869     
870     IBOutlet NSButton *EDbranchSuicchi;
871     IBOutlet NSButton *EDbranchHensu;
872     IBOutlet NSButton *EDbranchTeisu;
873     IBOutlet NSButton *EDbranchHensu2;
874     IBOutlet NSButton *EDbranchTimer;
875     IBOutlet NSButton *EDbranchETC;
876     NSMutableArray *EDbranchSuicchiMA;
877     IBOutlet NSArrayController *EDbranchSuicchiAC;
878     IBOutlet NSTableView *EDbranchSuicchiTV;
879     NSMutableArray *EDbranchHensuMA;
880     IBOutlet NSArrayController *EDbranchHensuAC;
881     IBOutlet NSTableView *EDbranchHensuTV;
882     IBOutlet NSTextField *EDbranchTeisuTF;
883     NSMutableArray *EDbranchHensu2MA;
884     IBOutlet NSArrayController *EDbranchHensu2AC;
885     IBOutlet NSTableView *EDbranchHensu2TV;
886     IBOutlet NSTextField *EDbranchTimerMinTF;
887     IBOutlet NSTextField *EDbranchTimerSecTF;
888     IBOutlet NSPopUpButton *EDbranchPUB11;
889     IBOutlet NSPopUpButton *EDbranchPUB12;
890     IBOutlet NSPopUpButton *EDbranchPUB13;
891     
892     IBOutlet NSTextField *EDbranchJumpLabelFalse;
893     IBOutlet NSTextField *EDbranchJumpLabelTrue;
894     IBOutlet NSButton *EDbranchUnitNum;
895     IBOutlet NSButton *EDbranchUnitSelect;
896     IBOutlet NSButton *EDbranchUnitPlace;
897     IBOutlet NSButton *EDbranchUnitElect;
898     IBOutlet NSButton *EDbranchUnitObje;
899     IBOutlet NSButton *EDbranchUnitBuild;
900     IBOutlet NSTextField *EDbranchUnitTeam;
901     IBOutlet NSTextField *EDbranchUnitValue;
902     NSMutableArray *EDbranchUnitMA;
903     IBOutlet NSArrayController *EDbranchUnitAC;
904     IBOutlet NSTableView *EDbranchUnitTV;
905     NSMutableArray *EDbranchPlaceMA;
906     IBOutlet NSArrayController *EDbranchPlaceAC;
907     IBOutlet NSTableView *EDbranchPlaceTV;
908     NSMutableArray *EDbranchObjeMA;
909     IBOutlet NSArrayController *EDbranchObjeAC;
910     IBOutlet NSTableView *EDbranchObjeTV;
911     IBOutlet NSTextField *EDbranchObjeRange;
912     NSMutableArray *EDbranchBuildMA;
913     IBOutlet NSArrayController *EDbranchBuildAC;
914     IBOutlet NSTableView *EDbranchBuildTV;
915     IBOutlet NSPopUpButton *EDbranchPUB21;
916     IBOutlet NSPopUpButton *EDbranchPUB22;
917
918     IBOutlet NSWindow *EDbrachSuicchiWindow;
919     IBOutlet NSTextField *EDbrachSuicchiTF;
920     IBOutlet NSWindow *EDbrachPlaceHaniWindow;
921     IBOutlet NSTextField *EDbrachPlaceHaniTF;
922     
923     IBOutlet NSWindow *EDdissappearWindow;
924     NSMutableArray *EDdissappearMA;
925     IBOutlet NSArrayController *EDdissappearAC;
926     IBOutlet NSTableView *EDdissappearTV;
927     IBOutlet NSWindow *EDdissappearSubmitWindow;
928     
929     IBOutlet NSButton *eventScenarioModeBtn;
930     IBOutlet NSTextField *eventScenarioCrntTF;
931     IBOutlet NSTextField *eventScenarioNextTF;
932     
933     
934     IBOutlet NSWindow *eventGuildListWindow;
935
936     NSMutableArray *eventGuildListMA;
937     IBOutlet NSArrayController *eventGuildListAC;
938     IBOutlet NSTableView *eventGuildListTV;
939     IBOutlet NSTextField *eventGuildTF1;
940     IBOutlet NSTextField *eventGuildTF2;
941     IBOutlet NSButtonCell *eventGuildBC1;
942     IBOutlet NSButtonCell *eventGuildBC2;
943     IBOutlet NSButton *eventGuildBTN;
944     
945     
946     IBOutlet NSWindow *EDhpFixWindow;
947     
948     IBOutlet NSPopUpButton *EDhpFixPUB;
949     IBOutlet NSButtonCell *EDhpFixBC1;
950     IBOutlet NSButtonCell *EDhpFixBC2;
951     IBOutlet NSButtonCell *EDhpFixBC3;
952     IBOutlet NSButtonCell *EDhpFixBC4;
953     IBOutlet NSTextField *EDhpFixTF1;
954     IBOutlet NSTextField *EDhpFixTF2;
955     IBOutlet NSButton *EDhpFixBtn;
956     
957     NSMutableArray *EDhpFixListMA1;
958     IBOutlet NSArrayController *EDhpFixListAC1;
959     IBOutlet NSTableView *EDhpFixListTV1;
960     NSMutableArray *EDhpFixListMA2;
961     IBOutlet NSArrayController *EDhpFixListAC2;
962     IBOutlet NSTableView *EDhpFixListTV2;
963     NSMutableArray *EDhpFixListMA3;
964     IBOutlet NSArrayController *EDhpFixListAC3;
965     IBOutlet NSTableView *EDhpFixListTV3;
966     
967     IBOutlet NSButton *eventEmployFlagBTN;
968     IBOutlet NSButton *eventBuildFlagBTN;
969     IBOutlet NSButton *eventSummonFlagBTN;
970 }
971
972 -(IBAction)EDhpFixPlace:(id)sender;
973 -(IBAction)EDhpFixValue:(id)sender;
974 -(IBAction)EDhpFixSubmit:(id)sender;
975 -(IBAction)EDhpFixCancel:(id)sender;
976
977 -(IBAction)eventGuildBtnCell:(id)sender;
978 -(IBAction)eventGuildBtn:(id)sender;
979 -(IBAction)eventGuildBtnSubmit:(id)sender;
980
981 -(IBAction)EDSWOKbtn:(id)sender;
982 -(IBAction)EDSWCancelbtn:(id)sender;
983
984 -(IBAction)backTitle:(id)sender;
985 -(IBAction)saveMap:(id)sender;
986 -(IBAction)loadMap:(id)sender;
987 -(IBAction)mapSize:(id)sender;
988 -(IBAction)setEvent:(id)sender;
989
990 -(IBAction)mapSizeSubmit:(id)sender;
991 -(IBAction)mapSizeCancel:(id)sender;
992
993 -(IBAction)loadMapSubmit:(id)sender;
994 -(IBAction)loadMapCancel:(id)sender;
995
996 -(IBAction)saveMapSubmit:(id)sender;
997 -(IBAction)saveMapCancel:(id)sender;
998
999 -(IBAction)previous:(id)sender;
1000 -(IBAction)next:(id)sender;
1001
1002 -(IBAction)eventInsert:(id)sender;
1003 -(IBAction)eventDelete:(id)sender;
1004 -(IBAction)eventSubmit:(id)sender;
1005
1006 -(IBAction)EEGClight:(id)sender;
1007 -(IBAction)EEGCdark:(id)sender;
1008 -(IBAction)EEGC1insert:(id)sender;
1009 -(IBAction)EEGC1delete:(id)sender;
1010 -(IBAction)EEGC2insert:(id)sender;
1011 -(IBAction)EEGC2delete:(id)sender;
1012 -(IBAction)EEGCsubmit:(id)sender;
1013 -(IBAction)EEGCcancel:(id)sender;
1014 -(IBAction)EEGC1select:(id)sender;
1015 -(IBAction)EEGC2select:(id)sender;
1016
1017
1018 -(IBAction)eventCheckBtn:(id)sender;
1019 -(IBAction)eventPopupBtn:(id)sender;
1020
1021 -(IBAction)EDclose:(id)sender;
1022 -(IBAction)EDinsert:(id)sender;
1023 -(IBAction)EDdelete:(id)sender;
1024
1025 -(IBAction)EDtext:(id)sender;
1026 -(IBAction)EDselection:(id)sender;
1027 -(IBAction)EDvalue:(id)sender;
1028
1029 -(IBAction)EDswitch:(id)sender;
1030 -(IBAction)EDvariable:(id)sender;
1031 -(IBAction)EDtimer:(id)sender;
1032
1033 -(IBAction)EDterms:(id)sender;
1034 -(IBAction)EDlabel:(id)sender;
1035 -(IBAction)EDlabelJump:(id)sender;
1036 -(IBAction)EDmemo:(id)sender;
1037
1038 -(IBAction)EDresource:(id)sender;
1039 -(IBAction)EDitem:(id)sender;
1040 -(IBAction)EDmember:(id)sender;
1041
1042 -(IBAction)EDhp:(id)sender;
1043 -(IBAction)EDmp:(id)sender;
1044 -(IBAction)EDstatus:(id)sender;
1045 -(IBAction)EDstate:(id)sender;
1046 -(IBAction)EDskill:(id)sender;
1047 -(IBAction)EDname:(id)sender;
1048 -(IBAction)EDequip:(id)sender;
1049 -(IBAction)EDattackFlagOn:(id)sender;
1050
1051 -(IBAction)EDmove:(id)sender;
1052 -(IBAction)EDappear:(id)sender;
1053 -(IBAction)EDdissapear:(id)sender;
1054
1055 -(IBAction)EDplace:(id)sender;
1056 -(IBAction)EDwait:(id)sender;
1057 -(IBAction)EDpilot:(id)sender;
1058 -(IBAction)EDunit:(id)sender;
1059 -(IBAction)EDbgm:(id)sender;
1060 -(IBAction)EDbgmFadeOut:(id)sender;
1061 -(IBAction)EDse:(id)sender;
1062 -(IBAction)EDseStop:(id)sender;
1063
1064 -(IBAction)EDbattle:(id)sender;
1065 -(IBAction)EDshop:(id)sender;
1066 -(IBAction)EDnameInput:(id)sender;
1067
1068 -(IBAction)EDgameOver:(id)sender;
1069 -(IBAction)EDstageClear:(id)sender;
1070 -(IBAction)EDtitle:(id)sender;
1071
1072 -(IBAction)EDcancel:(id)sender;
1073
1074 -(IBAction)EDtextSubmit:(id)sender;
1075 -(IBAction)EDtextCancel:(id)sender;
1076 -(IBAction)EDtextImageSlct:(id)sender;
1077
1078 -(IBAction)EDtextImageSubmit:(id)sender;
1079 -(IBAction)EDtextImageCancel:(id)sender;
1080 -(IBAction)EDtextImageButton:(id)sender;
1081
1082 -(IBAction)EDselectionAdd:(id)sender;
1083 -(IBAction)EDselectionDelete:(id)sender;
1084 -(IBAction)EDselectionSubmit:(id)sender;
1085 -(IBAction)EDselectionCancel:(id)sender;
1086
1087 -(IBAction)EDvalueSubmit:(id)sender;
1088 -(IBAction)EDvalueCancel:(id)sender;
1089
1090 -(IBAction)EDswitchSubmit:(id)sender;
1091 -(IBAction)EDswitchCancel:(id)sender;
1092
1093 -(IBAction)EDvariableSubmit:(id)sender;
1094 -(IBAction)EDvariableCancel:(id)sender;
1095
1096 -(IBAction)EDtimerSubmit:(id)sender;
1097 -(IBAction)EDtimerCancel:(id)sender;
1098
1099 -(IBAction)EDtermsSubmit:(id)sender;
1100 -(IBAction)EDtermsCancel:(id)sender;
1101
1102 -(IBAction)EDlabelSubmit:(id)sender;
1103 -(IBAction)EDlabelCancel:(id)sender;
1104
1105 -(IBAction)EDlabelJumpSubmit:(id)sender;
1106 -(IBAction)EDlabelJumpCancel:(id)sender;
1107
1108 -(IBAction)EDmemoSubmit:(id)sender;
1109 -(IBAction)EDmemoCancel:(id)sender;
1110
1111 -(IBAction)EDresourceSubmit:(id)sender;
1112 -(IBAction)EDresourceCancel:(id)sender;
1113
1114 -(IBAction)EDhpSubmit:(id)sender;
1115 -(IBAction)EDhpCancel:(id)sender;
1116
1117 -(IBAction)EDmpSubmit:(id)sender;
1118 -(IBAction)EDmpCancel:(id)sender;
1119
1120 -(IBAction)EDstatusSubmit:(id)sender;
1121 -(IBAction)EDstatusCancel:(id)sender;
1122
1123 -(IBAction)setBattleModeBtn:(id)sender;
1124 -(IBAction)playerSetBtn1:(id)sender;
1125 -(IBAction)playerSetBtn2:(id)sender;
1126
1127 -(IBAction)EDTimerSetBtn1:(id)sender;
1128 -(IBAction)EDTimerSetBtn2:(id)sender;
1129 -(IBAction)EDTimerSetBtn3:(id)sender;
1130
1131 -(IBAction)EDvarSetClose:(id)sender;
1132 -(IBAction)EDvarSetMax:(id)sender;
1133 -(IBAction)EDvarSetSubmit:(id)sender;
1134 -(IBAction)EDvarSetSave:(id)sender;
1135
1136 -(IBAction)EDappearClose:(id)sender;
1137 -(IBAction)EDappearSubmit:(id)sender;
1138 -(IBAction)EDappearSet:(id)sender;
1139 -(IBAction)EDappearSave:(id)sender;
1140
1141 -(IBAction)EDappearAdd:(id)sender;
1142 -(IBAction)EDappearRemove:(id)sender;
1143
1144 -(IBAction)EDdissappearAdd:(id)sender;
1145 -(IBAction)EDdissappearRemove:(id)sender;
1146 -(IBAction)EDdissappearSubmit:(id)sender;
1147
1148
1149 -(IBAction)EDwaitSubmit:(id)sender;
1150 -(IBAction)EDwaitClost:(id)sender;
1151
1152 -(IBAction)EDBGMSubmit:(id)sender;
1153 -(IBAction)EDBGMClose:(id)sender;
1154 -(IBAction)EDBGMRun:(id)sender;
1155 -(IBAction)EDBGMStop:(id)sender;
1156
1157 -(IBAction)EDSESubmit:(id)sender;
1158 -(IBAction)EDSEClose:(id)sender;
1159 -(IBAction)EDSERun:(id)sender;
1160 -(IBAction)EDSEStop:(id)sender;
1161
1162 -(IBAction)EDtitleBackSubmit:(id)sender;
1163 -(IBAction)EDtitleBackClose:(id)sender;
1164
1165 -(IBAction)EDGameOverSubmit:(id)sender;
1166 -(IBAction)EDGameOverClose:(id)sender;
1167
1168 -(IBAction)EDStageClearSubmit:(id)sender;
1169 -(IBAction)EDStageClearClose:(id)sender;
1170
1171 -(IBAction)EDbranchSubmit:(id)sender;
1172 -(IBAction)EDbranchClose:(id)sender;
1173
1174 -(IBAction)EDbranchUnitAdd:(id)sender;
1175 -(IBAction)EDbranchUnitRemove:(id)sender;
1176 -(IBAction)EDbranchPlaceAddTen:(id)sender;
1177 -(IBAction)EDbranchPlaceAddHani:(id)sender;
1178 -(IBAction)EDbranchPlaceAddkukei:(id)sender;
1179 -(IBAction)EDbranchPlaceRemove:(id)sender;
1180 -(IBAction)EDbranchObjeAdd:(id)sender;
1181 -(IBAction)EDbranchObjeRemove:(id)sender;
1182 -(IBAction)EDbranchBuildAdd:(id)sender;
1183 -(IBAction)EDbranchBuildRemove:(id)sender;
1184
1185 -(IBAction)EDbranchSuicchiSubmit:(id)sender;
1186 -(IBAction)EDbranchSuicchiClose:(id)sender;
1187 -(IBAction)EDbranchPlaceHaniSubmit:(id)sender;
1188
1189 -(IBAction)EDdissapearMapSubmit:(id)sender;
1190 -(IBAction)EDdissapearUnitSubmit:(id)sender;
1191 -(IBAction)EDdissapearSubmitCancel:(id)sender;
1192
1193 -(void)saveMapTFset;
1194 -(void)initFileDirectoryOthers;
1195 -(void)initEventGuildList;
1196 @end
1197 MapEditor *mapEditor;
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226