ItemDoor::ItemDoor(LvlScene *parentScene, QGraphicsItem *parent) : LvlBaseItem(parentScene, parent) { construct(); if(!parentScene) return; setScenePoint(parentScene); m_scene->addItem(this); setLocked(m_scene->m_lockDoor); }
ItemPath::ItemPath(WldScene *parentScene, QGraphicsItem *parent) : WldBaseItem(parentScene, parent) { construct(); if(!parentScene) return; setScenePoint(parentScene); m_scene->addItem(this); setZValue(m_scene->Z_Paths); }
ItemPhysEnv::ItemPhysEnv(LvlScene *parentScene, QGraphicsItem *parent) : LvlBaseItem(parentScene, parent) { construct(); if(!parentScene) return; setScenePoint(parentScene); m_scene->addItem(this); m_gridSize = m_scene->m_configs->defaultGrid.general / 2; setZValue(m_scene->Z_sys_PhysEnv); setLocked(m_scene->m_lockPhysenv); }
ItemMusic::ItemMusic(WldScene *parentScene, QGraphicsItem *parent) : WldBaseItem(parentScene, parent) { construct(); if(!parentScene) return; setScenePoint(parentScene); m_scene->addItem(this); this->setZValue(m_scene->Z_MusicBoxes); m_gridSize = m_scene->m_configs->defaultGrid.general; m_imageSize = QRectF(0, 0, m_gridSize, m_gridSize); setData(ITEM_WIDTH, QString::number( m_gridSize ) ); //width setData(ITEM_HEIGHT, QString::number( m_gridSize ) ); //height }