Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return((Symbol == null ? 0 : Symbol.GetHashCode()) ^
            SymbolScale.GetHashCode() ^ SymbolOffset.GetHashCode() ^
            SymbolRotation.GetHashCode() ^ UnitType.GetHashCode() ^ SymbolType.GetHashCode() ^
            Opacity.GetHashCode() ^ Width.GetHashCode() ^ Height.GetHashCode() ^ base.GetHashCode());
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((_value.GetHashCode() * 397) ^ _type.GetHashCode());
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     return(BitmapId.GetHashCode() ^
            SymbolScale.GetHashCode() ^ SymbolOffset.GetHashCode() ^
            SymbolRotation.GetHashCode() ^ UnitType.GetHashCode() ^ SymbolType.GetHashCode() ^
            Opacity.GetHashCode() ^ base.GetHashCode());
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            var hashCode = 589912188;

            hashCode = hashCode * -1521134295 + ID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + MapUnitID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Map.Unit> .Default.GetHashCode(mapUnit);

            hashCode = hashCode * -1521134295 + BattleUnitID.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <Battle.Unit> .Default.GetHashCode(battleUnit);

            hashCode = hashCode * -1521134295 + Type.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxHP.GetHashCode();
            hashCode = hashCode * -1521134295 + HP.GetHashCode();
            hashCode = hashCode * -1521134295 + MaxMP.GetHashCode();
            hashCode = hashCode * -1521134295 + MP.GetHashCode();
            hashCode = hashCode * -1521134295 + Strength.GetHashCode();
            hashCode = hashCode * -1521134295 + Fitness.GetHashCode();
            hashCode = hashCode * -1521134295 + Agility.GetHashCode();
            hashCode = hashCode * -1521134295 + Intelligence.GetHashCode();
            hashCode = hashCode * -1521134295 + Lucky.GetHashCode();
            hashCode = hashCode * -1521134295 + Attack.GetHashCode();
            hashCode = hashCode * -1521134295 + MagicPower.GetHashCode();
            hashCode = hashCode * -1521134295 + CriticalProbability.GetHashCode();
            hashCode = hashCode * -1521134295 + Defence.GetHashCode();
            hashCode = hashCode * -1521134295 + EvasionProbability.GetHashCode();
            hashCode = hashCode * -1521134295 + BlockProbability.GetHashCode();
            hashCode = hashCode * -1521134295 + WithstandProbability.GetHashCode();
            hashCode = hashCode * -1521134295 + MagicResistance.GetHashCode();
            hashCode = hashCode * -1521134295 + WeaponProficiency.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 5
0
        public override int GetHashCode()
        {
            var hashCode = -177567199;

            hashCode = hashCode * -1521134295 + Value.GetHashCode();
            hashCode = hashCode * -1521134295 + Unit.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 6
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (Id != null ? Id.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UnitPrice != null ? UnitPrice.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UnitType != null ? UnitType.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Discount != null ? Discount.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Quantity != null ? Quantity.GetHashCode() : 0);

                return(hashCode);
            }
        }
Exemplo n.º 7
0
 public override int GetHashCode() => (Power.GetHashCode() * 397) ^ UnitType.GetHashCode();
Exemplo n.º 8
0
 /// <include file='doc\Unit.uex' path='docs/doc[@for="Unit.GetHashCode"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public override int GetHashCode()
 {
     return(type.GetHashCode() << 2 ^ value.GetHashCode());
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     return(coordinates.GetHashCode() + type.GetHashCode());
 }
Exemplo n.º 10
0
 public override int GetHashCode()
 {
     return((_type.GetHashCode() << 2) ^ _value.GetHashCode());
 }
Exemplo n.º 11
0
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public override int GetHashCode()
 {
     return(HashCodeCombiner.CombineHashCodes(type.GetHashCode(), value.GetHashCode()));
 }
Exemplo n.º 12
0
    public void UnitType_EqualityTest15()
    {
        UnitType expected = unitPro.UnitTypes ["Length"];

        Assert.IsTrue(expected.GetHashCode() == expected.Name.GetHashCode());
    }