Changeset 10011 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Methods/GetHeading.cs
- Timestamp:
- 10/01/13 12:08:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Numerical Methods/GetHeading.cs
r9790 r10011 20 20 #endregion 21 21 22 22 using System.Collections.Generic; 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 38 38 39 39 [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) { } 45 42 46 43 public GetHeading() 47 44 : 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 = ")"; 50 47 } 51 48 … … 54 51 } 55 52 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; 58 55 } 59 56 }
Note: See TracChangeset
for help on using the changeset viewer.