AI erstellt

This commit is contained in:
Wafa Sadri
2014-06-05 11:49:46 +02:00
parent 0021f75b4d
commit f10b06b048
2 changed files with 26 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>10.0.0</ProductVersion>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FB0656B5-8E83-4880-9EAE-55E474B8B732}</ProjectGuid>
<OutputType>Exe</OutputType>
@@ -114,6 +114,7 @@
</Compile>
<Compile Include="src\BinarySearch.cs" />
<Compile Include="src\Sorttest.cs" />
<Compile Include="src\AI.cs" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0">

24
src/AI.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Timers;
namespace WorldOfPeacecraft
{
public class AI
{
Timer timer;
bool challengeSomeone = false;
public AI ()
{
timer = new Timer (5000.0);
timer.Elapsed += new ElapsedEventHandler (OnTimedEvent);
timer.Start ();
}
private static void OnTimedEvent(object source, ElapsedEventArgs e)
{
}
}
}