Asteroids
Class GLHeatSeekGroup


public class GLHeatSeekGroup


Field Summary
 private PluginGLCanvascanvas
           
 private GLFuncgl
           
 Collectionheatseekers
           
 private Randomrand
           
 (package private) final static StringSEEKER_DEATH
           

Constructor Summary
GLHeatSeekGroup(PluginGLCanvas Plugincanvas)
           

Method Summary
 voidaddSeeker(String txt)
           
 StringdetectCollision(ProxyGLPoint bullet, double dx, double dy)
           
 voiddraw()
           
 private floatgetRandom(boolean signed, float begin, float end)
           
 protected voidplayTraitedEventSound(String eventSoundName)
           
 voidsetHeat(float x, float y)
           

Field Detail

canvas

private PluginGLCanvas canvas

gl

private GLFunc gl

heatseekers

public Collection heatseekers

rand

private Random rand

SEEKER_DEATH

final static String SEEKER_DEATH
Constructor Detail

GLHeatSeekGroup

public GLHeatSeekGroup(PluginGLCanvas Plugincanvas)
Method Detail

addSeeker

public void addSeeker(String txt)

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)

setHeat

public void setHeat(float x, float y)