Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/17/15 13:48:30 (9 years ago)
Author:
gkronber
Message:

#2069: copied relevant files for robocode problem from branch to trunk

Location:
trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/HeuristicLab.Problems.GeneticProgramming-3.3.csproj

    r12938 r13210  
    104104    </Reference>
    105105    <Reference Include="System.Drawing" />
     106    <Reference Include="System.IO.Compression" />
     107    <Reference Include="System.IO.Compression.FileSystem" />
    106108  </ItemGroup>
    107109  <ItemGroup>
     
    117119    <Compile Include="Plugin.cs" />
    118120    <Compile Include="Properties\AssemblyInfo.cs" />
     121    <Compile Include="robocode\EnemyCollection.cs" />
     122    <Compile Include="robocode\Grammar.cs" />
     123    <Compile Include="robocode\Interpreter.cs" />
     124    <Compile Include="robocode\Problem.cs" />
     125    <Compile Include="robocode\Solution.cs" />
     126    <Compile Include="robocode\Symbols\BooleanTreeNode.cs" />
     127    <Compile Include="robocode\Symbols\BooleanValue.cs" />
     128    <Compile Include="robocode\Symbols\CodeSymbol.cs" />
     129    <Compile Include="robocode\Symbols\Number.cs" />
     130    <Compile Include="robocode\Symbols\NumberTreeNode.cs" />
     131    <Compile Include="robocode\Symbols\ShotPower.cs" />
     132    <Compile Include="robocode\Symbols\ShotPowerTreeNode.cs" />
    119133  </ItemGroup>
    120134  <ItemGroup>
     
    122136    <None Include="Plugin.cs.frame" />
    123137    <None Include="Properties\AssemblyInfo.cs.frame" />
     138    <None Include="robocode\BattleObserver.class">
     139      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     140    </None>
     141    <None Include="robocode\BattleRunner.class">
     142      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     143    </None>
     144    <None Include="robocode\robocode.zip">
     145      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     146    </None>
    124147  </ItemGroup>
    125148  <ItemGroup>
     
    211234      <Install>true</Install>
    212235    </BootstrapperPackage>
     236  </ItemGroup>
     237  <ItemGroup>
     238    <Content Include="robocode\BattleRunner.java" />
    213239  </ItemGroup>
    214240  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • trunk/sources/HeuristicLab.Problems.GeneticProgramming/3.3/Plugin.cs.frame

    r12936 r13210  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Text;
     23using System.IO;
     24using System.IO.Compression;
     25using System.Linq;
    2526using HeuristicLab.PluginInfrastructure;
    2627
     
    2829  [Plugin("HeuristicLab.Problems.GeneticProgramming","Provides implementations for genetic programming problems such as the artificial ant problem.", "3.3.0.$WCREV$")]
    2930  [PluginFile("HeuristicLab.Problems.GeneticProgramming-3.3.dll", PluginFileType.Assembly)]
     31  [PluginFile("Robocode/robocode.zip", PluginFileType.Data)]
     32  [PluginFile("Robocode/BattleRunner.class", PluginFileType.Data)]
     33  [PluginFile("Robocode/BattleObserver.class", PluginFileType.Data)]
    3034  [PluginDependency("HeuristicLab.Collections", "3.3")]
    3135  [PluginDependency("HeuristicLab.Common", "3.3")]
     
    4145  [PluginDependency("HeuristicLab.Random", "3.3")]
    4246  public class HeuristicLabProblemsGeneticProgrammingPlugin : PluginBase {
     47    public override void OnLoad() {
     48        base.OnLoad();
     49        if (!Directory.EnumerateDirectories(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "libs"), SearchOption.TopDirectoryOnly).Any()) {
     50          ZipFile.ExtractToDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Path.Combine("Robocode", "robocode.zip")), AppDomain.CurrentDomain.BaseDirectory);
     51        }
     52      }
    4353  }
    4454}
Note: See TracChangeset for help on using the changeset viewer.