Changeset 1a1e8c7 in advance-wars for src/com/medievaltech/game/Map.java
- Timestamp:
- Jan 31, 2011, 11:44:53 PM (14 years ago)
- Branches:
- master
- Children:
- 00c432c
- Parents:
- abe7b3d
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/com/medievaltech/game/Map.java
rabe7b3d r1a1e8c7 1 package com.medievaltech. advancewars;1 package com.medievaltech.game; 2 2 3 3 import android.graphics.Canvas; … … 16 16 for(int x=0; x<getWidth(); x++) 17 17 for(int y=0; y<getHeight(); y++) 18 grid[x][y] = t;18 grid[x][y] = new Tile(t); 19 19 } 20 20 … … 25 25 public int getHeight() { 26 26 return grid[0].length; 27 } 28 29 public Tile getTile(int x, int y) { 30 return grid[x][y]; 31 } 32 33 public Tile getTile(Point point) { 34 return grid[point.x][point.y]; 27 35 } 28 36 … … 36 44 grid[x][y].draw(c, xStart+50*x, yStart+50*y); 37 45 } 38 39 public Tile getTile(Point point)40 {41 return grid[point.x][point.y];42 }43 46 }
Note:
See TracChangeset
for help on using the changeset viewer.