Asteroids
Class GLKnowAgents


public class GLKnowAgents


Field Summary
 private booleanalreadydraw
           
 (package private) final static StringBIG_DEATH
           
 private PluginGLCanvascanvas
           
 ProxyGLCubecube
           
 private intdrawCount
           
 GLExplosionsexplosions
           
 private GLFuncgl
           
 (package private) final static StringKA_EXPLODE
           
 private booleankillall
           
 CollectionknowInfo
           
 private longleveluptimer
           
 private intmaxKAs
           
 intmonitorCount
           
 private Randomrand
           
 protected floatrot
           
 protected floatrotSpeed
           
 private booleansuperdeath
           
 private inttotal
           
 (package private) final static StringURL_LOAD
           

Constructor Summary
GLKnowAgents(PluginGLCanvas Plugincanvas, Asteroids prnt)
          Constructor for the GLKnowAgents object

Method Summary
 private voidcheckDraw()
          Description of the Method
 StringdetectCollision(ProxyGLPoint bullet, double dx, double dy, boolean Urlview)
          Description of the Method
 voiddraw()
          Description of the Method
 intgetCurrDrawn()
          Gets the CurrDrawn attribute of the GLKnowAgents object
 private floatgetRandom(boolean signed, float begin, float end)
          Gets the Random attribute of the GLKnowAgents object
 protected voidplayTraitedEventSound(String eventSoundName)
          Description of the Method
 voidremoveAgent(MamId mamid)
          Description of the Method
 voidremoveAgent(String url)
          Description of the Method
 voidremoveAll()
          Description of the Method
 private booleansetDraw()
          Sets the Draw attribute of the GLKnowAgents object
 voidsetRotSpeed(float setRot)
          Sets the RotSpeed attribute of the GLKnowAgents object
 voidsetTotalAgents(int num, MamId id, String nurl)
          Sets the TotalAgents attribute of the GLKnowAgents object
 voidsetTotalAgents(String nurl, float x, float y)
          Sets the TotalAgents attribute of the GLKnowAgents object

Field Detail

alreadydraw

private boolean alreadydraw

BIG_DEATH

final static String BIG_DEATH

canvas

private PluginGLCanvas canvas

cube

public ProxyGLCube cube

drawCount

private int drawCount

explosions

public GLExplosions explosions

gl

private GLFunc gl

KA_EXPLODE

final static String KA_EXPLODE

killall

private boolean killall

knowInfo

public Collection knowInfo

leveluptimer

private long leveluptimer

maxKAs

private int maxKAs

monitorCount

public int monitorCount

rand

private Random rand

rot

protected float rot

rotSpeed

protected float rotSpeed

superdeath

private boolean superdeath

total

private int total

URL_LOAD

final static String URL_LOAD
Constructor Detail

GLKnowAgents

public GLKnowAgents(PluginGLCanvas Plugincanvas, Asteroids prnt)
Constructor for the GLKnowAgents object
Parameters:
Proxycanvas - Description of Parameter
Since:
Method Detail

checkDraw

private void checkDraw()
Description of the Method
Since:

detectCollision

public String detectCollision(ProxyGLPoint bullet, double dx, double dy, boolean Urlview)
Description of the Method
Parameters:
bullet - Description of Parameter
dx - Description of Parameter
dy - Description of Parameter
Urlview - Description of Parameter
Returns: Description of the Returned Value
Since:

draw

public void draw()
Description of the Method
Since:

getCurrDrawn

public int getCurrDrawn()
Gets the CurrDrawn attribute of the GLKnowAgents object
Returns: The CurrDrawn value
Since:

getRandom

private float getRandom(boolean signed, float begin, float end)
Gets the Random attribute of the GLKnowAgents object
Parameters:
signed - Description of Parameter
begin - Description of Parameter
end - Description of Parameter
Returns: The Random value
Since:

playTraitedEventSound

protected void playTraitedEventSound(String eventSoundName)
Description of the Method
Parameters:
eventSoundName - Description of Parameter
Since:

removeAgent

public void removeAgent(MamId mamid)
Description of the Method
Parameters:
mamid - Description of Parameter
Since:

removeAgent

public void removeAgent(String url)
Description of the Method
Parameters:
url - Description of Parameter
Since:

removeAll

public void removeAll()
Description of the Method
Since:

setDraw

private boolean setDraw()
Sets the Draw attribute of the GLKnowAgents object
Returns: Description of the Returned Value
Since:

setRotSpeed

public void setRotSpeed(float setRot)
Sets the RotSpeed attribute of the GLKnowAgents object
Parameters:
setRot - The new RotSpeed value
Since:

setTotalAgents

public void setTotalAgents(int num, MamId id, String nurl)
Sets the TotalAgents attribute of the GLKnowAgents object
Parameters:
num - The new TotalAgents value
id - The new TotalAgents value
nurl - The new TotalAgents value
Since:

setTotalAgents

public void setTotalAgents(String nurl, float x, float y)
Sets the TotalAgents attribute of the GLKnowAgents object
Parameters:
nurl - The new TotalAgents value
x - The new TotalAgents value
y - The new TotalAgents value
Since: