Example #1
0
        /// <summary>
        /// Handles the AST node visit.
        /// </summary>
        /// <param name="astNode">AST node.</param>
        public override void Visit(DomainActionAstNode astNode)
        {
            Action newAction = new Action
            {
                Name          = astNode.Name,
                Parameters    = MasterExporter.ToParameters(astNode.Parameters),
                Preconditions = MasterExporter.ToPreconditions(astNode.Preconditions),
                Effects       = MasterExporter.ToEffects(astNode.Effects)
            };

            DomainData.Actions.Add(newAction);
        }
Example #2
0
 public virtual void Visit(DomainActionAstNode node)
 {
 }