ygLight derived from ygNode

Description: creates a light source with position, ambient, diffuse, and specular settings

notes:
Category: Attributes
Author: Dave Pape
11/01/01 Geoffrey Baum - added ambient and specular messages
Revision: 06/28/05 Alex Hill - fix position message syntax

    Messages
on set the light to on
off [bool] set the light to off
toggle toggle the light state
position (three floats | four floats) set the position from which the light comes
ambient three floats set the ambient color of the light
diffuse three floats set the diffuse color of the light
specular three floats set the specular color of the light
    Events
LightOn
LightOff
    Comments

constructor ygLight

1 create pfLightSource

destructor ~ygLight

method reset

1 if net master
1.1 set position to 0,0,1,0
1.2 set ambient to 0,0,0
1.3 set diffuse to 1,1,1
1.4 set specular to 1,1,1
1.5 set to on

method app

method message

1 set the light to on
2 set the light to off
3 toggle the light state
4 set the position from which the light comes
5 set the ambient color of the light
6 set the diffuse color of the light
7 set the specular color of the light

method isOn

method on

method off

method toggle

method setPosition

method setAmbient

method setDiffuse

method setSpecular