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/Logical Expressions/BooleanTreeNode.cs

    r9790 r10011  
    3636
    3737    [StorableConstructor]
    38     private BooleanTreeNode(bool deserializing) : base(deserializing) { }
    39     private BooleanTreeNode(BooleanTreeNode original, Cloner cloner)
     38    protected BooleanTreeNode(bool deserializing) : base(deserializing) { }
     39    protected BooleanTreeNode(BooleanTreeNode original, Cloner cloner)
    4040      : base(original, cloner) {
    41       this.value = original.value;
     41      value = original.value;
    4242    }
    4343
    44     public BooleanTreeNode()
    45       : base(new LogicalValue()) {
    46     }
     44    public BooleanTreeNode() : base(new LogicalValue()) { }
    4745
    4846    public override IDeepCloneable Clone(Cloner cloner) {
     
    5553
    5654    public override void ResetLocalParameters(IRandom random) {
    57       value = (bool)(random.Next(0, 1) == 1);
     55      value = random.Next(0, 2) == 1;
    5856    }
    5957  }
Note: See TracChangeset for help on using the changeset viewer.