]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/robomon/PlaygroundScene.cpp
robomon: No grid needed on playground
[eurobot/public.git] / src / robomon / PlaygroundScene.cpp
index 5603a5f8134b12d66abe8afd890458fcc5a2b73c..fba8e32dacae7d584e8bbb78f6323bb1c2f2e1da 100644 (file)
@@ -63,18 +63,6 @@ PlaygroundScene::PlaygroundScene(QObject *parent)
                                );
        playgroundRect->setZValue(0);
 
-        /* horizontal grid */
-        for (int i = 0; i < (PLAYGROUND_HEIGHT / GRID_HEIGHT); i++) {
-                tempLine = addLine(QLine( 0, PLAYGROUND_HEIGHT - i*GRID_HEIGHT, PLAYGROUND_WIDTH, PLAYGROUND_HEIGHT - i*GRID_HEIGHT), QPen());
-                tempLine->setZValue(1);
-        }
-
-        /* vertical grid */
-        for (int i = 0; i < (PLAYGROUND_WIDTH / GRID_WIDTH); i++) {
-                tempLine = addLine(QLine(PLAYGROUND_WIDTH - i*GRID_WIDTH, PLAYGROUND_HEIGHT, PLAYGROUND_WIDTH - i*GRID_WIDTH, 0), QPen());
-                tempLine->setZValue(1);
-        }
-
        /* opponent obstacle - placeable by mouse clic */
        obstacle = new QGraphicsEllipseItem(0, 0, SIM_OBST_SIZE_M*1000, SIM_OBST_SIZE_M*1000);
        obstacle->translate(-SIM_OBST_SIZE_M*1000/2,-SIM_OBST_SIZE_M*1000/2);