Why you should name types?

Blitz3D Forums/Blitz3D Beginners Area/Why you should name types?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.