Class CellDweller

java.lang.Object
  |
  +--CellDweller
Direct Known Subclasses:
Marker, Mine

public abstract class CellDweller
extends Object

This class represents an abstract object that can be associated with a particular Cell.

Author:
Phil Reakes

Field Summary
 Cell parentCell
           
 
Constructor Summary
CellDweller(Cell cell)
          Constructor for CellDwellers.
 
Method Summary
 Cell getCell()
          Get a reference to the Cell that this CellDweller is on.
 void setCell(Cell cell)
          Set the Cell that this CellDweller is on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentCell

public Cell parentCell
Constructor Detail

CellDweller

public CellDweller(Cell cell)
Constructor for CellDwellers. Places the CellDweller on a specified cell.

Parameters:
cell - the cell on which this CellDweller is to be placed.
Method Detail

getCell

public Cell getCell()
Get a reference to the Cell that this CellDweller is on.

Returns:
the Cell containing this CellDweller

setCell

public void setCell(Cell cell)
Set the Cell that this CellDweller is on.

Parameters:
cell - the Cell containing this CellDweller


Generated by BlueJ