Game::EPEC has a lot of members and datafields (especially!) in protected level visibility. A bunch of these should not be visible from a derived class, and even more of them should not be editable from a derived class!
Make the visibility to private for the fields that need not be visible from a derived class, and use const getters for view access to read-only datafields.
Game::EPEC
has a lot of members and datafields (especially!) inprotected
level visibility. A bunch of these should not be visible from a derived class, and even more of them should not be editable from a derived class!Make the visibility to
private
for the fields that need not be visible from a derived class, and useconst
getters for view access to read-only datafields.