void PokeGraphics::load(int gender, bool shiny) { if (upToDate() && gender==m_storedgender && shiny == m_storedshininess) return; m_storedgender = gender; m_storedshininess = shiny; m_picture = PokemonInfo::Picture(num(), gen(), gender, shiny, false); setUpToDate(true); }
virtual const UnicodeString* snext(UErrorCode& status) { if (upToDate(status) && (_pos < _ids.size())) { return (const UnicodeString*)_ids[_pos++]; } return NULL; }
virtual int32_t count(UErrorCode& status) const { return upToDate(status) ? _ids.size() : 0; }