com.rugl.gl.facets
Class Lighting

java.lang.Object
  extended by com.rugl.gl.facets.Lighting
All Implemented Interfaces:
Facet<Lighting>, java.lang.Comparable<Lighting>

public class Lighting
extends java.lang.Object
implements Facet<Lighting>

Controls lighting state. Not entirely sure this is useful - how often does this stuff get changed object to object?

Author:
ryanm

Nested Class Summary
static class Lighting.Light
          Controls a single light
 
Field Summary
 boolean enabled
           
 Lighting.Light[] light
           
 
Constructor Summary
Lighting()
           
 
Method Summary
 int compareTo(Lighting l)
           
 void set(Lighting l)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(Lighting l)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

enabled

public boolean enabled

light

public final Lighting.Light[] light
Constructor Detail

Lighting

public Lighting()
Method Detail

set

public void set(Lighting l)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<Lighting>

transitionFrom

public void transitionFrom(Lighting l)
Description copied from interface: Facet
Alter the state if necessary

Specified by:
transitionFrom in interface Facet<Lighting>
Parameters:
l - The current state.

compareTo

public int compareTo(Lighting l)
Specified by:
compareTo in interface java.lang.Comparable<Lighting>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object