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) {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user