void Actor::setColormap(const char *map) { if (!_costumeStack.empty()) { Costume *cost = _costumeStack.back(); cost->setColormap(map); } else { warning("Actor::setColormap: No costumes"); } }
void Actor::pushCostume(const char *n) { Costume *newCost = g_resourceloader->loadCostume(n, getCurrentCostume()); newCost->setColormap(NULL); _costumeStack.push_back(newCost); }