Changes in / [7f693b4:54e0965] in advance-wars


Ignore:
Location:
src/com/example
Files:
2 added
2 edited

Legend:

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

    r7f693b4 r54e0965  
    22
    33import android.graphics.Canvas;
     4import android.graphics.Point;
    45
    56public class Map {
     
    3536                                grid[x][y].draw(c, xStart+50*x, yStart+50*y);
    3637        }
     38       
     39        public Tile getTile(Point point)
     40        {
     41                return grid[point.x][point.y];
     42        }
    3743}
  • src/com/example/game/Unit.java

    r7f693b4 r54e0965  
    1111               
    1212        }
     13        public enum Type
     14        {
     15                LAND,SEA
     16        }
     17
     18        public Type type;
     19        public Player owner;
     20       
    1321        public int maxHealth;
    1422        public int currentHealth;
Note: See TracChangeset for help on using the changeset viewer.