change extended type

BlitzMax Forums/BlitzMax Programming/change extended 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.

If I setup a main character type

type character

end type


Then extend it with warrior and wizard
type warrior extends character
end type
type wizard extends character
end type


what if a wizard wants to change classes into a warrior?
also is there a way of printing the name of the type?

like for example printing the name "Warrior" or "Wizard" from the type name. (Without putting in a field called 'character type' into the type)