functions or types

Blitz3D Forums/Blitz3D Programming/functions or 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.

edit...

Anyone who is reading.

Yes I see where you are going, but with types within types it can be an easier way to handle all that data.

Krylar wrote a great explanation using spaceships, Mother ships and fighter crafts all have guns, fuel, shield, but maybe Mother ships have landing decks and hangars and lifeboats etc.

Types don't have to be re-written if you add stuff either, simply add another field to ad a whole set of new stuff. They're dynamic so as far as creatures which spawn or particles go, types again are possibly the better way to manage the data.

I don't know if there is a speed difference but Types are blumming quick when you have hundreds of vehicles or characters to deal with, all with tens of settings to juggle.

It is a good read if you can find it.


IPete2.