org.eviline.event
Class HistoryMovePath

java.lang.Object
  extended by org.eviline.ai.PlayerMovePath
      extended by org.eviline.event.HistoryMovePath
All Implemented Interfaces:
EventListener, EvilineListener

public class HistoryMovePath
extends PlayerMovePath
implements EvilineListener


Field Summary
protected  List<long[]>[] lastPaths
           
protected  ShapeType lastType
           
 
Fields inherited from class org.eviline.ai.PlayerMovePath
intPaths, moves, pathType
 
Constructor Summary
HistoryMovePath()
           
 
Method Summary
 void clockTicked(EvilineEvent e)
          A clock tick occurred
 void gameOver(EvilineEvent e)
          A game over occurred
 void gamePaused(EvilineEvent e)
          The game was paused or unpaused
 void gameReset(EvilineEvent e)
          The game was reset
 void garbageReceived(EvilineEvent e)
           
 List<long[]>[] getLastPaths()
           
 ShapeType getLastType()
           
 void hardDropped(EvilineEvent e)
           
 void linesCleared(EvilineEvent e)
          A line was cleared
 void rotatedLeft(EvilineEvent e)
          The active piece rotated left
 void rotatedRight(EvilineEvent e)
          The active piece rotated right
 void shapeLocked(EvilineEvent e)
           
 void shapeSpawned(EvilineEvent e)
           
 void shiftedLeft(EvilineEvent e)
          The active piece shifted left
 void shiftedRight(EvilineEvent e)
          The active piece shifted right
 
Methods inherited from class org.eviline.ai.PlayerMovePath
getIntPaths, getMoves, getPathType, repath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastPaths

protected List<long[]>[] lastPaths

lastType

protected ShapeType lastType
Constructor Detail

HistoryMovePath

public HistoryMovePath()
Method Detail

shapeSpawned

public void shapeSpawned(EvilineEvent e)
Specified by:
shapeSpawned in interface EvilineListener

clockTicked

public void clockTicked(EvilineEvent e)
Description copied from interface: EvilineListener
A clock tick occurred

Specified by:
clockTicked in interface EvilineListener

shapeLocked

public void shapeLocked(EvilineEvent e)
Specified by:
shapeLocked in interface EvilineListener

gameOver

public void gameOver(EvilineEvent e)
Description copied from interface: EvilineListener
A game over occurred

Specified by:
gameOver in interface EvilineListener

shiftedLeft

public void shiftedLeft(EvilineEvent e)
Description copied from interface: EvilineListener
The active piece shifted left

Specified by:
shiftedLeft in interface EvilineListener

shiftedRight

public void shiftedRight(EvilineEvent e)
Description copied from interface: EvilineListener
The active piece shifted right

Specified by:
shiftedRight in interface EvilineListener

rotatedLeft

public void rotatedLeft(EvilineEvent e)
Description copied from interface: EvilineListener
The active piece rotated left

Specified by:
rotatedLeft in interface EvilineListener

rotatedRight

public void rotatedRight(EvilineEvent e)
Description copied from interface: EvilineListener
The active piece rotated right

Specified by:
rotatedRight in interface EvilineListener

gameReset

public void gameReset(EvilineEvent e)
Description copied from interface: EvilineListener
The game was reset

Specified by:
gameReset in interface EvilineListener

gamePaused

public void gamePaused(EvilineEvent e)
Description copied from interface: EvilineListener
The game was paused or unpaused

Specified by:
gamePaused in interface EvilineListener

linesCleared

public void linesCleared(EvilineEvent e)
Description copied from interface: EvilineListener
A line was cleared

Specified by:
linesCleared in interface EvilineListener

garbageReceived

public void garbageReceived(EvilineEvent e)
Specified by:
garbageReceived in interface EvilineListener

hardDropped

public void hardDropped(EvilineEvent e)
Specified by:
hardDropped in interface EvilineListener

getLastPaths

public List<long[]>[] getLastPaths()

getLastType

public ShapeType getLastType()


Copyright © 2013. All Rights Reserved.