Changeset 15ddb57 in advance-wars for src/com/example/advancewars/Map.java


Ignore:
Timestamp:
Jan 30, 2011, 10:40:29 PM (14 years ago)
Author:
aluthra <devnull@…>
Branches:
master
Children:
54e0965
Parents:
a0f5455
Message:

More game objects

File:
1 edited

Legend:

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

    ra0f5455 r15ddb57  
    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}
Note: See TracChangeset for help on using the changeset viewer.