Ejemplo n.º 1
0
    public AnnanaTeaPartySceneState SetWaterInTheCup(int value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.WaterInTheCup = value;
        return(copy);
    }
Ejemplo n.º 2
0
    public AnnanaTeaPartySceneState SetTookTheFine(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.TookTheFine = value;
        return(copy);
    }
Ejemplo n.º 3
0
    public AnnanaTeaPartySceneState SetUsedItems(HashSet <int> value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.UsedItems = value;
        return(copy);
    }
Ejemplo n.º 4
0
    public AnnanaTeaPartySceneState SetTeapotOnTheTable(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.TeapotOnTheTable = value;
        return(copy);
    }
Ejemplo n.º 5
0
    public AnnanaTeaPartySceneState SetThrewCup(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.ThrewCup = value;
        return(copy);
    }
Ejemplo n.º 6
0
    public AnnanaTeaPartySceneState SetOwlFlownAway(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.OwlFlownAway = value;
        return(copy);
    }
Ejemplo n.º 7
0
    public AnnanaTeaPartySceneState SetTeapotOnTheStove(int value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.TeapotOnTheStove = value;
        return(copy);
    }
Ejemplo n.º 8
0
    public AnnanaTeaPartySceneState SetIsLockOpen(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.IsLockOpen = value;
        return(copy);
    }
Ejemplo n.º 9
0
    public AnnanaTeaPartySceneState SetIsOutside(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.IsOutside = value;
        return(copy);
    }
Ejemplo n.º 10
0
    public AnnanaTeaPartySceneState SetInTheKitchen(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.InTheKitchen = value;
        return(copy);
    }
Ejemplo n.º 11
0
    public AnnanaTeaPartySceneState SetDrankTea(bool value)
    {
        var copy = new AnnanaTeaPartySceneState(this);

        copy.DrankTea = value;
        return(copy);
    }
Ejemplo n.º 12
0
    public GameState Set(AnnanaTeaPartySceneState state)
    {
        var copy = new GameState(this);

        copy.AnnanaTeaParty = state;
        return(copy);
    }
Ejemplo n.º 13
0
 private GameState(GameState template)
 {
     AnnanaHouse    = template.AnnanaHouse;
     HubaBus        = template.HubaBus;
     AnnanaTeaParty = template.AnnanaTeaParty;
     HubaForest     = template.HubaForest;
 }
Ejemplo n.º 14
0
 // this constructor uses parameter just to differ from empty one
 public GameState(bool initial)
 {
     AnnanaHouse    = new AnnanaSceneState(initial);
     AnnanaTeaParty = new AnnanaTeaPartySceneState(initial);
     HubaBus        = new HubaBusSceneState(initial);
     HubaForest     = new HubaForestSceneState(initial);
 }
Ejemplo n.º 15
0
 // copy constructor
 private AnnanaTeaPartySceneState(AnnanaTeaPartySceneState template)
 {
     DrankTea         = template.DrankTea;
     InTheKitchen     = template.InTheKitchen;
     IsHappy          = template.IsHappy;
     IsInside         = template.IsInside;
     IsLockOpen       = template.IsLockOpen;
     IsOutside        = template.IsOutside;
     IsReadingTheFine = template.IsReadingTheFine;
     OwlFlownAway     = template.OwlFlownAway;
     PickedUpItems    = template.PickedUpItems;
     TeaBagInTheCup   = template.TeaBagInTheCup;
     TeapotOnTheStove = template.TeapotOnTheStove;
     TeapotOnTheTable = template.TeapotOnTheTable;
     ThrewCup         = template.ThrewCup;
     TookTheFine      = template.TookTheFine;
     UsedItems        = template.UsedItems;
     WaterInTheCup    = template.WaterInTheCup;
     SetCharacterPosition();
 }
Ejemplo n.º 16
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);
    }