Changeset 7f693b4 in advance-wars


Ignore:
Timestamp:
Jan 31, 2011, 1:36:01 AM (14 years ago)
Author:
dportnoy <devnull@…>
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.
Message:

Merge with 75ffb384ec7d8b4ad4fcbf491b318b55f8320342

Location:
src/com/example
Files:
2 added
1 edited

Legend:

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

    rece634d r7f693b4  
    11package com.example.advancewars;
    22
    3 import com.example.gui.GUIObject;
     3import com.example.game.Unit;
    44
    55import android.graphics.Canvas;
    66import android.graphics.Color;
    77import android.graphics.Paint;
     8import android.graphics.Point;
    89
    910public 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        }
    1034        private Paint p;
    1135       
Note: See TracChangeset for help on using the changeset viewer.