EmitInfantryOnSell moved to RA

This commit is contained in:
Chris Forbes
2010-05-20 17:56:44 +12:00
parent 342ef2a498
commit 248eba20fa
6 changed files with 31 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ using OpenRA.Traits;
namespace OpenRA.GameRules
{
static class Footprint
public static class Footprint
{
public static IEnumerable<int2> Tiles( string name, BuildingInfo buildingInfo, int2 topLeft )
{

View File

@@ -82,7 +82,6 @@
<Compile Include="Group.cs" />
<Compile Include="Orders\GenericSelectTarget.cs" />
<Compile Include="Traits\Activities\Leap.cs" />
<Compile Include="Traits\AI\EmitInfantryOnSell.cs" />
<Compile Include="Traits\AI\ReturnOnIdle.cs" />
<Compile Include="Traits\Attack\AttackLeap.cs" />
<Compile Include="Traits\DetectCloaked.cs" />

View File

@@ -20,7 +20,7 @@
namespace OpenRA.Traits
{
class ValuedInfo : ITraitInfo
public class ValuedInfo : ITraitInfo
{
public readonly int Cost = 0;
public readonly string Description = "";

View File

@@ -23,10 +23,10 @@ namespace OpenRA.Traits
// allow a nonstandard sell/repair value to avoid
// buy-sell exploits like c&c's PROC.
class CustomSellValueInfo : TraitInfo<CustomSellValue>
public class CustomSellValueInfo : TraitInfo<CustomSellValue>
{
public readonly int Value = 0;
}
class CustomSellValue {}
public class CustomSellValue { }
}

View File

@@ -1,16 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRA.GameRules;
#region Copyright & License Information
/*
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
* This file is part of OpenRA.
*
* OpenRA is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenRA is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with OpenRA. If not, see <http://www.gnu.org/licenses/>.
*/
#endregion
namespace OpenRA.Traits.AI
using System;
using System.Linq;
using OpenRA.GameRules;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
class EmitInfantryOnSellInfo : TraitInfo<EmitInfantryOnSell>
{
public readonly float ValueFraction = .4f;
public readonly float MinHpFraction = .3f;
public readonly string[] ActorTypes = { "e1" }; // todo: cN as well
public readonly string[] ActorTypes = { "e1" };
}
class EmitInfantryOnSell : INotifySold, INotifyDamage

View File

@@ -65,6 +65,7 @@
<Compile Include="Crates\SupportPowerCrateAction.cs" />
<Compile Include="Effects\NukeLaunch.cs" />
<Compile Include="Activities\Harvest.cs" />
<Compile Include="EmitInfantryOnSell.cs" />
<Compile Include="Harvester.cs" />
<Compile Include="HasUnitOnBuild.cs" />
<Compile Include="Husk.cs" />