return santa;
}
private void addHat(final Player player) {
// fetch old outfit as we want to know the current hair
final Outfit oldoutfit = player.getOutfit();
// all santa hat sprites are at 50 + current hair
if (oldoutfit.getHair() < 50) {
final int hatnumber = oldoutfit.getHair() + 50;
// the new outfit only changes the hair, rest is null
final Outfit newOutfit = new Outfit(null, hatnumber, null, null, null);
//put it on, and store old outfit.
player.setOutfit(newOutfit.putOver(oldoutfit), true);
}
}