I'm having inheritance problems, heres an example that hopefully is indicative of my problems.
I have a type GameObject:
And I have a projectile which extends it:
I have a bunch of projectiles in a list, and I run through the list calling ".update()" on them and I don't get any print out. Anyone know what is wrong, and have any sage tips on how inheritance in bmax might be a bit unusual?
I have a type GameObject:
Type GameObject Abstract Field ID Field dead Method update(deltaT#) Abstract Method setInput(inputData:TList) Abstract Method getOutput:TList() Abstract Method draw() Abstract End Type
And I have a projectile which extends it:
Type Projectile Extends GameObject Method update(deltaT:Float) Print "updating" End Method Method setInput(inputData:TList) End Method Method getOutput:TList() End Method Method draw() print "drawing" End Method Function create:projectile(info:projectileInfo, firerID, targetBase, targetOther, x#, y#, rot#, vx#=0, vy#=0, vrot#=0) End Function End Type
I have a bunch of projectiles in a list, and I run through the list calling ".update()" on them and I don't get any print out. Anyone know what is wrong, and have any sage tips on how inheritance in bmax might be a bit unusual?