public RenderingEngine(BoardAbstract board) { this.camera = new MovingCamera(board, this.graphics, board); this.ownerBoard = board; board.addEntityToUpdater(camera); init(); }
public MovingCamera(BoardAbstract testBoard, Graphics2D g2) : base(boardHalfWidth, boardHalfHeight) { this.gBoard = g2; this.currentBoard = testBoard; this.setPos(0, 0); behaviorCurrent = new InactiveBehavior(); init(); }