com.cult3d.world
Class CultEvent

java.lang.Object
  |
  +--com.cult3d.world.CultEvent

public class CultEvent
extends java.lang.Object

This class provides a way to trigger events for Cult3D objects.


Constructor Summary
CultEvent(java.lang.String name)
          Constructs a reference to a Cult3D event.
 
Method Summary
 void activate()
          Activate the event.
 void deactivate()
          Deactivate the event.
 void trigger()
          Trigger the event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CultEvent

public CultEvent(java.lang.String name)
Constructs a reference to a Cult3D event.
Parameters:
name - the name of the event.
Throws:
NameNotFoundException - for invalid name.
Method Detail

trigger

public void trigger()
Trigger the event.

activate

public void activate()
Activate the event. Start listening for trigger calls for this event.

deactivate

public void deactivate()
Deactivate the event. Stop listening for trigger calls for this event.