edu.columbia.cs.coms4701.agent.environments.pente
Class Stone

java.lang.Object
  extended by edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
      extended by edu.columbia.cs.coms4701.agent.environments.grid.SimpleGridObject
          extended by edu.columbia.cs.coms4701.agent.environments.pente.Stone
All Implemented Interfaces:
EnvironmentObject, GridObject, GridObstacle

public class Stone
extends SimpleGridObject
implements GridObstacle

A playing stone.

Version:
0.1

User: aaron Date: Sep 25, 2006 Time: 12:17:26 AM

Author:
aaron@cs

Nested Class Summary
static class Stone.StoneColor
           
 
Field Summary
 
Fields inherited from class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
changeSupport
 
Constructor Summary
Stone(int owner)
          Constructs a new Stone, with the designated owner.
 
Method Summary
 Stone.StoneColor getColor()
          Returns the color of this stone.
 int getOwner()
          Returns an int indicating the owner of this stone.
 java.lang.String toString()
           
 
Methods inherited from class edu.columbia.cs.coms4701.agent.environments.grid.SimpleGridObject
getLocation, setLocation
 
Methods inherited from class edu.columbia.cs.coms4701.agent.environments.simple.SimpleEnvironmentObject
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.columbia.cs.coms4701.agent.environments.grid.GridObject
getLocation, setLocation
 
Methods inherited from interface edu.columbia.cs.coms4701.agent.EnvironmentObject
addPropertyChangeListener, isAlive, removePropertyChangeListener, setAlive
 

Constructor Detail

Stone

public Stone(int owner)
Constructs a new Stone, with the designated owner.

Parameters:
owner -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class SimpleGridObject

getOwner

public int getOwner()
Returns an int indicating the owner of this stone.

Returns:
an integer between 0 and (number of players - 1)

getColor

public Stone.StoneColor getColor()
Returns the color of this stone.

Returns:
a color