Skip to content

Commit

Permalink
FULLPIPE: Scene drawing stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 6, 2013
1 parent 1aa11bd commit defc53d
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
28 changes: 28 additions & 0 deletions engines/fullpipe/scene.cpp
Expand Up @@ -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
3 changes: 3 additions & 0 deletions engines/fullpipe/scene.h
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions engines/fullpipe/stateloader.cpp
Expand Up @@ -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;

Expand Down
8 changes: 8 additions & 0 deletions engines/fullpipe/statics.cpp
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions engines/fullpipe/statics.h
Expand Up @@ -145,6 +145,8 @@ class StaticANIObject : public GameObject {
Movement *getMovementById(int id);

Statics *addStatics(Statics *ani);
void draw();
void draw2();
};

} // End of namespace Fullpipe
Expand Down

0 comments on commit defc53d

Please sign in to comment.