Core.Object | +--Engine.Actor | +--Engine.Info | +--XIII.MapInfo | +--XIDMaps.MapTest
int
Goal0_2Targets
Goal6_3Targets
Goal8_3Targets
void
SetGoalComplete(int N)
//_____________________________________________________________________________
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class MapTest extends MapInfo placeable; 00005 00006 var int Goal0_2Targets; 00007 var int Goal6_3Targets; 00008 var int Goal8_3Targets; 00009 00010 //_____________________________________________________________________________ 00011 function SetGoalComplete(int N) 00012 { 00013 if ( N == 0 ) 00014 { 00015 Goal0_2Targets ++; 00016 if ( Goal0_2Targets<2 ) 00017 return; 00018 } 00019 if ( N == 6 ) 00020 { 00021 Goal6_3Targets ++; 00022 if ( Goal6_3Targets<3 ) 00023 return; 00024 } 00025 if ( N == 8 ) 00026 { 00027 Goal8_3Targets ++; 00028 if ( Goal8_3Targets<3 ) 00029 return; 00030 } 00031 00032 if ( N==7 ) 00033 SetPrimaryGoal(8); 00034 if ( N==6 ) 00035 SetPrimaryGoal(7); 00036 if ( N==5 ) 00037 SetPrimaryGoal(6); 00038 if ( N==4 ) 00039 SetPrimaryGoal(5); 00040 if ( N==3 ) 00041 SetPrimaryGoal(4); 00042 if ( N==2 ) 00043 SetPrimaryGoal(3); 00044 if ( N==1 ) 00045 SetPrimaryGoal(2); 00046 if ( N==0 ) 00047 SetPrimaryGoal(1); 00048 00049 super.SetGoalComplete(N); 00050 } 00051 00052 00053 00054 defaultproperties 00055 { 00056 checkTime=1.000000 00057 }