Show InteractionCell

This commit is contained in:
iryupnik 2020-03-11 21:50:15 +01:00
parent 76739987aa
commit 00ec0ea77e
3 changed files with 9 additions and 0 deletions

View File

@ -9,4 +9,9 @@ public class InteractionCell extends Cell {
InteractionCell(int x, int y) { InteractionCell(int x, int y) {
super(x, y, WindowOfFreeMove.CELL_SIZE, Color.ORANGE); super(x, y, WindowOfFreeMove.CELL_SIZE, Color.ORANGE);
} }
@Override
public void paint(Graphics2D g) {
super.paint(g);
}
} }

View File

@ -23,6 +23,7 @@ public class Map {
idExit = 0; idExit = 0;
mapArray = new TypeOfCell[height][width]; mapArray = new TypeOfCell[height][width];
moveToCells = new LinkedList<EventMoveToCell>(); moveToCells = new LinkedList<EventMoveToCell>();
eventCells = new LinkedList<InteractionCell>();
block = new LinkedList<Block>(); block = new LinkedList<Block>();
isBlocked = false; isBlocked = false;
imageCell = new ImageCell(); imageCell = new ImageCell();

View File

@ -216,6 +216,9 @@ public class WindowOfFreeMove extends JFrame {
for (Cell cell : map.getBlocks()) { for (Cell cell : map.getBlocks()) {
cell.paint(g2D); cell.paint(g2D);
} }
for (Cell cell: map.getInteractionEventCells()){
cell.paint(g2D);
}
} }
} }
} }