Changeset 9609 for branches/Robocode
- Timestamp:
- 06/12/13 05:29:43 (11 years ago)
- Location:
- branches/Robocode/HeuristicLab.Problems.Robocode
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode/HeuristicLab.Problems.Robocode/Grammar.cs
r9565 r9609 94 94 var onHitWall = new OnHitWall(); 95 95 var onScannedRobot = new OnScannedRobot(); 96 var emptyEvent = new EmptyEvent(); 96 97 97 98 var run = new Run(); … … 145 146 var eventSymbols = new List<ISymbol>() 146 147 { 147 run, onBulletHit, onBulletMissed, onHitByBullet, onHitRobot, onHitWall, onScannedRobot, block 148 run, onBulletHit, onBulletMissed, onHitByBullet, 149 onHitRobot, onHitWall, onScannedRobot, block, emptyEvent 148 150 }; 149 151 #endregion … … 246 248 } 247 249 250 // Add all Event Methods to Tank. Run and OnScannedEvent are not optional, 251 // so EmptyEvent cannot take their places 252 248 253 AddAllowedChildSymbol(tank, run, 0); 249 AddAllowedChildSymbol(tank, on BulletHit, 1);254 AddAllowedChildSymbol(tank, onScannedRobot, 1); 250 255 AddAllowedChildSymbol(tank, onBulletMissed, 2); 251 256 AddAllowedChildSymbol(tank, onHitByBullet, 3); 252 257 AddAllowedChildSymbol(tank, onHitRobot, 4); 253 258 AddAllowedChildSymbol(tank, onHitWall, 5); 254 AddAllowedChildSymbol(tank, onScannedRobot, 6); 259 AddAllowedChildSymbol(tank, onBulletHit, 6); 260 for (int i = 2; i < tank.MaximumArity; i++) 261 AddAllowedChildSymbol(tank, emptyEvent, i); 255 262 256 263 AddAllowedChildSymbol(StartSymbol, tank, 0); -
branches/Robocode/HeuristicLab.Problems.Robocode/HeuristicLab.Problems.Robocode.csproj
r9567 r9609 109 109 </Compile> 110 110 <Compile Include="SolutionProgramView.Designer.cs" /> 111 <Compile Include="Symbols\Event Methods\Events\EmptyEvent.cs" /> 111 112 <Compile Include="Symbols\Numerical Methods\INumericalMethod.cs" /> 112 113 <Compile Include="Symbols\Void Methods\Ahead.cs" />
Note: See TracChangeset
for help on using the changeset viewer.