Exemple #1
0
    public int GetNumOfFavorEffectsInTile(ConstantsScript.TileFavorEffect effect)
    {
        IEnumerable<Favor> effectFavors =
            from favor in favorList
            where favor.GetTileFavorEffect() == effect
            select favor;

        return effectFavors.Count();
    }
Exemple #2
0
 public void SetTileFavorEffect(ConstantsScript.TileFavorEffect newEffect)
 {
     effect = newEffect;
 }
Exemple #3
0
 public void SetTileFavorDirection(ConstantsScript.TileFavorDirection newDirection)
 {
     direction = newDirection;
 }