Question about Type Extends Type

BlitzMax Forums/BlitzMax Programming/Question about Type Extends Type

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.

Type T_scout_d

Field F1:T_scout_A
Field F2:T_Scout_B

end type

or

Type T_Scout_D Extends T_Scout_a

Field F1:T_scout_B

EndType


Not really, in C++ (so I believe) you can do Type extends Typea typeb typec etc, but not in Bmax

You have to decide which you most want scout D to "be" and extend from that, and then include the other. Or just include both

Personaly I would make two new types Thrusters and rader, and just include then as ness in each type you want