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

            init();
        }