Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Scene Class Reference

#include <Scene.h>

List of all members.

Public Member Functions

 Scene ()
virtual ~Scene ()
void AddBackground (Graphic *g)
void DelBackground (Graphic *g)
void AddForeground (Graphic *g)
void DelForeground (Graphic *g)
void AddGraphic (Graphic *g)
void DelGraphic (Graphic *g)
void AddSprite (Graphic *g)
void DelSprite (Graphic *g)
void AddLight (Light *l)
void DelLight (Light *l)
List< Graphic > & Background ()
List< Graphic > & Foreground ()
List< Graphic > & Graphics ()
List< Graphic > & Sprites ()
List< Light > & Lights ()
Color Ambient ()
void SetAmbient (Color a)
virtual void Collect ()
virtual bool IsLightObscured (const Point &obj_pos, const Point &light_pos, double obj_radius, Point *imp_point=0) const

Static Public Member Functions

static const char * TYPENAME ()

Protected Attributes

List< Graphicbackground
List< Graphicforeground
List< Graphicgraphics
List< Graphicsprites
List< Lightlights
Color ambient

Detailed Description

Definition at line 30 of file Scene.h.


Constructor & Destructor Documentation

Scene::Scene ( )

Definition at line 24 of file Scene.cpp.

Scene::~Scene ( )
virtual

Definition at line 27 of file Scene.cpp.


Member Function Documentation

void Scene::AddBackground ( Graphic g)

Definition at line 40 of file Scene.cpp.

void Scene::AddForeground ( Graphic g)

Definition at line 62 of file Scene.cpp.

void Scene::AddGraphic ( Graphic g)

Definition at line 84 of file Scene.cpp.

void Scene::AddLight ( Light l)

Definition at line 132 of file Scene.cpp.

void Scene::AddSprite ( Graphic g)

Definition at line 110 of file Scene.cpp.

Color Scene::Ambient ( )
inline

Definition at line 55 of file Scene.h.

List<Graphic>& Scene::Background ( )
inline

Definition at line 50 of file Scene.h.

void Scene::Collect ( )
virtual

Definition at line 153 of file Scene.cpp.

void Scene::DelBackground ( Graphic g)

Definition at line 51 of file Scene.cpp.

void Scene::DelForeground ( Graphic g)

Definition at line 73 of file Scene.cpp.

void Scene::DelGraphic ( Graphic g)

Definition at line 95 of file Scene.cpp.

void Scene::DelLight ( Light l)

Definition at line 142 of file Scene.cpp.

void Scene::DelSprite ( Graphic g)

Definition at line 121 of file Scene.cpp.

List<Graphic>& Scene::Foreground ( )
inline

Definition at line 51 of file Scene.h.

List<Graphic>& Scene::Graphics ( )
inline

Definition at line 52 of file Scene.h.

bool Scene::IsLightObscured ( const Point obj_pos,
const Point light_pos,
double  obj_radius,
Point imp_point = 0 
) const
virtual

Definition at line 187 of file Scene.cpp.

List<Light>& Scene::Lights ( )
inline

Definition at line 54 of file Scene.h.

void Scene::SetAmbient ( Color  a)
inline

Definition at line 56 of file Scene.h.

List<Graphic>& Scene::Sprites ( )
inline

Definition at line 53 of file Scene.h.

static const char* Scene::TYPENAME ( )
inlinestatic

Definition at line 33 of file Scene.h.


Member Data Documentation

Color Scene::ambient
protected

Definition at line 71 of file Scene.h.

List<Graphic> Scene::background
protected

Definition at line 66 of file Scene.h.

List<Graphic> Scene::foreground
protected

Definition at line 67 of file Scene.h.

List<Graphic> Scene::graphics
protected

Definition at line 68 of file Scene.h.

List<Light> Scene::lights
protected

Definition at line 70 of file Scene.h.

List<Graphic> Scene::sprites
protected

Definition at line 69 of file Scene.h.


The documentation for this class was generated from the following files: