Guillaume Chatelet:

delete mondeDeMerde;
delete [] stress;

const ChristmasKit &kit( ChristmasFactory::getChristmasKit() );
House &house( kit.getHouse() );

// Family stuffs
vector &family( kit.getFamily() );
for_each( family.begin(), family.end(), boost::bind( &People::MakeHappy, _1 ) ); // Boost RuLeZ : )
house.add( family );

//
And God said, "Let there be light," and there was light :O)
house.getFireplace().LightUp();
vector &candles( kit.getCandles() );
for_each( candle.begin(), candles.end(), boost::bind( Candle::LightUp, _1 ) );
house.add( candles );
// FIXME : use shadow maps instead of raytraced to speed things up ?

house.getCat().doRonron(); // Hardcore !! (Z)

auto_ptr pTree ( new TreeDecorator( house.getChristmasTree() ) ); // GoF powa
for_each( family.begin(), family.end(), AddPresentToTree( pTree.get() ) );

kit.StartParty();
house.add( MAGIC ); // See #define for magical constants
Time.stop(); // enjoy...

Aucun commentaire: