Show InteractionCell
This commit is contained in:
parent
76739987aa
commit
00ec0ea77e
@ -9,4 +9,9 @@ public class InteractionCell extends Cell {
|
||||
InteractionCell(int x, int y) {
|
||||
super(x, y, WindowOfFreeMove.CELL_SIZE, Color.ORANGE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paint(Graphics2D g) {
|
||||
super.paint(g);
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ public class Map {
|
||||
idExit = 0;
|
||||
mapArray = new TypeOfCell[height][width];
|
||||
moveToCells = new LinkedList<EventMoveToCell>();
|
||||
eventCells = new LinkedList<InteractionCell>();
|
||||
block = new LinkedList<Block>();
|
||||
isBlocked = false;
|
||||
imageCell = new ImageCell();
|
||||
|
||||
@ -216,6 +216,9 @@ public class WindowOfFreeMove extends JFrame {
|
||||
for (Cell cell : map.getBlocks()) {
|
||||
cell.paint(g2D);
|
||||
}
|
||||
for (Cell cell: map.getInteractionEventCells()){
|
||||
cell.paint(g2D);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user