Skip to content

Commit

Permalink
Documentation|Sector: Minor apidoc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jun 13, 2013
1 parent 42ad374 commit 185e087
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions doomsday/client/include/world/sector.h
Expand Up @@ -29,16 +29,20 @@
#include <de/Observers>
#include <de/Vector>

#include "dd_share.h" // AudioEnvironmentFactors

#include "MapElement"
#include "Line"
#include "Plane" /// @todo remove me
#include "Plane"

#ifdef __CLIENT__
# include "render/lightgrid.h"
#endif

class BspLeaf;
class Surface;
struct mobj_s;
struct ddmobj_base_t;

namespace de {
class Map;
Expand Down Expand Up @@ -66,21 +70,33 @@ class Sector : public de::MapElement
/// Required/referenced plane is missing. @ingroup errors
DENG2_ERROR(MissingPlaneError);

/*
* Observers to be notified whenever a light level change occurs.
*/
DENG2_DEFINE_AUDIENCE(LightLevelChange,
void sectorLightLevelChanged(Sector &sector, float oldLightLevel))

/*
* Observers to be notified whenever a light color change occurs.
*/
DENG2_DEFINE_AUDIENCE(LightColorChange,
void sectorLightColorChanged(Sector &sector, de::Vector3f const &oldLightColor,
int changedComponents /*bit-field (0x1=Red, 0x2=Green, 0x4=Blue)*/))

/*
* Property value defaults:
*/
static float const DEFAULT_LIGHT_LEVEL; ///< 1.f
static de::Vector3f const DEFAULT_LIGHT_COLOR; ///< red=1.f green=1.f, blue=1.f

/*
* Linked-element lists:
*/
typedef QList<BspLeaf *> BspLeafs;
typedef QList<Plane *> Planes;
typedef QList<Line::Side *> Sides;

/// Plane identifiers:
// Plane identifiers:
enum { Floor, Ceiling };

#ifdef __CLIENT__
Expand Down

0 comments on commit 185e087

Please sign in to comment.