Beispiel #1
0
    // compare method
    public List <string> CompareChanges(AnnanaSceneState other)
    {
        var result = new List <string>();

        if (!AlarmPostponed.Equals(other.AlarmPostponed))
        {
            result.Add(String.Format("AlarmPostponed:\t{0}\t>>>\t{1}", other.AlarmPostponed, AlarmPostponed));
        }

        if (!AlarmTurnedOff.Equals(other.AlarmTurnedOff))
        {
            result.Add(String.Format("AlarmTurnedOff:\t{0}\t>>>\t{1}", other.AlarmTurnedOff, AlarmTurnedOff));
        }

        if (!AngerLevel.Equals(other.AngerLevel))
        {
            result.Add(String.Format("AngerLevel:\t{0}\t>>>\t{1}", other.AngerLevel, AngerLevel));
        }

        if (!AnnanaDress.Equals(other.AnnanaDress))
        {
            result.Add(String.Format("AnnanaDress:\t{0}\t>>>\t{1}", other.AnnanaDress, AnnanaDress));
        }

        if (!BoilerContents.Equals(other.BoilerContents))
        {
            result.Add(String.Format("BoilerContents:\t{0}\t>>>\t{1}", other.BoilerContents, BoilerContents));
        }

        if (!CharPosition.Equals(other.CharPosition))
        {
            result.Add(String.Format("CharPosition:\t{0}\t>>>\t{1}", other.CharPosition, CharPosition));
        }

        if (!DidReadFridgeNote.Equals(other.DidReadFridgeNote))
        {
            result.Add(String.Format("DidReadFridgeNote:\t{0}\t>>>\t{1}", other.DidReadFridgeNote, DidReadFridgeNote));
        }

        if (!ElixirId.Equals(other.ElixirId))
        {
            result.Add(String.Format("ElixirId:\t{0}\t>>>\t{1}", other.ElixirId, ElixirId));
        }

        if (!FlyAway.Equals(other.FlyAway))
        {
            result.Add(String.Format("FlyAway:\t{0}\t>>>\t{1}", other.FlyAway, FlyAway));
        }

        if (!IsAddressPickedUp.Equals(other.IsAddressPickedUp))
        {
            result.Add(String.Format("IsAddressPickedUp:\t{0}\t>>>\t{1}", other.IsAddressPickedUp, IsAddressPickedUp));
        }

        if (!IsAddressUsed.Equals(other.IsAddressUsed))
        {
            result.Add(String.Format("IsAddressUsed:\t{0}\t>>>\t{1}", other.IsAddressUsed, IsAddressUsed));
        }

        if (!IsBerryPickedUp.Equals(other.IsBerryPickedUp))
        {
            result.Add(String.Format("IsBerryPickedUp:\t{0}\t>>>\t{1}", other.IsBerryPickedUp, IsBerryPickedUp));
        }

        if (!IsBerryUsed.Equals(other.IsBerryUsed))
        {
            result.Add(String.Format("IsBerryUsed:\t{0}\t>>>\t{1}", other.IsBerryUsed, IsBerryUsed));
        }

        if (!IsCrystalBallPickedUp.Equals(other.IsCrystalBallPickedUp))
        {
            result.Add(String.Format("IsCrystalBallPickedUp:\t{0}\t>>>\t{1}", other.IsCrystalBallPickedUp, IsCrystalBallPickedUp));
        }

        if (!IsElixirUsed.Equals(other.IsElixirUsed))
        {
            result.Add(String.Format("IsElixirUsed:\t{0}\t>>>\t{1}", other.IsElixirUsed, IsElixirUsed));
        }

        if (!IsEmptyVialPickedUp.Equals(other.IsEmptyVialPickedUp))
        {
            result.Add(String.Format("IsEmptyVialPickedUp:\t{0}\t>>>\t{1}", other.IsEmptyVialPickedUp, IsEmptyVialPickedUp));
        }

        if (!IsEmptyVialUsed.Equals(other.IsEmptyVialUsed))
        {
            result.Add(String.Format("IsEmptyVialUsed:\t{0}\t>>>\t{1}", other.IsEmptyVialUsed, IsEmptyVialUsed));
        }

        if (!IsFlowerPickedUp.Equals(other.IsFlowerPickedUp))
        {
            result.Add(String.Format("IsFlowerPickedUp:\t{0}\t>>>\t{1}", other.IsFlowerPickedUp, IsFlowerPickedUp));
        }

        if (!IsFlowerUsed.Equals(other.IsFlowerUsed))
        {
            result.Add(String.Format("IsFlowerUsed:\t{0}\t>>>\t{1}", other.IsFlowerUsed, IsFlowerUsed));
        }

        if (!IsInside.Equals(other.IsInside))
        {
            result.Add(String.Format("IsInside:\t{0}\t>>>\t{1}", other.IsInside, IsInside));
        }

        if (!IsLeafPickedUp.Equals(other.IsLeafPickedUp))
        {
            result.Add(String.Format("IsLeafPickedUp:\t{0}\t>>>\t{1}", other.IsLeafPickedUp, IsLeafPickedUp));
        }

        if (!IsLeafUsed.Equals(other.IsLeafUsed))
        {
            result.Add(String.Format("IsLeafUsed:\t{0}\t>>>\t{1}", other.IsLeafUsed, IsLeafUsed));
        }

        if (!IsOutside.Equals(other.IsOutside))
        {
            result.Add(String.Format("IsOutside:\t{0}\t>>>\t{1}", other.IsOutside, IsOutside));
        }

        if (!IsReadingFridgeNote.Equals(other.IsReadingFridgeNote))
        {
            result.Add(String.Format("IsReadingFridgeNote:\t{0}\t>>>\t{1}", other.IsReadingFridgeNote, IsReadingFridgeNote));
        }

        if (!OwlHasAddress.Equals(other.OwlHasAddress))
        {
            result.Add(String.Format("OwlHasAddress:\t{0}\t>>>\t{1}", other.OwlHasAddress, OwlHasAddress));
        }

        if (!OwlPackage.Equals(other.OwlPackage))
        {
            result.Add(String.Format("OwlPackage:\t{0}\t>>>\t{1}", other.OwlPackage, OwlPackage));
        }

        if (!ReadingVeganBook.Equals(other.ReadingVeganBook))
        {
            result.Add(String.Format("ReadingVeganBook:\t{0}\t>>>\t{1}", other.ReadingVeganBook, ReadingVeganBook));
        }

        if (!ReadVeganBook.Equals(other.ReadVeganBook))
        {
            result.Add(String.Format("ReadVeganBook:\t{0}\t>>>\t{1}", other.ReadVeganBook, ReadVeganBook));
        }

        return(result);
    }
Beispiel #2
0
    // compare method
    public List <string> CompareChanges(AnnanaTeaPartySceneState other)
    {
        var result = new List <string>();

        if (!DrankTea.Equals(other.DrankTea))
        {
            result.Add(String.Format("DrankTea:\t{0}\t>>>\t{1}", other.DrankTea, DrankTea));
        }

        if (!InTheKitchen.Equals(other.InTheKitchen))
        {
            result.Add(String.Format("InTheKitchen:\t{0}\t>>>\t{1}", other.InTheKitchen, InTheKitchen));
        }

        if (!IsHappy.Equals(other.IsHappy))
        {
            result.Add(String.Format("IsHappy:\t{0}\t>>>\t{1}", other.IsHappy, IsHappy));
        }

        if (!IsInside.Equals(other.IsInside))
        {
            result.Add(String.Format("IsInside:\t{0}\t>>>\t{1}", other.IsInside, IsInside));
        }

        if (!IsLockOpen.Equals(other.IsLockOpen))
        {
            result.Add(String.Format("IsLockOpen:\t{0}\t>>>\t{1}", other.IsLockOpen, IsLockOpen));
        }

        if (!IsOutside.Equals(other.IsOutside))
        {
            result.Add(String.Format("IsOutside:\t{0}\t>>>\t{1}", other.IsOutside, IsOutside));
        }

        if (!IsReadingTheFine.Equals(other.IsReadingTheFine))
        {
            result.Add(String.Format("IsReadingTheFine:\t{0}\t>>>\t{1}", other.IsReadingTheFine, IsReadingTheFine));
        }

        if (!OwlFlownAway.Equals(other.OwlFlownAway))
        {
            result.Add(String.Format("OwlFlownAway:\t{0}\t>>>\t{1}", other.OwlFlownAway, OwlFlownAway));
        }

        if (!PickedUpItems.Equals(other.PickedUpItems))
        {
            result.Add(String.Format("PickedUpItems:\t{0}\t>>>\t{1}", other.PickedUpItems, PickedUpItems));
        }

        if (!TeaBagInTheCup.Equals(other.TeaBagInTheCup))
        {
            result.Add(String.Format("TeaBagInTheCup:\t{0}\t>>>\t{1}", other.TeaBagInTheCup, TeaBagInTheCup));
        }

        if (!TeapotOnTheStove.Equals(other.TeapotOnTheStove))
        {
            result.Add(String.Format("TeapotOnTheStove:\t{0}\t>>>\t{1}", other.TeapotOnTheStove, TeapotOnTheStove));
        }

        if (!TeapotOnTheTable.Equals(other.TeapotOnTheTable))
        {
            result.Add(String.Format("TeapotOnTheTable:\t{0}\t>>>\t{1}", other.TeapotOnTheTable, TeapotOnTheTable));
        }

        if (!ThrewCup.Equals(other.ThrewCup))
        {
            result.Add(String.Format("ThrewCup:\t{0}\t>>>\t{1}", other.ThrewCup, ThrewCup));
        }

        if (!TookTheFine.Equals(other.TookTheFine))
        {
            result.Add(String.Format("TookTheFine:\t{0}\t>>>\t{1}", other.TookTheFine, TookTheFine));
        }

        if (!UsedItems.Equals(other.UsedItems))
        {
            result.Add(String.Format("UsedItems:\t{0}\t>>>\t{1}", other.UsedItems, UsedItems));
        }

        if (!WaterInTheCup.Equals(other.WaterInTheCup))
        {
            result.Add(String.Format("WaterInTheCup:\t{0}\t>>>\t{1}", other.WaterInTheCup, WaterInTheCup));
        }

        return(result);
    }