public VTile(MTile h) { this._center = h.Center; this._col = h.GetCol(); this._height = h.GetHeight(); this._row = h.GetRow(); this._type = h.Type; }
private double GetHeightScalar(MTile tile) { double scalar = 1; foreach (var neighbor in tile.GetAdjacent()) { int delta = neighbor.GetHeight() - tile.GetHeight(); switch (delta) { case (2): { scalar *= 0.8; } break; case (1): { scalar *= 0.9; } break; case (-1): { scalar *= 1.1; } break; case (-2): { scalar *= 1.2; } break; } } return(scalar); }