I am new to C++ and haven't quite grasped structs or classes/objects yet. I'm looking to make a very simple text console game using enemies with slightly different health and attack power. I'm thinking it should use 'inheritance' of some kind but am not 100% sure I'm looking at this the right way.
PSEUDOCODE:-
EnemyClass
HP
ATK
Enemy1.EnemyClass
HP=10
ATK=1
Enemy2.EnemyClass
HP=15
ATK=2
Enemy2 attacks you for Enemy2.ATK damage.
You hit Enemy2 for 15 damage.
Enemy2.HP - 15 = 0.
Enemy2 dies.
Would I want to look into classes/objects, structs, or something different?
You dont really need to use inheritance here, but you want to (may be for learning) then
declare a "power" class and then derive the Enemy class and a "GoodGuy" class from it since you need a "GoodGuy" to attack the enemy and enemy as well as the GoodGuy should have both HP and ATK.
For the values, you pass them to the constructor while creating objects.
Something like Enemy enemy1(10, 1); you example of Enemy1