예제 #1
0
 public TreeElement(TreeCode code)
 {
     this.TreeCode = code;
 }
 public void UpdateFromReduction(ExpressionPath expression, string varName)
 {
     TreeCode.UpdateFromReduction(expression, varName);
 }
예제 #3
0
        public static int maxTreeDamage(TreeCode tc)
        {
            switch(tc)
            {
                case TreeCode.PINE_TREE:
                return 3;

                case TreeCode.BIRCH_TREE:
                return 2;

                case TreeCode.OAK_TREE:
                return 5;

                default:
                return 3;
            }
        }
        /*
         * public void AddToDeleteMe(ExpressionsReductor reductor)
         * {
         *  TreeCode.AddToDeleteMe(reductor);
         * }
         */

        public IEnumerable <ExpressionPath> GetUsedExpressions()
        {
            return(TreeCode.GetUsedExpressions());
        }
예제 #5
0
 public TreeElement(TreeCode code)
 {
     this.TreeCode = code;
 }