gecco.server.actsofgod
Class ActsOfGod

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--gecco.server.actsofgod.ActsOfGod
All Implemented Interfaces:
Runnable

public class ActsOfGod
extends Thread

Description of the Class

Author:
Karl Hasselström

Field Summary
private  TreeSet acts
          Description of the Field
private  Act next
          Description of the Field
private  QManager qm
          Description of the Field
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
ActsOfGod(QManager qm)
          Constructor for the ActsOfGod object
 
Method Summary
 void addAct(String eventName, int factor, double x, double y, double secondsFromNow)
          Adds a feature to the Act attribute of the ActsOfGod object
 void run()
          Main processing method for the ActsOfGod object
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

acts

private TreeSet acts
Description of the Field

next

private Act next
Description of the Field

qm

private QManager qm
Description of the Field
Constructor Detail

ActsOfGod

public ActsOfGod(QManager qm)
Constructor for the ActsOfGod object
Parameters:
qm - Description of Parameter
Method Detail

addAct

public void addAct(String eventName,
                   int factor,
                   double x,
                   double y,
                   double secondsFromNow)
Adds a feature to the Act attribute of the ActsOfGod object
Parameters:
eventName - The feature to be added to the Act attribute
factor - The feature to be added to the Act attribute
x - The feature to be added to the Act attribute
y - The feature to be added to the Act attribute
secondsFromNow - The feature to be added to the Act attribute

run

public void run()
Main processing method for the ActsOfGod object
Overrides:
run in class Thread