Move the AI namespace to Mods.Common
This commit is contained in:
@@ -14,10 +14,9 @@ using System.Linq;
|
|||||||
using AI.Fuzzy.Library;
|
using AI.Fuzzy.Library;
|
||||||
using OpenRA.GameRules;
|
using OpenRA.GameRules;
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
class AttackOrFleeFuzzy
|
class AttackOrFleeFuzzy
|
||||||
{
|
{
|
||||||
@@ -12,10 +12,9 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
class BaseBuilder
|
class BaseBuilder
|
||||||
{
|
{
|
||||||
@@ -14,13 +14,11 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Mods.Common.Activities;
|
using OpenRA.Mods.Common.Activities;
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.Activities;
|
|
||||||
using OpenRA.Mods.RA.Traits;
|
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
using OpenRA.Support;
|
using OpenRA.Support;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
public sealed class HackyAIInfo : IBotInfo, ITraitInfo
|
public sealed class HackyAIInfo : IBotInfo, ITraitInfo
|
||||||
{
|
{
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
class RushFuzzy : AttackOrFleeFuzzy
|
class RushFuzzy : AttackOrFleeFuzzy
|
||||||
{
|
{
|
||||||
@@ -14,7 +14,7 @@ using OpenRA.Mods.Common.Traits;
|
|||||||
using OpenRA.Support;
|
using OpenRA.Support;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
public enum SquadType { Assault, Air, Rush, Protection }
|
public enum SquadType { Assault, Air, Rush, Protection }
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
class StateMachine
|
class StateMachine
|
||||||
{
|
{
|
||||||
@@ -12,11 +12,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Mods.Common.Activities;
|
using OpenRA.Mods.Common.Activities;
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.Activities;
|
|
||||||
using OpenRA.Mods.RA.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
abstract class AirStateBase : StateBase
|
abstract class AirStateBase : StateBase
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
abstract class GroundStateBase : StateBase
|
abstract class GroundStateBase : StateBase
|
||||||
{
|
{
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
class UnitsForProtectionIdleState : GroundStateBase, IState
|
class UnitsForProtectionIdleState : GroundStateBase, IState
|
||||||
{
|
{
|
||||||
@@ -13,11 +13,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Mods.Common.Activities;
|
using OpenRA.Mods.Common.Activities;
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.Activities;
|
|
||||||
using OpenRA.Mods.RA.Traits;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA.AI
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
abstract class StateBase
|
abstract class StateBase
|
||||||
{
|
{
|
||||||
@@ -8,16 +8,12 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using OpenRA;
|
|
||||||
using OpenRA.Mods.Common.Traits;
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Mods.RA.AI;
|
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.Common.AI
|
||||||
{
|
{
|
||||||
[Desc("Adds metadata for the AI bots.")]
|
[Desc("Adds metadata for the AI bots.")]
|
||||||
public class SupportPowerDecision
|
public class SupportPowerDecision
|
||||||
@@ -31,6 +31,10 @@
|
|||||||
</CustomCommands>
|
</CustomCommands>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Reference Include="FuzzyLogicLibrary">
|
||||||
|
<HintPath>..\thirdparty\FuzzyLogicLibrary.dll</HintPath>
|
||||||
|
<Private>False</Private>
|
||||||
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
@@ -113,6 +117,17 @@
|
|||||||
<Compile Include="Activities\UnloadCargo.cs" />
|
<Compile Include="Activities\UnloadCargo.cs" />
|
||||||
<Compile Include="Activities\Wait.cs" />
|
<Compile Include="Activities\Wait.cs" />
|
||||||
<Compile Include="ActorExts.cs" />
|
<Compile Include="ActorExts.cs" />
|
||||||
|
<Compile Include="AI\AttackOrFleeFuzzy.cs" />
|
||||||
|
<Compile Include="AI\BaseBuilder.cs" />
|
||||||
|
<Compile Include="AI\HackyAI.cs" />
|
||||||
|
<Compile Include="AI\RushFuzzy.cs" />
|
||||||
|
<Compile Include="AI\Squad.cs" />
|
||||||
|
<Compile Include="AI\StateMachine.cs" />
|
||||||
|
<Compile Include="AI\States\AirStates.cs" />
|
||||||
|
<Compile Include="AI\States\GroundStates.cs" />
|
||||||
|
<Compile Include="AI\States\ProtectionStates.cs" />
|
||||||
|
<Compile Include="AI\States\StateBase.cs" />
|
||||||
|
<Compile Include="AI\SupportPowerDecision.cs" />
|
||||||
<Compile Include="Effects\Beacon.cs" />
|
<Compile Include="Effects\Beacon.cs" />
|
||||||
<Compile Include="Effects\Bullet.cs" />
|
<Compile Include="Effects\Bullet.cs" />
|
||||||
<Compile Include="Effects\Contrail.cs" />
|
<Compile Include="Effects\Contrail.cs" />
|
||||||
@@ -520,8 +535,6 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/common/"
|
<PostBuildEvent>mkdir "$(SolutionDir)mods/common/"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/common/"
|
copy "$(TargetPath)" "$(SolutionDir)mods/common/"
|
||||||
cd "$(SolutionDir)thirdparty/"
|
|
||||||
copy "FuzzyLogicLibrary.dll" "$(SolutionDir)"
|
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
cd "$(SolutionDir)"</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
|||||||
@@ -40,7 +40,6 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CustomCommands>
|
<CustomCommands>
|
||||||
<CustomCommands>
|
<CustomCommands>
|
||||||
<Command type="AfterBuild" command="cp ../thirdparty/FuzzyLogicLibrary.dll ../" workingdir="${ProjectDir}" />
|
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ra" workingdir="${ProjectDir}" />
|
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/ra" workingdir="${ProjectDir}" />
|
||||||
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ra" workingdir="${ProjectDir}" />
|
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/ra" workingdir="${ProjectDir}" />
|
||||||
</CustomCommands>
|
</CustomCommands>
|
||||||
@@ -49,10 +48,6 @@
|
|||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="FuzzyLogicLibrary">
|
|
||||||
<HintPath>..\thirdparty\FuzzyLogicLibrary.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
@@ -70,24 +65,18 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AI\AttackOrFleeFuzzy.cs" />
|
|
||||||
<Compile Include="AI\BaseBuilder.cs" />
|
|
||||||
<Compile Include="AI\HackyAI.cs" />
|
|
||||||
<Compile Include="Traits\AcceptsSupplies.cs" />
|
<Compile Include="Traits\AcceptsSupplies.cs" />
|
||||||
<Compile Include="Activities\DonateSupplies.cs" />
|
<Compile Include="Activities\DonateSupplies.cs" />
|
||||||
<Compile Include="Activities\Infiltrate.cs" />
|
<Compile Include="Activities\Infiltrate.cs" />
|
||||||
<Compile Include="Activities\LayMines.cs" />
|
<Compile Include="Activities\LayMines.cs" />
|
||||||
<Compile Include="Activities\Leap.cs" />
|
<Compile Include="Activities\Leap.cs" />
|
||||||
<Compile Include="Activities\Teleport.cs" />
|
<Compile Include="Activities\Teleport.cs" />
|
||||||
<Compile Include="AI\SupportPowerDecision.cs" />
|
|
||||||
<Compile Include="Effects\GpsSatellite.cs" />
|
<Compile Include="Effects\GpsSatellite.cs" />
|
||||||
<Compile Include="Effects\SatelliteLaunch.cs" />
|
<Compile Include="Effects\SatelliteLaunch.cs" />
|
||||||
<Compile Include="Effects\TeslaZap.cs" />
|
<Compile Include="Effects\TeslaZap.cs" />
|
||||||
<Compile Include="Traits\Render\RenderUnitReload.cs" />
|
<Compile Include="Traits\Render\RenderUnitReload.cs" />
|
||||||
<Compile Include="Graphics\TeslaZapRenderable.cs" />
|
<Compile Include="Graphics\TeslaZapRenderable.cs" />
|
||||||
<Compile Include="Traits\EjectOnDeath.cs" />
|
<Compile Include="Traits\EjectOnDeath.cs" />
|
||||||
<Compile Include="AI\RushFuzzy.cs" />
|
|
||||||
<Compile Include="AI\StateMachine.cs" />
|
|
||||||
<Compile Include="Traits\Attack\AttackLeap.cs" />
|
<Compile Include="Traits\Attack\AttackLeap.cs" />
|
||||||
<Compile Include="Traits\PaletteEffects\ChronoshiftPaletteEffect.cs" />
|
<Compile Include="Traits\PaletteEffects\ChronoshiftPaletteEffect.cs" />
|
||||||
<Compile Include="Traits\Chronoshiftable.cs" />
|
<Compile Include="Traits\Chronoshiftable.cs" />
|
||||||
@@ -136,11 +125,6 @@
|
|||||||
<Compile Include="Widgets\Logic\CreditsLogic.cs" />
|
<Compile Include="Widgets\Logic\CreditsLogic.cs" />
|
||||||
<Compile Include="Widgets\Logic\SimpleTooltipLogic.cs" />
|
<Compile Include="Widgets\Logic\SimpleTooltipLogic.cs" />
|
||||||
<Compile Include="Widgets\Logic\WorldTooltipLogic.cs" />
|
<Compile Include="Widgets\Logic\WorldTooltipLogic.cs" />
|
||||||
<Compile Include="AI\Squad.cs" />
|
|
||||||
<Compile Include="AI\States\StateBase.cs" />
|
|
||||||
<Compile Include="AI\States\GroundStates.cs" />
|
|
||||||
<Compile Include="AI\States\ProtectionStates.cs" />
|
|
||||||
<Compile Include="AI\States\AirStates.cs" />
|
|
||||||
<Compile Include="Widgets\Logic\InstallLogic.cs" />
|
<Compile Include="Widgets\Logic\InstallLogic.cs" />
|
||||||
<Compile Include="CombatDebugOverlay.cs" />
|
<Compile Include="CombatDebugOverlay.cs" />
|
||||||
<Compile Include="Widgets\Logic\GameTimerLogic.cs" />
|
<Compile Include="Widgets\Logic\GameTimerLogic.cs" />
|
||||||
@@ -204,8 +188,6 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>mkdir "$(SolutionDir)mods/ra/"
|
<PostBuildEvent>mkdir "$(SolutionDir)mods/ra/"
|
||||||
copy "$(TargetPath)" "$(SolutionDir)mods/ra/"
|
copy "$(TargetPath)" "$(SolutionDir)mods/ra/"
|
||||||
cd "$(SolutionDir)thirdparty/"
|
|
||||||
copy "FuzzyLogicLibrary.dll" "$(SolutionDir)"
|
|
||||||
cd "$(SolutionDir)"</PostBuildEvent>
|
cd "$(SolutionDir)"</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user