Changeset 41c11dd in advance-wars for src/com/medievaltech/advancewars/Map.java


Ignore:
Timestamp:
Aug 27, 2011, 1:56:46 AM (13 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
331d180
Parents:
511177b
Message:

Added cities to the game, moved the map to a new static class, and added incomplete support for capturing cities with soldiers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/medievaltech/advancewars/Map.java

    r511177b r41c11dd  
    8080                                grid[x][y].drawUnit(c, offset.x+50*x, offset.y+50*y);
    8181        }
     82       
     83        public void drawBuildings(Canvas c) {
     84                for(int x=0; x<getWidth(); x++)
     85                        for(int y=0; y<getHeight(); y++)
     86                                grid[x][y].drawBuilding(c, offset.x+50*x, offset.y+50*y);
     87        }
    8288}
Note: See TracChangeset for help on using the changeset viewer.