Changes in / [7f693b4:ece634d] in advance-wars
- Location:
- src/com/example
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/com/example/advancewars/Tile.java
r7f693b4 rece634d 1 1 package com.example.advancewars; 2 2 3 import com.example.g ame.Unit;3 import com.example.gui.GUIObject; 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;9 8 10 9 public class Tile { 11 public enum TerrainType12 {13 LAND, SEA14 }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 }34 10 private Paint p; 35 11
Note:
See TracChangeset
for help on using the changeset viewer.