예제 #1
0
파일: Unit.cs 프로젝트: Tanttinator/Empire
        public Unit(UnitType type, Tile tile, Player owner)
        {
            ID = units.Count;

            this.type = type;

            SetHealth(type.maxHealth);
            SetOwner(owner);
            SetTile(tile);
            tile.PlaceUnit(this);
            Refuel();

            owner.AddUnit(this);

            units.Add(this);
        }