I have a C++ question, due to the fact that I'm using enheritance and a somewhat complex model, I need to go through a list of objects and do a processo on only those who are a certain type. For example I have ENTITY_SOUND_LOCALIZED and ENTITY_SOUND_AMBIENT. I have the list of all entities but the problem is that I need to process in a function only the ENTITY_SOUND_LOCALIZED entities, so I don't how to check if an especific object is ENTITY_SOUND_LOCALIZED. I thought about using sizeof since the size would be different but it doesn't work, how do I check if an object is a certain type?