Changeset 7f693b4 in advance-wars for src/com/example/advancewars/Tile.java
- Timestamp:
- Jan 31, 2011, 1:36:01 AM (14 years ago)
- Branches:
- master
- Children:
- 54e0965
- Parents:
- ece634d (diff), a0f5455 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/example/advancewars/Tile.java
rece634d r7f693b4 1 1 package com.example.advancewars; 2 2 3 import com.example.g ui.GUIObject;3 import com.example.game.Unit; 4 4 5 5 import android.graphics.Canvas; 6 6 import android.graphics.Color; 7 7 import android.graphics.Paint; 8 import android.graphics.Point; 8 9 9 10 public class Tile { 11 public enum TerrainType 12 { 13 LAND, SEA 14 } 15 16 TerrainType type; 17 public double moveCoefficent; 18 public Unit currentUnit; 19 public Point point; 20 21 public void addUnit(Unit unit) 22 { 23 currentUnit = unit; 24 } 25 26 public void removeUnit(Unit unit) 27 { 28 if(currentUnit != null) 29 { 30 currentUnit = null; 31 } 32 33 } 10 34 private Paint p; 11 35
Note:
See TracChangeset
for help on using the changeset viewer.