public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CoordinateX?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CoordinateY?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CoordinateX.GetHashCode(); hashCode = (hashCode * 397) ^ CoordinateY.GetHashCode(); return(hashCode); } }
public GameInfoObserver( ReadMemoryHelper _readMemoryHelper, GameInfo _gameInfo, CoordinateX _varCoordinateX, CoordinateY _varCoordinateY, HpPercent _varHpPercent ) { this.readMemoryHelper = _readMemoryHelper; this.gameInfo = _gameInfo; this.varCoordinateX = _varCoordinateX; this.varCoordinateY = _varCoordinateY; this.varHpPercent = _varHpPercent; }
public Chromosome(string binary) { x = new CoordinateX(binary.Substring(0, (binary.Length) / 2)); y = new CoordinateY(binary.Substring((binary.Length) / 2)); binaryValue = x.binaryValue + y.binaryValue; }
public Chromosome(CoordinateX x, CoordinateY y) { this.x = x; this.y = y; binaryValue = x.binaryValue + y.binaryValue; }
public double pi; // probability of choice public Chromosome() { x = new CoordinateX(); y = new CoordinateY(); binaryValue = x.binaryValue + y.binaryValue; }