Wartbed:Manual/Theatre of War

From Dark Omen Wiki

(Difference between revisions)
Jump to: navigation, search

Mikademus (Talk | contribs)
(Created page with '{{stub}} <div style="margin:1em; border: 1px solid gray; background:lightgray;"><div style="background:gray;">'''This article discusses'''</div> <div style="padding:1em; "> * ''...')
Newer edit →

Revision as of 22:45, 28 January 2010


This article discusses
  • Theatre: The class encapsulating the entire set of constituent elements from which the game "map" or "level" is built and construed.
  • Stage: A class in Theatre containing all Terrain Props related to terrain and physical objects and their effects.
  • Lighting: A class in Theatre containing all non-effect lights affecting the Stage
  • Backdrop: A class in Theatre defining the backdrop (sky, clouds, etc) to the Stage.
  • Weather: A class in Theatre defining the weather conditions of the Scene

Theatre, Scene, Lighting and Backdrop

The Theatre class represents the world by containing all Props constituting it. It is used to generate Views that will represent it visually and auditory. Unit movement and pathfinding does not primarily use the Theatre contents, but instead calls on a node-space representation of the map. This part of WARTBED intentionally uses the theatre metaphor because of its good fit and relevant separation of responsibilities.

Stub:

class Stage;
class Lighting;
class Backdrop;
class Weather;
class Terrain;
 
class Theatre
{
    Stage     stage;
    Lighting  lighting;
    Backdrop  backdrop;
    Weather   weather;
    ...
};
 
class Terrain : public Prop
{
    ...
};
 
class Stage
{
    typedef std::map<STRING, TERRAIN_PTR> TERRAIN;
    TERRAIN terrain;
    ...
};

Weather

Placeholder

Personal tools
communication