Changeset b97a618 in advance-wars for src/com/medievaltech/game/Tile.java


Ignore:
Timestamp:
Feb 2, 2011, 4:51:03 PM (14 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
78d3c6f
Parents:
6a639f7
Message:

Touching a unit now displays its movement area. Touching a square without a unit will stop displaying any previously displayed movement area. THe movement area is now drawn under the unit itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/com/medievaltech/game/Tile.java

    r6a639f7 rb97a618  
    4343        public void draw(Canvas c, int x, int y) {
    4444                c.drawRect(x, y, x+50, y+50, p);
    45                
     45        }
     46       
     47        public void drawUnit(Canvas c, int x, int y) {
    4648                if(currentUnit != null)
    4749                        currentUnit.draw(c, x+25, y+25);
Note: See TracChangeset for help on using the changeset viewer.