bool MultiResource::addResource(GenericResource& res) { GenericResource* newres = (GenericResource*) res.clone(); resources.push_back(newres); return true; }
bool Computer::addPeripheral(GenericResource& res) { GenericResource* newres = (GenericResource*) res.clone(); peripheralResources.push_back(newres); return true; }