Hello,
i got a problem with identifieng my classes upon its static ID number.
Upon creation of each class, it recieves its individual number, the numbers are ascending from 0 to "endless".
So now, I want to do a loop like this
for(int i = 0; i <= Class::GetMaxIDNumber(); ++i)
{
nSpriteNr = spriteNumberOfClass(i);
}
int spriteNumberOfClass(int nClassID)
{
//takes the class number and returns its corresponding private: m_nSpriteID number
//how to do this part?
}
and I want to know the corresponding membervariable m_nSpriteID, but I do not know how to identify a class based on an ID number (or another way of looping through all classes of a given type)
thanks very much