Skip to content

Commit

Permalink
Refactor|GameMap: Moved more logics for map loading into GameMap
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 4, 2013
1 parent 48cd946 commit e82a0ff
Show file tree
Hide file tree
Showing 6 changed files with 614 additions and 615 deletions.
2 changes: 2 additions & 0 deletions doomsday/client/include/map/gamemap.h
Expand Up @@ -595,6 +595,8 @@ class GameMap

public: /// @todo Make private:

void finishMapElements();

/**
* @pre Axis-aligned bounding boxes of all Sectors must be initialized.
*/
Expand Down
4 changes: 4 additions & 0 deletions doomsday/client/include/map/polyobj.h
Expand Up @@ -36,6 +36,10 @@ typedef struct polyobj_s {
std::memset(this, 0, sizeof(polyobj_s));
}

// Does nothing about the user data section.
~polyobj_s()
{}

/**
* Translate the origin of the polyobj in the map coordinate space.
*
Expand Down
6 changes: 6 additions & 0 deletions doomsday/client/include/map/sector.h
Expand Up @@ -315,6 +315,12 @@ class Sector : public de::MapElement
*/
void updateRoughArea();

/**
* @param base Mobj base to link in @a sector. Caller should ensure that the
* same object is not linked multiple times into the chain.
*/
void linkSoundEmitter(ddmobj_base_t &newEmitter);

/**
* Update the origin of the sector according to the point defined by the
* center of the sector's axis-aligned bounding box (which must be
Expand Down

0 comments on commit e82a0ff

Please sign in to comment.