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

java.lang.Object
  extended by edu.columbia.cs.coms4701.agent.environments.pente.PentePerceptError
All Implemented Interfaces:
AgentPercept, PentePercept

public class PentePerceptError
extends java.lang.Object
implements PentePercept

A percept indicating that the player's previous move was invalid.

If a player attempts an invalid move, the environment will not change, the player will receive a PenteErrorPercept, and the player will be asked again for a move.

Version:
0.1

User: aaron Date: Sep 24, 2006 Time: 6:01:20 PM

Author:
aaron@cs

Nested Class Summary
static class PentePerceptError.ReasonForError
          Explains why an attempted move is invalid.
 
Constructor Summary
PentePerceptError(PentePerceptError.ReasonForError theReason)
          Constructs a new error percept with the given reason.
 
Method Summary
 PentePerceptError.ReasonForError getReasonForError()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PentePerceptError

public PentePerceptError(PentePerceptError.ReasonForError theReason)
Constructs a new error percept with the given reason.

Parameters:
theReason -
Method Detail

getReasonForError

public PentePerceptError.ReasonForError getReasonForError()

toString

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