Animation::Animation(std::string type) { if (type == "loading") { loadingText(); } else if (type == "envision") { envisionIntro(); } }
Card::Card(std::vector<std::string> inSvCat, std::vector<std::string> inEnCat, std::string inSvH, std::string inSvT, std::string inEnH, std::string inEnT, glm::vec3 inPos, glm::vec2 inVel, std::string textPath, SDL_Renderer* r) : pos(inPos) , velocity(inVel) , lifeTime(clock()) , path(textPath) , isReading(false) , isTrans(false) { infoIndex = infoIndexGenerator++; loadingText(r, inSvH, inSvT, inEnH, inEnT, inSvCat, inEnCat); if (shadow == NULL) { shadow = loadShadow(r); } if (arrow == NULL) { arrow = loadArrow(r); } }