* Returns a specific palette from the resource set. * @param name Name of the palette. * @return Pointer to the palette. */
| 233 | * @return Pointer to the palette. |
| 234 | */ |
| 235 | Palette *ResourcePack::getPalette(const std::string &name) const |
| 236 | { |
| 237 | std::map<std::string, Palette*>::const_iterator i = _palettes.find(name); |
| 238 | if (_palettes.end() != i) return i->second; else return 0; |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * Changes the palette of all the graphics in the resource set. |