void Player::initializeSprites(Graphics& graphics) { for (auto mt = MotionType::FIRST; mt != MotionType::LAST; ++mt) { for (auto hf = HorizontalFacing::FIRST; hf != HorizontalFacing::LAST; ++hf) { for (auto vf = VerticalFacing::FIRST; vf != VerticalFacing::LAST; ++vf) { for (auto st = StrideType::FIRST; st != StrideType::LAST; ++st) { auto sprite = SpriteState(mt, hf, vf, st); initializeSprite(graphics, sprite); } } } } }
ENUM_FOREACH(h_facing, HORIZONTAL_FACING) { initializeSprite(graphics, boost::make_tuple(HorizontalFacing(h_facing))); }