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


Ignore:
Timestamp:
Feb 2, 2011, 3:36:46 AM (14 years ago)
Author:
dportnoy <devnull@…>
Branches:
master
Children:
6a639f7
Parents:
5d77d43
Message:

Added code to draw a unit's possible movement options on the map.

File:
1 edited

Legend:

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

    r5d77d43 rebaddd9  
    2222        }
    2323       
    24         public Tile(Tile t) {
     24        public Tile(Tile t, Point point) {
    2525                this.type = t.type;
    2626                this.moveCoefficent = t.moveCoefficent;
    2727                this.p = t.p;
     28                this.point = point;
    2829        }
    2930       
    3031        public void addUnit(Unit unit) {
    31                 currentUnit = unit;     
     32                currentUnit = unit;
     33                unit.location = point;
    3234        }
    3335       
Note: See TracChangeset for help on using the changeset viewer.