I use the same type names all the time. Every functiont hat deals with bullets accepets a parameter caleld ThisBullet.Bullet. And every tine I need to loop through my list of bullets I'll use ThisBullet.Bullet for that as well. Or I'll use something else.
All ThisBullet.Bullet is is a pointer. It can hold a pointer to any bullet you want it to. Treat it exactly the same as you would an integer. Use it for as many different values as you like. Values in this case being pointers to bullets in your bullet type.
And no there is no good reason to combine multiple loops into one, unless it makes your code neater.
All ThisBullet.Bullet is is a pointer. It can hold a pointer to any bullet you want it to. Treat it exactly the same as you would an integer. Use it for as many different values as you like. Values in this case being pointers to bullets in your bullet type.
And no there is no good reason to combine multiple loops into one, unless it makes your code neater.