cz.nipax.hippo.pexeso
Class AI_human

java.lang.Object
  extended by cz.nipax.hippo.pexeso.AI
      extended by cz.nipax.hippo.pexeso.AI_human

public class AI_human
extends AI

Makes possible for human to play. Simply takes user input and pretends it is turn from AI.


Field Summary
 
Fields inherited from class cz.nipax.hippo.pexeso.AI
DEBUG, m_killed, m_pg, MOVESLEEP
 
Constructor Summary
AI_human(Playground pg)
          Simple contructor
 
Method Summary
 java.lang.String getname()
          Get name of AI.
 void userinput(int x, int y)
          Passes user input to Playground.
 
Methods inherited from class cz.nipax.hippo.pexeso.AI
ivalidate, kill, onturn, println, revealed, setSleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AI_human

public AI_human(Playground pg)
Simple contructor

Method Detail

getname

public java.lang.String getname()
Get name of AI.

Overrides:
getname in class AI
Returns:
string with name

userinput

public void userinput(int x,
                      int y)
Passes user input to Playground. Simply pretends that AI computed move.

Overrides:
userinput in class AI
Parameters:
x - x coordinate of click
y - y coortinate of click