コード例 #1
0
ファイル: main.cpp プロジェクト: cad-san/lightseek
static WorldPtr createWorld()
{
    WorldPtr world = boost::make_shared<World>(500,500);

    world->addObstacle( boost::make_shared<SquareObstacle>(  0,  50, 400, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(  0, 150, 200, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(300, 150, 200, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(100, 250, 400, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(  0, 350, 250, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(350, 350,  50, 50) );
    world->addObstacle( boost::make_shared<SquareObstacle>(150, 450, 350, 50) );

    return world;
}