package com.example.advancewars; import com.example.game.Unit; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Point; public class Tile { public enum TerrainType { LAND, SEA } TerrainType type; public double moveCoefficent; public Unit currentUnit; public Point point; public void addUnit(Unit unit) { currentUnit = unit; } public void removeUnit(Unit unit) { if(currentUnit != null) { currentUnit = null; } } private Paint p; public Tile(Paint p) { this.p = p; } public void draw(Canvas c, int x, int y) { c.drawRect(x, y, x+50, y+50, p); } }