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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return(result);
    }
Example #2
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);
    }
Example #3
0
    // compare method
    public List <string> CompareChanges(HubaForestSceneState other)
    {
        var result = new List <string>();

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

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

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

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

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

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

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

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

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

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

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

        return(result);
    }