Beispiel #1
0
        public override bool InConflictWith(WoodSquare otherFact)
        {
            bool containsClue = false;

            switch (_clue)
            {
            case ClueType.Smell:
                containsClue = otherFact.HasSmell;
                break;

            case ClueType.Wind:
                containsClue = otherFact.HasWind;
                break;

            case ClueType.Light:
                containsClue = otherFact.IsBright;
                break;

            default:
                break;
            }

            return((_activated && (!otherFact.Explored || (otherFact.Explored && containsClue))) ||
                   (!_activated && otherFact.Explored && !containsClue));
        }
Beispiel #2
0
        public override bool IsContainedIn(WoodSquare square)
        {
            bool containsClue = false;

            switch (_clue)
            {
            case ClueType.Smell:
                containsClue = square.HasSmell;
                break;

            case ClueType.Wind:
                containsClue = square.HasWind;
                break;

            case ClueType.Light:
                containsClue = square.IsBright;
                break;

            default:
                break;
            }

            return((_activated && square.Explored && !containsClue) ||
                   (!_activated && (!square.Explored || (square.Explored && containsClue))));
        }
Beispiel #3
0
 // Ne sera probablement pas utilise car on ne peut pas inferer l'existence d'une preuve avec les regles actuel
 public override void Apply(WoodSquare square)
 {
     if (_activated)
     {
         square.RemoveClue(_clue);
     }
 }
Beispiel #4
0
 public override void Apply(WoodSquare square)
 {
     if (_activated)
     {
         square.FoundPortalHere();
     }
 }
Beispiel #5
0
 // Ne sera probablement pas utilise car on ne peut pas inferer son existence avec les regles actuel
 public override void Apply(WoodSquare square)
 {
     if (_activated)
     {
         square.Unblock();
     }
 }
Beispiel #6
0
 // Ne sera probablement pas utilise car on ne peut pas inferer son existence avec les regles actuel
 public override void Apply(WoodSquare square)
 {
     if (_atThisLocation)
     {
         square.ThrowRock();
     }
 }
        public override bool IsContainedIn(WoodSquare square)
        {
            switch (_type)
            {
            case DangerType.Monster:
                return(_value == square.NoMonster);

            case DangerType.Rift:
                return(_value == square.NoRift);

            default:
                break;
            }
            return(false);
        }
        /// <summary>
        /// Indique si ce fait est en conflit avec un autre fait
        /// </summary>
        /// <param name="otherFact">L'autre fait</param>
        /// <returns></returns>
        public override bool InConflictWith(WoodSquare otherFact)
        {
            switch (_type)
            {
            case DangerType.Monster:
                return(_value != otherFact.NoMonster);

            case DangerType.Rift:
                return(_value != otherFact.NoRift);

            default:
                break;
            }
            return(false);
        }
Beispiel #9
0
        public override bool IsContainedIn(WoodSquare square)
        {
            switch (_clue)
            {
            case ClueType.Smell:
                return(square.HasSmell);

            case ClueType.Wind:
                return(square.HasWind);

            case ClueType.Light:
                return(square.IsBright);

            default:
                break;
            }
            return(false);
        }
Beispiel #10
0
 /// <summary>
 /// Indique si ce fait est en conflit avec un autre fait
 /// </summary>
 /// <param name="otherFact">L'autre fait</param>
 /// <returns></returns>
 public override bool InConflictWith(WoodSquare otherFact)
 {
     if (otherFact.IsAnExit)
     {
         return(true);
     }
     if ((otherFact.NoMonster && _type == DangerType.Monster) || (otherFact.NoRift && _type == DangerType.Rift))
     {
         return(true);
     }
     if (otherFact.HasRock && _type == DangerType.Monster)
     {
         return(true);
     }
     if (otherFact.Explored && !otherFact.Deadly || !otherFact.CanExplore)
     {
         return(true);
     }
     return(false);
 }
Beispiel #11
0
 /// <summary>
 /// Applique le fait sur la case
 /// </summary>
 /// <param name="square">Case associe au fait</param>
 public virtual void Apply(WoodSquare square)
 {
 }
Beispiel #12
0
 /// <summary>
 /// Indique si ce fait est en conflit avec un autre fait
 /// </summary>
 /// <param name="otherFact">L'autre fait</param>
 /// <returns></returns>
 public virtual bool InConflictWith(WoodSquare otherFact)
 {
     return(false);
 }
 public override void Apply(WoodSquare square)
 {
     square.RemoveHazard(_type);
 }
Beispiel #14
0
 public override bool IsContainedIn(WoodSquare square)
 {
     return(square.HasRock == _atThisLocation);
 }
Beispiel #15
0
 // Ne sera probablement pas utilise car on ne peut pas inferer l'existence d'une preuve avec les regles actuel
 public override void Apply(WoodSquare square)
 {
     square.PerceiveNewClue(_clue);
 }
Beispiel #16
0
 /// <summary>
 /// Verifie si le fait est present sur une case
 /// </summary>
 /// <param name="square">Case sur laquelle verifie</param>
 /// <returns>Vrai si le fait est present faux sinon</returns>
 public virtual bool IsContainedIn(WoodSquare square)
 {
     return(false);
 }
Beispiel #17
0
 public override bool InConflictWith(WoodSquare otherFact)
 {
     return(otherFact.CanExplore != _activated);
 }
Beispiel #18
0
 public override bool IsContainedIn(WoodSquare square)
 {
     return(square.MayHaveAMonster && _type == DangerType.Monster || square.MayBeARift && _type == DangerType.Rift);
 }
Beispiel #19
0
 public override void Apply(WoodSquare square)
 {
     square.AddElementToPossibility(_type);
 }
Beispiel #20
0
 public override bool IsContainedIn(WoodSquare square)
 {
     return(square.CanExplore == _activated);
 }
Beispiel #21
0
 public override bool IsContainedIn(WoodSquare square)
 {
     return(square.IsAnExit == _activated);
 }
Beispiel #22
0
 public override bool InConflictWith(WoodSquare otherFact)
 {
     return(otherFact.HasRock != _atThisLocation);
 }
Beispiel #23
0
 public override bool InConflictWith(WoodSquare otherFact)
 {
     return(otherFact.IsAnExit != _activated);
 }