This is done to avoid having a gllobal gameref, and is also important if the class is one of the ones that are actually saved when creating a savegame. I've removed the inheritance where possible myself, since the header-dependency in WME is complicated enough as it is.