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/Numerical Methods/GetHeading.cs

    r9790 r10011  
    2020#endregion
    2121
    22 
     22using System.Collections.Generic;
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     
    3838
    3939    [StorableConstructor]
    40     private GetHeading(bool deserializing) : base(deserializing) { }
    41     private GetHeading(GetHeading original, Cloner cloner)
    42       : base(original, cloner) {
    43 
    44     }
     40    protected GetHeading(bool deserializing) : base(deserializing) { }
     41    protected GetHeading(GetHeading original, Cloner cloner) : base(original, cloner) { }
    4542
    4643    public GetHeading()
    4744      : base("GetHeading", "Returns the direction that the robot's body is facing, in degrees.") {
    48       this.Prefix = "getHeading(";
    49       this.Suffix = ")";
     45      Prefix = "getHeading(";
     46      Suffix = ")";
    5047    }
    5148
     
    5451    }
    5552
    56     public override string Interpret(ISymbolicExpressionTreeNode node, System.Collections.Generic.IEnumerable<ISymbolicExpressionTreeNode> children) {
    57       return this.Prefix + this.Suffix;
     53    public override string Interpret(ISymbolicExpressionTreeNode node, IEnumerable<ISymbolicExpressionTreeNode> children) {
     54      return Prefix + Suffix;
    5855    }
    5956  }
Note: See TracChangeset for help on using the changeset viewer.