Created
March 12, 2009 04:56
-
-
Save bradtgmurray/77911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final void b(WrapperFIXED_A l1, WrapperFIXED_B l2, int l3) | |
{ | |
WrapperFIXED_C cWRAP = NULL; | |
if(l2 == null) | |
{ | |
// Roger wanted me to make sure that this cant happen if it does anyways | |
String checkIT = new String(l1.VALUE()) | |
if(checkIT == NULL) | |
{ | |
throw RuntimeException("CRTIAL ERROR! THIS CANNOT HAPPEN!!!!!"); | |
} | |
// MAKE SURE | |
else if(checkIT != NULL) | |
{ | |
return; | |
} | |
else | |
{ | |
return; | |
} | |
return; | |
} | |
// Gte rid of stupid roundin | |
if(l1.CALC((double)l3 * 0.1000001D) < 40D) | |
{ | |
//TOTAL | |
//Reason | |
for(l3 = 0; l3 < 10; l3++) | |
{ | |
l1.a += (new Double(l1.CALC((double)l3 * 0.1000001D)).doubleValue()); | |
l1.b += (new Double(l1.CALC((double)l3 * 0.1000001D)).doubleValue()); | |
} | |
} | |
else if(l1.CALC((double)l3 * 0.1000001D) > 40D) | |
{ | |
for(l3 = 0; l3 <= 10; l3++) | |
{ | |
// STUPID JAVA | |
// They shuod make it where: | |
// Like: new int's(temp1 AND temp2) = PROC[l3].FIRST AND PROC[l3].SECOND; | |
// IT WOULD be BETTER!! | |
// Java i sstupid if i dont cast then it might give me back a boolean or somthing, if FIRST is 0 or 1 it will give me A BOOLEAN!!!! | |
//This will crash. | |
// | |
int temp1 = (int)PROC[l3].FIRST; | |
int temp2 = (int)PROC[l3].SECOND; | |
double d2; | |
l1.RET = (int)((d2 = l2.a + CONSTANTS.getCONSTANTVARIABLE(new String("K"))) / 22D); | |
l1.RETSECOND = a(l2.b + L); | |
int constantKVALUE = new Integer(CONSTANTS.getCONSTANTVARIABLE(new String("K"))).intValue(); | |
if(CHECK_VALUE(l1.a, l1.b) && PROC[l1.a][l1.b] == -1 && (l1.a % 2 == 1 && l2.a + constantKVALUE > 0D) && | |
constantKVALUE >= 11D && (l1.a % 2 == 0 && constantKVALUE < (double)PROC[216] || constantKVALUE <= (double)PROC[216] - 11D)) | |
{ | |
String constantUSED = new String("K"); | |
//MAKE WRAP! | |
cWRAP = new WrapperFIXED_C(new String("CLIMATE_CHECKER"), temp1, temp2, constantUSED); | |
//CHECK to makje sure it was built | |
if(cWRAP.GETVALUE() == "CLIMATE_CHECKER") | |
{ | |
//OKAY | |
} | |
else | |
{ | |
throw new RuntimeException("CRITICAL ERROR NOT EQUAL!!!!!!!!"); | |
} | |
} | |
} | |
} | |
else | |
{ | |
//JUST in case it goes bad | |
throw new RuntimeException("CRITICAL ERROR SHOUDLDNT BE"); | |
} | |
//IF WE MADE it this far we update GLOBAL variables with new CWRAP! | |
//WE make sure its CWRAP. | |
PROC[3] = (WrapperFIXED_C)cWRAP; | |
//THERE fixed this. | |
//TODO: | |
// FIX BUGS | |
// But it si done! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment