org.eviline.event
Class EvilineEvent
java.lang.Object
java.util.EventObject
org.eviline.event.EvilineEvent
- All Implemented Interfaces:
- Serializable
public class EvilineEvent
- extends EventObject
Event issued by a Field
to EvilineListener
objects
- Author:
- robin
- See Also:
- Serialized Form
CLOCK_TICKED
public static final int CLOCK_TICKED
- See Also:
- Constant Field Values
GAME_OVER
public static final int GAME_OVER
- See Also:
- Constant Field Values
SHIFTED_LEFT
public static final int SHIFTED_LEFT
- See Also:
- Constant Field Values
SHIFTED_RIGHT
public static final int SHIFTED_RIGHT
- See Also:
- Constant Field Values
ROTATED_LEFT
public static final int ROTATED_LEFT
- See Also:
- Constant Field Values
ROTATED_RIGHT
public static final int ROTATED_RIGHT
- See Also:
- Constant Field Values
GAME_RESET
public static final int GAME_RESET
- See Also:
- Constant Field Values
GAME_PAUSED
public static final int GAME_PAUSED
- See Also:
- Constant Field Values
LINES_CLEARED
public static final int LINES_CLEARED
- See Also:
- Constant Field Values
GARBAGE_RECEIVED
public static final int GARBAGE_RECEIVED
- See Also:
- Constant Field Values
SHAPE_SPAWNED
public static final int SHAPE_SPAWNED
- See Also:
- Constant Field Values
SHAPE_LOCKED
public static final int SHAPE_LOCKED
- See Also:
- Constant Field Values
HARD_DROP
public static final int HARD_DROP
- See Also:
- Constant Field Values
id
protected int id
field
protected Field field
lines
protected int lines
shape
protected Shape shape
x
protected int x
y
protected int y
ghostY
protected int ghostY
EvilineEvent
public EvilineEvent(Object source,
int id,
Field field)
EvilineEvent
public EvilineEvent(Object source,
int id,
Field field,
int lines)
getId
public int getId()
getX
public int getX()
getY
public int getY()
getShape
public Shape getShape()
getGhostY
public int getGhostY()
getField
public Field getField()
- Returns the
Field
that this event happened on
- Returns:
getLines
public int getLines()
- Returns the number of lines cleared in a multiline event
- Returns:
Copyright © 2013. All Rights Reserved.