Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/01/13 12:08:25 (11 years ago)
Author:
jkarder
Message:

#2069:

  • refactored grammar and symbols
  • fixed cloning and storable ctors
  • fixed plugin dependencies
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Void Methods/DoNothing.cs

    r9790 r10011  
    2020#endregion
    2121
    22 
     22using System.Collections.Generic;
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     
    3838
    3939    [StorableConstructor]
    40     private DoNothing(bool deserializing) : base(deserializing) { }
    41     private DoNothing(DoNothing original, Cloner cloner)
    42       : base(original, cloner) {
    43     }
     40    protected DoNothing(bool deserializing) : base(deserializing) { }
     41    protected DoNothing(DoNothing original, Cloner cloner) : base(original, cloner) { }
    4442
    45     public DoNothing()
    46       : base("DoNothing", "Do nothing this turn, meaning that the robot will skip it's turn.") {
    47     }
     43    public DoNothing() : base("DoNothing", "Do nothing this turn, meaning that the robot will skip it's turn.") { }
    4844
    4945    public override IDeepCloneable Clone(Cloner cloner) {
     
    5147    }
    5248
    53     public override string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children) {
    54       return "";
     49    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
     50      return ";";
    5551    }
    5652  }
Note: See TracChangeset for help on using the changeset viewer.