Asteroids
Class GLMonitorAgents


public class GLMonitorAgents


Field Summary
 private PluginGLCanvascanvas
           
 floatcolor
           
 ProxyGLPointcoordinate
           
 private ProxyGLPoint[]coords
           
 ProxyGLCubecube
           
 booleandie
           
 floatdx
           
 floatdy
           
 GLExplosionsexplosions
           
 private GLFuncgl
           
 booleanhit
           
 inthits
           
 Collectioninfos
           
 protected floatinplaceRot
           
 protected floatinplaceRotSpeed
           
 (package private) final static StringMONITOR_DEATH
           
 (package private) final static StringMONITOR_HIT
           
 floatog
           
 private Randomrand
           
 booleanreallydead
           
 protected floatrot
           
 protected floatrotSpeed
           
 protected longstarttime
           
 private inttotal
           

Constructor Summary
GLMonitorAgents(PluginGLCanvas Plugincanvas, Asteroids prnt)
           

Method Summary
 voidadvance()
           
 StringdetectCollision(ProxyGLPoint bullet, double dx, double dy)
           
 voiddraw()
           
 private floatgetRandom(boolean signed, float begin, float end)
           
 protected voidplayTraitedEventSound(String eventSoundName)
           
 voidrandomizeLocale()
           
 voidremoveAgents(String url)
           
 voidsetExplode(int num)
           
 voidsetRotSpeed(float setRot)
           
 voidsetTotalAgents(String url)
           

Field Detail

canvas

private PluginGLCanvas canvas

color

public float color

coordinate

public ProxyGLPoint coordinate

coords

private ProxyGLPoint[] coords

cube

public ProxyGLCube cube

die

public boolean die

dx

public float dx

dy

public float dy

explosions

public GLExplosions explosions

gl

private GLFunc gl

hit

public boolean hit

hits

public int hits

infos

public Collection infos

inplaceRot

protected float inplaceRot

inplaceRotSpeed

protected float inplaceRotSpeed

MONITOR_DEATH

final static String MONITOR_DEATH

MONITOR_HIT

final static String MONITOR_HIT

og

public float og

rand

private Random rand

reallydead

public boolean reallydead

rot

protected float rot

rotSpeed

protected float rotSpeed

starttime

protected long starttime

total

private int total
Constructor Detail

GLMonitorAgents

public GLMonitorAgents(PluginGLCanvas Plugincanvas, Asteroids prnt)
Method Detail

advance

public void advance()

detectCollision

public String detectCollision(ProxyGLPoint bullet, double dx, double dy)

draw

public void draw()

getRandom

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

playTraitedEventSound

protected void playTraitedEventSound(String eventSoundName)

randomizeLocale

public void randomizeLocale()

removeAgents

public void removeAgents(String url)

setExplode

public void setExplode(int num)

setRotSpeed

public void setRotSpeed(float setRot)

setTotalAgents

public void setTotalAgents(String url)