OOP Interfaces

BlitzMax Forums/BlitzMax Beginners Area/OOP Interfaces

But what if I want to have some other object that comes from a different part of the object hierarchy be able to act as a weapon?

Maybe there is a TBook type and I decide it could be used as a weapon. So I add the attack() method to my TBook class. But I can't assign it to my weapon field.

Is there some way to handle this kind of thing?