This commit is contained in:
Herwig Birke
2018-05-23 12:47:02 +02:00
parent 94a2acdc5f
commit 3768e4b657
2 changed files with 60 additions and 2 deletions
+40
View File
@@ -296,6 +296,46 @@ QList<cScene*> cSceneList::find(cCharacter* lpCharacter)
return(sceneList);
}
QList<cScene*> cSceneList::find(cPlace* lpPlace)
{
QList<cScene*> sceneList;
for(int x = 0;x < count();x++)
{
QList<cPlaceDescription*> list = at(x)->placeList();
for(int y = 0;y < list.count();y++)
{
if(list.at(y)->place() == lpPlace)
{
sceneList.append(at(x));
break;
}
}
}
return(sceneList);
}
QList<cScene*> cSceneList::find(cObject* lpObject)
{
QList<cScene*> sceneList;
for(int x = 0;x < count();x++)
{
QList<cObjectDescription*> list = at(x)->objectList();
for(int y = 0;y < list.count();y++)
{
if(list.at(y)->object() == lpObject)
{
sceneList.append(at(x));
break;
}
}
}
return(sceneList);
}
qint32 cSceneList::nextSort(cChapter* lpChapter)
{
qint32 iSort = -1;
+20 -2
View File
@@ -406,9 +406,27 @@ public:
\fn find
\param lpCharacter
\return QList<cCharacter *>
\return QList<cScene *>
*/
QList<cScene *> find(cCharacter* lpCharacter);
QList<cScene *> find(cCharacter* lpCharacter);
/*!
\brief
\fn find
\param lpPlace
\return QList<cScene *>
*/
QList<cScene *> find(cPlace* lpPlace);
/*!
\brief
\fn find
\param lpObject
\return QList<cScene *>
*/
QList<cScene *> find(cObject* lpObject);
/*!
\brief