p2.tictactoe.gui
Class PlaceListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by p2.tictactoe.gui.PlaceListener
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener

public class PlaceListener
extends java.awt.event.MouseAdapter

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

Version:
$Id: PlaceListener.java,v 1.2 2005/02/25 00:19:19 oscar Exp $
Author:
$Author: oscar $

Constructor Summary
PlaceListener(Place place, GameGUI gui)
           
 
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(Place place,
                     GameGUI gui)
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.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter