tictactoe
Class PlaceListener

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

public class PlaceListener
extends java.awt.event.MouseAdapter

This class picks up mouse clicks and propogates them to a Player of the BoardGame.

To do: Implement better feedback.

Version:
2.0 1999-03-26
Author:
Oscar.Nierstrasz@acm.org
See Also:
Place

Constructor Summary
PlaceListener(tictactoe.Place place, GameApplet applet)
           
 
Method Summary
 void mouseClicked(java.awt.event.MouseEvent e)
          When the mouse is clicked, we ask the current player to make the corresponding move.
 
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(tictactoe.Place place,
                     GameApplet applet)
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
When the mouse is clicked, we ask the current player to make the corresponding move. Report when the game is over.
Overrides:
mouseClicked in class java.awt.event.MouseAdapter