Update copyright header. Normalize line endings to LF.

This commit is contained in:
Paul Chote
2011-02-13 10:38:57 +13:00
parent ea5e2c0588
commit 094907c1a9
489 changed files with 43614 additions and 43613 deletions

View File

@@ -1,21 +1,21 @@
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
* see COPYING.
*/
#endregion
using OpenRA.Mods.RA.Render;
#endregion
using OpenRA.Mods.RA.Render;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
class IdleAnimationInfo : ITraitInfo, ITraitPrerequisite<RenderInfantryInfo>
{
public readonly int MinIdleWaitTicks = 30;
public readonly int MinIdleWaitTicks = 30;
public readonly int MaxIdleWaitTicks = 110;
public readonly string[] Animations = {};
public object Create(ActorInitializer init) { return new IdleAnimation(this); }
@@ -53,19 +53,19 @@ namespace OpenRA.Mods.RA
else if (delay > 0 && --delay == 0)
{
state = IdleState.Active;
var ri = self.TraitOrDefault<RenderInfantry>();
if (ri.anim.HasSequence(sequence))
{
ri.anim.PlayThen(sequence,
() =>
{
state = IdleState.None;
ri.anim.PlayRepeating("stand");
});
}
else
state = IdleState.Active;
var ri = self.TraitOrDefault<RenderInfantry>();
if (ri.anim.HasSequence(sequence))
{
ri.anim.PlayThen(sequence,
() =>
{
state = IdleState.None;
ri.anim.PlayRepeating("stand");
});
}
else
state = IdleState.None;
}
}
@@ -76,7 +76,7 @@ namespace OpenRA.Mods.RA
return;
state = IdleState.Waiting;
sequence = Info.Animations.Random(self.World.SharedRandom);
sequence = Info.Animations.Random(self.World.SharedRandom);
delay = self.World.SharedRandom.Next(Info.MinIdleWaitTicks, Info.MaxIdleWaitTicks);
}
}