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