BattleZone
Class GLHeatSeekGroup


public class GLHeatSeekGroup


Field Summary
 private BattleZoneBZ
           
 private PluginGLCanvascanvas
           
 private GLFuncgl
           
 protected Collectionheatseekers
           
 private Randomrand
           
 Stringrequestor
           
 final static StringSEEKER_DEATH
           

Constructor Summary
GLHeatSeekGroup(PluginGLCanvas Plugincanvas, BattleZone newBZ)
           

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

BZ

private BattleZone BZ

canvas

private PluginGLCanvas canvas

gl

private GLFunc gl

heatseekers

protected Collection heatseekers

rand

private Random rand

requestor

public String requestor

SEEKER_DEATH

public final static String SEEKER_DEATH
Constructor Detail

GLHeatSeekGroup

public GLHeatSeekGroup(PluginGLCanvas Plugincanvas, BattleZone newBZ)
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)