darkbeer
Beer is Good!
- Reaction score
- 84
hey, i got a little problem concerning interfaces:
i got a struct which extends an interface, it has several methods.
now i need to change just 1 or 2 methods for every other struct, i thought i would make the second struct extend the first, but so it only calls the method of the first ( confusing i know)
example:
now if i call for the problem method of struct second it will always execute the one of first.
but i need the abc method to be the same??
any suggestion (hope u get what i mean )
i got a struct which extends an interface, it has several methods.
now i need to change just 1 or 2 methods for every other struct, i thought i would make the second struct extend the first, but so it only calls the method of the first ( confusing i know)
example:
JASS:
interface a
method abc takes nothing returns nothing
endinterface
struct first extends a
method abc takes nothing returns nothing
//actions etc... ...
endmethod
method PROBLEM takes nothing returns nothing
call BJDebugMsg("THIS IS DISPLAYED")
endmethod
endstrut
struct second extends first
method PROBLEM takes nothing returns nothing
call BJDebugmsg("THIS ISNT DISPLAYED")
endmethod
endstruct
now if i call for the problem method of struct second it will always execute the one of first.
but i need the abc method to be the same??
any suggestion (hope u get what i mean )