示例#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
 public override bool UpgradesTo(Tile tile)
 {
     throw new NotImplementedException();
 }