In file include/csengine/dynlight.h:

## class CLights : public csObject

> A uniform dynamic light

## Inheritance:

### Public Classes

  enum |
  enum |

### Public Fields

  static long | numLights
  static CLights* | theLights [kMaxLights]

### Public Methods

  static void | AddLight (CLights *newLight)
  void | ChangeState (void)
  | CLights ()
  static void | DeleteLight (CLights *newLight)
  static CLights* | FindByName (char *theName)
  void | Idle (void)
  static void | LightIdle (void)
  unsigned long | RawIntensity (void) Return the current intensity of the light
  void | SetFunctionData (long which, long type, unsigned long period, unsigned long deltaP, unsigned long intensity, unsigned long deltaI)
  void | SetInitallyActive (bool active)
  void | SetStateType (bool stateType)
  void | Start (void)
  | ~CLights ()

### Public

  enum |
  enum |

### Private Fields

  unsigned long | curIntensity the current intensity of the light
  unsigned long | deltaIntensity the needed change in intensity.
  lightFunction | functions [6] the lighting state functions
  bool | initallyActive Starts in the on state
  unsigned long | prevIntensity the previous intensity.
  unsigned long | resultIntensity the intensity of the light returned when queried
  long | state which function we are currently in
  bool | stateless Does not stay in the on or off state but always changes
  unsigned long | targetIntensity the new intensity we are trying to get to
  unsigned long | targetPeriod the time we are going to take to get there
  unsigned long | timer the next time we will change functions

### Inherited from csObject:

### Public Methods

CS_ID GetID()
csObject* GetObj(const csIdType& objtype)
virtual csObject* GetObjectParent()
void ObjAdd(csObject* obj)
csObjIterator ObjGet(const csIdType& objtype)
void ObjRelease(csObject* obj)
void ObjRemove(csObject* obj)

### Private Fields

CS_ID csid_value
csObjTree* objtree

### Private Methods

virtual void SetObjectParent(csObject* parent)

## Documentation

> A uniform dynamic light

`enum`

`enum`

`static long numLights`

`static CLights* theLights[kMaxLights]`

`static void AddLight(CLights *newLight)`

`static void DeleteLight(CLights *newLight)`

`static void LightIdle(void)`

`static CLights* FindByName(char *theName)`

`CLights()`

`~CLights()`

`void SetStateType(bool stateType)`

`void SetInitallyActive(bool active)`

`void SetFunctionData(long which, long type, unsigned long period, unsigned long deltaP, unsigned long intensity, unsigned long deltaI)`

`void Start(void)`

`void Idle(void)`

`unsigned long RawIntensity(void)`
  Return the current intensity of the light

`void ChangeState(void)`

`bool stateless`
  Does not stay in the on or off state but always changes

`bool initallyActive`
  Starts in the on state

`lightFunction functions[6]`
  the lighting state functions

`long state`
  which function we are currently in

`unsigned long timer`
  the next time we will change functions

`unsigned long curIntensity`
  the current intensity of the light

`unsigned long prevIntensity`
  the previous intensity.

`unsigned long deltaIntensity`
  the needed change in intensity.

`unsigned long targetIntensity`
  the new intensity we are trying to get to

`unsigned long targetPeriod`
  the time we are going to take to get there

`unsigned long resultIntensity`
  the intensity of the light returned when queried

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de