client
Class PlaceListener

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--client.PlaceListener

public class PlaceListener
extends java.awt.event.MouseAdapter

This class picks up mouse clicks and propagates them to the RemoteGame.

Version:
3.0 1999-04-02
Author:
Oscar.Nierstrasz@acm.org
See Also:
Place

Constructor Summary
PlaceListener(client.Place place, GameView view)
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          When the mouse is clicked, forward a Move request to the RemoteGame.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceListener

public PlaceListener(client.Place place,
                     GameView view)
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
When the mouse is clicked, forward a Move request to the RemoteGame. We also report when the game is over.
Overrides:
mouseClicked in class java.awt.event.MouseAdapter
See Also:
Move