Package ruscz.game.gameOfProd.Cells
Class EventMoveToCell
- java.lang.Object
-
- ruscz.game.gameOfProd.Cells.Cell
-
- ruscz.game.gameOfProd.Cells.EventMoveToCell
-
public class EventMoveToCell extends Cell
Cell that moves Player between maps
-
-
Field Summary
Fields Modifier and Type Field Description private intdirectionOutprivate intidprivate Mapmapprivate booleanpaintprivate WindowOfFreeMovewindow
-
Constructor Summary
Constructors Constructor Description EventMoveToCell(int id, int directionOut, int x, int y, Map map, WindowOfFreeMove window, boolean paint)
-
Method Summary
Modifier and Type Method Description intgetDirectionOut()intgetId()MapgetMap()private booleanisActiveTriggerBehindMoveTo()Checks for active Trigger cells in the directionOut from DoorvoidmoveToMap()Moves player to map that is linked with this Moveto cellvoidpaint(java.awt.Graphics2D g)
-
-
-
Field Detail
-
map
private final Map map
-
window
private final WindowOfFreeMove window
-
id
private final int id
-
directionOut
private final int directionOut
-
paint
private final boolean paint
-
-
Constructor Detail
-
EventMoveToCell
public EventMoveToCell(int id, int directionOut, int x, int y, Map map, WindowOfFreeMove window, boolean paint)
-
-
Method Detail
-
getId
public int getId()
-
getMap
public Map getMap()
-
getDirectionOut
public int getDirectionOut()
-
moveToMap
public void moveToMap()
Moves player to map that is linked with this Moveto cell
-
isActiveTriggerBehindMoveTo
private boolean isActiveTriggerBehindMoveTo()
Checks for active Trigger cells in the directionOut from Door- Returns:
- true if there is an active Trigger cell
-
-