So here's what I'm trying to do in pseudocode:
array = new Array();
thisObj = new objectTypeOne();
thisObj2 = new objectTypeTwo();
array.push(thisObj);
array.push(thisObj2);
for( i=0; i<=array.length, i++)
{
if( array[i] == objectTypeOne() )
{
//do code
}
}
I know I could have two different arrays for each object type but that would ruin a lot of my other code which assumes they're both in the same array. (they are pratically same object with slight but vital differences, I suppose I should really have objectTypeTwo derive from other, but that's irrelevant at the moment).
if (array[i] is objectTypeOne)//code