mam.agent.pluginAgentRes
Class Drawer

Direct Known Subclasses:
Asteroids, BattleZone, CleanSweep

public class Drawer


Field Summary
 PluginGLCanvascanvas
           
 GLFuncgl
           
 GLUFuncglu
           
 intheight
           
 private Collectionm_listeners
           
 intwidth
           

Constructor Summary
Drawer()
           

Method Summary
 voidaddKnowAgent(int totalAgents, MamId mamid, String url)
           
 voidaddListener(PluginGLListener listener)
           
 voidaddMonitorAgent(String url)
           
 voidaddSearch(String requestor)
           
 voidconstruct(int w, int h, PluginGLCanvas cnvs)
           
 voiddisplay()
           
 voidfireEvent(PluginGLEvent event)
           
 voidinit()
           
 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.
 voidmonitorUpdate(String updatedurl)
           
 voidmooDeath()
           
 voidremoveKnowAgent(MamId mamid)
           
 voidremoveMonitorAgent(String url)
           
 voidreshape(int width, int height)
           

Field Detail

canvas

public PluginGLCanvas canvas

gl

public GLFunc gl

glu

public GLUFunc glu

height

public int height

m_listeners

private Collection m_listeners

width

public int width
Constructor Detail

Drawer

public Drawer()
Method Detail

addKnowAgent

public void addKnowAgent(int totalAgents, MamId mamid, String url)

addListener

public void addListener(PluginGLListener listener)

addMonitorAgent

public void addMonitorAgent(String url)

addSearch

public void addSearch(String requestor)

construct

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

display

public void display()

fireEvent

public void fireEvent(PluginGLEvent event)

init

public void init()

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.

monitorUpdate

public void monitorUpdate(String updatedurl)

mooDeath

public void mooDeath()

removeKnowAgent

public void removeKnowAgent(MamId mamid)

removeMonitorAgent

public void removeMonitorAgent(String url)

reshape

public void reshape(int width, int height)