array test_colors_r115 array test_colors_g169 array test_colors_b314 array Test_nextFree379 integer Test_firstFree401 integer Test_maxIndex936 array Test_typeId807 array Test_col448 integer Test_firstFree401 = 0 integer Test_maxIndex936 = 0 function initGlobals423() { Test_firstFree_401 = 0; Test_maxIndex_936 = 0; } function main101() { initGlobals423(); init_test184(); } function config739() { } function init_test184() { local integer t984 t_984 = new_Test156(); dispatch_Test_test_Test_colorize576(t_984); } function Test_colorize117(integer this133) { if (Test_col_448[this_133] == 0) { } else { if (Test_col_448[this_133] == 1) { } else { }; }; } function Test_init373(integer this978) { } function new_Test156() returns integer { local integer this806 this_806 = alloc_Test493(); construct_Test626(this_806); return this_806; } function construct_Test626(integer this881) { Test_init373(this_881); } function alloc_Test493() returns integer { local integer this108 if (Test_firstFree_401 == 0) { if (Test_maxIndex_936 < 32768) { Test_maxIndex_936 = (Test_maxIndex_936 + 1); this_108 = Test_maxIndex_936; Test_typeId_807[this_108] = 1; } else { error150("Out of memory: Could not create Test."); this_108 = 0; }; } else { Test_firstFree_401 = (Test_firstFree_401 - 1); this_108 = Test_nextFree_379[Test_firstFree_401]; Test_typeId_807[this_108] = 1; }; return this_108; } function error150(string msg157) { $debugPrint647((msg_157 + (" " + #getStackTrace()))); } function dispatch_Test_test_Test_colorize576(integer this130) { if (Test_typeId_807[this_130] == 0) { if (this_130 == 0) { error150("Nullpointer exception when calling Test.colorize"); } else { error150("Called Test.colorize on invalid object."); }; } else { }; Test_colorize117(this_130); }