Hello everyone…
I wanted to know whats the best approach to solve this.
I have 2 kind of attack-able objects in my game.
Classes extending from the character class and classes extending from the Actor class.
If a character is attack-able, it has a lot of variables and functions present in the class which is used form calculation.
I basically don’t want to have 2 set of those variables one in the class extending from actor and another in the class extending from the CharacterClass.
So the only other easier solution I see for this is using an Interface and adding to to Actor or Character inherited classes so I can just use 1 set of variables and functions. Is there any other solution apart from this?