Package civquest.util

Examples of civquest.util.Rectangle


    public void markFieldForUpdateInBufferRect(GameDataAccessor gameData,
                         Coordinate fieldPos,     
                         civquest.util.Rectangle
                         paintRect) {

    Rectangle bufferRect = getBuffers(paintRect);

    Buffer[][] buffers = gameDataToBuffers.get(gameData);
   
        for (int x = bufferRect.getX1(); x <= bufferRect.getX2(); x++) {
            for (int y = bufferRect.getY1(); y <= bufferRect.getY2(); y++) {
        Coordinate coord = buffers[x][y]
          .getBufferIntersectingCoord(fieldPos);
        if (coord != null) {
          buffers[x][y].markFieldForUpdate(coord);
        }
View Full Code Here

TOP

Related Classes of civquest.util.Rectangle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.