CleanSweep
Class CleanSweep

mam.agent.pluginAgentRes.Drawer
  |
  +--CleanSweep.CleanSweep

public class CleanSweep
extends Drawer


Inner Class Summary
 public classCleanSweep.JavaFilter
           

Field Summary
 protected ProxyGLPointcamera
           
 intcurrFileCount
           
 (package private) booleandown
           
 GLFileRocksfileRocks
           
 (package private) final static StringFR_HIT
           
 protected GLUTFuncglut
           
 GLHeatSeekGroupheatseekers
           
 GLIPShipipShip
           
 protected longlast
           
 (package private) booleanleft
           
 (package private) float[]LightAmbient
           
 (package private) float[]LightDiffuse
           
 (package private) float[]LightPosition
           
 private Collectionm_listeners
           
 intmaxFileCount
           
 (package private) booleanmenu
           
 private intmousex
           
 private intmousey
           
 private JavaFiltermyFilter
           
 protected longnow
           
 protected intprintFps
           
 private Randomrand
           
 longreload
           
 (package private) booleanright
           
 intscore
           
 longseekerstart
           
 (package private) final static StringSHIP_BONUS
           
 (package private) final static StringSHIP_DEATH
           
 (package private) final static StringSHIP_FIRE
           
 (package private) final static StringSHIP_SEEKER
           
 (package private) final static StringSHIP_THRUST
           
 (package private) intshipBonus
           
 (package private) Stringtext
           
 (package private) longtextTime
           
 File[]totalFiles
           
 inttype
           
 (package private) booleanup
           

Fields inherited from class mam.agent.pluginAgentRes.Drawer
canvas, gl, glu, height, width

Constructor Summary
CleanSweep()
          renderCanvas(int w, int h) Constructor.

Method Summary
 voidaddFiles(String url, long size, int type)
           
 voidcheckKeys()
           
 private voidconcatFileList(File[] listToAdd)
           
 voidconstruct(int w, int h, PluginGLCanvas cnvs)
           
 voiddisplay()
          void display() Draw to the canvas.
 private floatgetRandom(boolean signed, float begin, float end)
           
 private voidgrabFiles(File fileToRecurse)
           
 voidinit()
          void init() Called just AFTER the GL-Context is created.
 voidinitFiles()
           
 voidkeyPressed(KeyEvent e)
          void keyPressed(KeyEvent e) Invoked when a key has been pressed.
 voidkeyReleased(KeyEvent e)
          void keyReleased(KeyEvent e) Invoked when a key has been released.
 voidkeyTyped(KeyEvent e)
          void keyTyped(KeyEvent e) Invoked when a key has been typed.
 protected voidplayTraitedEventSound(String eventSoundName)
           
 voidpreInit()
          void preInit() Called just BEFORE the GL-Context is created.
 voidremoveFile(String url)
           
 voidreshape(int width, int height)
          void reshape(int width, int height) Called after the first paint command.
 private voidsetFiles()
           
 voidshowFPS()
           

Methods inherited from class mam.agent.pluginAgentRes.Drawer
addKnowAgent, addListener, addMonitorAgent, addSearch, fireEvent, monitorUpdate, mooDeath, removeKnowAgent, removeMonitorAgent

Field Detail

camera

protected ProxyGLPoint camera

currFileCount

public int currFileCount

down

boolean down

fileRocks

public GLFileRocks fileRocks

FR_HIT

final static String FR_HIT

glut

protected GLUTFunc glut

heatseekers

public GLHeatSeekGroup heatseekers

ipShip

public GLIPShip ipShip

last

protected long last

left

boolean left

LightAmbient

float[] LightAmbient

LightDiffuse

float[] LightDiffuse

LightPosition

float[] LightPosition

m_listeners

private Collection m_listeners

maxFileCount

public int maxFileCount

menu

boolean menu

mousex

private int mousex

mousey

private int mousey

myFilter

private JavaFilter myFilter

now

protected long now

printFps

protected int printFps

rand

private Random rand

reload

public long reload

right

boolean right

score

public int score

seekerstart

public long seekerstart

SHIP_BONUS

final static String SHIP_BONUS

SHIP_DEATH

final static String SHIP_DEATH

SHIP_FIRE

final static String SHIP_FIRE

SHIP_SEEKER

final static String SHIP_SEEKER

SHIP_THRUST

final static String SHIP_THRUST

shipBonus

int shipBonus

text

String text

textTime

long textTime

totalFiles

public File[] totalFiles

type

public int type

up

boolean up
Constructor Detail

CleanSweep

public CleanSweep()
renderCanvas(int w, int h) Constructor.
Method Detail

addFiles

public void addFiles(String url, long size, int type)

checkKeys

public void checkKeys()

concatFileList

private void concatFileList(File[] listToAdd)

construct

public void construct(int w, int h, PluginGLCanvas cnvs)

display

public void display()
void display() Draw to the canvas.

getRandom

private float getRandom(boolean signed, float begin, float end)

grabFiles

private void grabFiles(File fileToRecurse)

init

public void init()
void init() Called just AFTER the GL-Context is created.

initFiles

public void initFiles()

keyPressed

public void keyPressed(KeyEvent e)
void keyPressed(KeyEvent e) Invoked when a key has been pressed.

keyReleased

public void keyReleased(KeyEvent e)
void keyReleased(KeyEvent e) Invoked when a key has been released.

keyTyped

public void keyTyped(KeyEvent e)
void keyTyped(KeyEvent e) Invoked when a key has been typed. This event occurs when a key press is followed by a key release.

playTraitedEventSound

protected void playTraitedEventSound(String eventSoundName)

preInit

public void preInit()
void preInit() Called just BEFORE the GL-Context is created.

removeFile

public void removeFile(String url)

reshape

public void reshape(int width, int height)
void reshape(int width, int height) Called after the first paint command.

setFiles

private void setFiles()

showFPS

public void showFPS()