Changeset 10011 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Logical Expressions/BooleanTreeNode.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/Logical Expressions/BooleanTreeNode.cs
r9790 r10011 36 36 37 37 [StorableConstructor] 38 pr ivateBooleanTreeNode(bool deserializing) : base(deserializing) { }39 pr ivateBooleanTreeNode(BooleanTreeNode original, Cloner cloner)38 protected BooleanTreeNode(bool deserializing) : base(deserializing) { } 39 protected BooleanTreeNode(BooleanTreeNode original, Cloner cloner) 40 40 : base(original, cloner) { 41 this.value = original.value;41 value = original.value; 42 42 } 43 43 44 public BooleanTreeNode() 45 : base(new LogicalValue()) { 46 } 44 public BooleanTreeNode() : base(new LogicalValue()) { } 47 45 48 46 public override IDeepCloneable Clone(Cloner cloner) { … … 55 53 56 54 public override void ResetLocalParameters(IRandom random) { 57 value = (bool)(random.Next(0, 1) == 1);55 value = random.Next(0, 2) == 1; 58 56 } 59 57 }
Note: See TracChangeset
for help on using the changeset viewer.