had
Class RunThread

java.lang.Object
  extended byjava.lang.Thread
      extended byhad.RunThread
All Implemented Interfaces:
java.lang.Runnable

public class RunThread
extends java.lang.Thread

Author:
fsramej1 Trida jejiz instanci tvori thread obsluhujici periodicky pohyb hada po plose

Field Summary
private  Back back
           
private static int TIMEOUT
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RunThread()
          Konstruktor threadu, vytvori instanci hraci plochy
 
Method Summary
 Back getBack()
          Vrati instanci hraci plochy
 void run()
          Metoda run - cyklus pohybujici hadem v urcenem casovem intervalu
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIMEOUT

private static final int TIMEOUT
See Also:
Constant Field Values

back

private Back back
Constructor Detail

RunThread

public RunThread()
Konstruktor threadu, vytvori instanci hraci plochy

Method Detail

run

public void run()
Metoda run - cyklus pohybujici hadem v urcenem casovem intervalu


getBack

public Back getBack()
Vrati instanci hraci plochy

Returns:
Instance hraci plochy