FULLPIPE: Scene drawing stubs

This commit is contained in:
Eugene Sandulenko 2013-07-12 22:35:51 +03:00
parent 1aa11bd86f
commit defc53d4d1
5 changed files with 44 additions and 3 deletions

View File

@ -234,4 +234,32 @@ void Scene::init() {
warning("STUB: Scene::init()");
}
void Scene::draw(int par) {
updateScrolling(par);
drawContent(60000, 0, true);
//_staticANIObjectList2.sortByPriority();
for (CPtrList::iterator s = _staticANIObjectList2.begin(); s != _staticANIObjectList2.end(); ++s) {
((StaticANIObject *)s)->draw2();
}
int priority = -1;
for (CPtrList::iterator s = _staticANIObjectList2.begin(); s != _staticANIObjectList2.end(); ++s) {
drawContent(((StaticANIObject *)s)->_priority, priority, false);
((StaticANIObject *)s)->draw();
priority = ((StaticANIObject *)s)->_priority;
}
drawContent(-1, priority, false);
}
void Scene::updateScrolling(int par) {
}
void Scene::drawContent(int minPri, int maxPri, bool drawBG) {
}
} // End of namespace Fullpipe

View File

@ -43,6 +43,9 @@ class Scene : public Background {
virtual bool load(MfcArchive &file);
void initStaticANIObjects();
void init();
void draw(int par);
void drawContent(int minPri, int maxPri, bool drawBG);
void updateScrolling(int par);
};
class SceneTag : public CObject {

View File

@ -101,10 +101,10 @@ bool FullpipeEngine::loadGam(const char *fname) {
_inventory->rebuildItemRects();
for (CPtrList::iterator s = _inventory->getScene()->_picObjList.begin(); s != _inventory->getScene()->_picObjList.end(); ++s) {
}
warning("STUB: loadGam()");
//for (CPtrList::iterator s = _inventory->getScene()->_picObjList.begin(); s != _inventory->getScene()->_picObjList.end(); ++s) {
//}
} else
return false;

View File

@ -124,6 +124,14 @@ Statics *StaticANIObject::addStatics(Statics *ani) {
return 0;
}
void StaticANIObject::draw() {
warning("STUB: StaticANIObject::draw()");
}
void StaticANIObject::draw2() {
warning("STUB: StaticANIObject::draw2()");
}
Statics::Statics() {
_staticsId = 0;
_picture = 0;

View File

@ -145,6 +145,8 @@ class StaticANIObject : public GameObject {
Movement *getMovementById(int id);
Statics *addStatics(Statics *ani);
void draw();
void draw2();
};
} // End of namespace Fullpipe