Using object extensions and default functions

BlitzMax Forums/BlitzMax Beginners Area/Using object extensions and default functions

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.

Ok basically I'm trying to learn how inhearatince works in Bmax.

I have an object that is the base for all my enemy types.

This enemy object has some basic code in it's methods that all the extension objects use. I would like to do something like the following.
type enemy
method update()
(command set)
end method
endtype

this is what I would like to do with an extension object

type red_enemy extends enemy
method update()
(parent command set)
 individual commands
endmethod
endtype

I would like the extension objects to have the parent command data PLUS some small original code added inside those.