Thanks. This works too with 'Field Health' in the baseclass defined.
But thats what I want to avoid; defining a method for every
field I want to access.
If the object has a lot of fields I can define methods
like ReceiveHealth(), ReceiveDamage() and they will return
the right value. But that can be a lot of methods.
But thats what I want to avoid; defining a method for every
field I want to access.
If the object has a lot of fields I can define methods
like ReceiveHealth(), ReceiveDamage() and they will return
the right value. But that can be a lot of methods.