Lukas Jiriste [Thu, 24 Oct 2024 08:20:25 +0000 (10:20 +0200)]
Make remove "ClapTrap" from inherited functions
So that the child classes don't have to overwrite the repair and
takeDamage methods while not confusing user by calling Scav- and
FragTraps ClapTraps, the "ClapTrap" is removed from the functions.
Lukas Jiriste [Thu, 24 Oct 2024 08:03:17 +0000 (10:03 +0200)]
Move some functions of OCF to private
I was not sure whether the Orthodox Canonical Form dictates that the 4
functions be defined so I defined to be sure even though I did not think
it makes sense for Claptrap to have a copy constructor and assignment or
even a default constructor.
I learned that the methods only need to be present (in OCF), but need
not be usable. In C++11 I would delete the methods, in C++98 I have to
place the declaration inside private.