コード例 #1
0
ファイル: SimpleTile.cs プロジェクト: physic/18xx
        public override bool UpgradesTo(Tile tile)
        {
            if ((Id != null && tile.Id != null) || !(tile is SimpleTile)) return base.UpgradesTo(tile);

            SimpleTile other = (SimpleTile)tile;
            return (this.exits.IsSubsetOf(other.exits)) && other.Phase == this.Phase + 1;
        }
コード例 #2
0
ファイル: Tile.cs プロジェクト: physic/18xx
 public virtual bool UpgradesTo(Tile tile)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
ファイル: SimpleCityTile.cs プロジェクト: physic/18xx
 public override bool UpgradesTo(Tile tile)
 {
     throw new NotImplementedException();
 }