renamed OpenRa.Game.* to OpenRa.*; a few other bits

This commit is contained in:
Chris Forbes
2010-01-17 09:30:53 +13:00
parent eebb9cdd63
commit 59c0791d93
215 changed files with 645 additions and 519 deletions

View File

@@ -2,14 +2,14 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.Game.Traits.Activities;
using OpenRa.GameRules;
using OpenRa.Traits;
using OpenRa.Traits.Activities;
using OpenRa.FileFormats;
namespace OpenRa.Game
namespace OpenRa
{
class Actor
public class Actor
{
[Sync]
public readonly TypeDictionary traits = new TypeDictionary();

View File

@@ -1,9 +1,9 @@
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
class BuildingInfluenceMap
public class BuildingInfluenceMap
{
bool[,] blocked = new bool[128, 128];
Actor[,] influence = new Actor[128, 128];

View File

@@ -2,7 +2,7 @@
using System.Drawing;
using OpenRa.FileFormats;
namespace OpenRa.Game
namespace OpenRa
{
class Chat
{

View File

@@ -4,12 +4,12 @@ using System.Drawing;
using System.Linq;
using IjwFramework.Types;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
using OpenRa.Game.Orders;
using OpenRa.Game.Support;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Orders;
using OpenRa.Support;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
class Chrome : IHandleInput
{
@@ -126,7 +126,7 @@ namespace OpenRa.Game
tabImageNames = groups.Select(
(g, i) => Pair.New(g,
OpenRa.Game.Graphics.Util.MakeArray(3,
OpenRa.Graphics.Util.MakeArray(3,
n => i.ToString())))
.ToDictionary(a => a.First, a => a.Second);

View File

@@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.GameRules;
using OpenRa.Game.Effects;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Effects;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
static class Combat /* some utility bits that are shared between various things */
{

View File

@@ -3,14 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using IjwFramework.Collections;
using IjwFramework.Types;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Orders;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Orders;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
class Controller : IHandleInput
public class Controller : IHandleInput
{
public IOrderGenerator orderGenerator;

View File

@@ -1,8 +1,8 @@
using OpenRa.Game.Graphics;
using OpenRa.Graphics;
namespace OpenRa.Game
namespace OpenRa
{
class Cursor
public class Cursor
{
CursorSequence sequence;
Cursor(string cursor)

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class Bullet : IEffect
{

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class Corpse : IEffect
{

View File

@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class DelayedAction : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class Explosion : IEffect
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.Traits;
using OpenRa.Game.Graphics;
using OpenRa.Traits;
using OpenRa.Graphics;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class FlashTarget : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class GpsSatellite : IEffect
{

View File

@@ -1,10 +1,10 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
interface IEffect
public interface IEffect
{
void Tick();
IEnumerable<Renderable> Render();

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class InvulnEffect : IEffect
{

View File

@@ -1,10 +1,10 @@
using System.Collections.Generic;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Traits;
using System;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class Missile : IEffect
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class MoveFlash : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class PowerDownIndicator : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class RepairIndicator : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class SatelliteLaunch : IEffect
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class Smoke : IEffect
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Effects
namespace OpenRa.Effects
{
class TeslaZap : IEffect
{

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
static class Exts
{

View File

@@ -4,28 +4,28 @@ using System.Drawing;
using System.Linq;
using System.Net.Sockets;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Orders;
using OpenRa.Game.Support;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Orders;
using OpenRa.Support;
using OpenRa.Traits;
using IjwFramework.Types;
namespace OpenRa.Game
namespace OpenRa
{
static class Game
public static class Game
{
public static readonly int CellSize = 24;
public static World world;
public static Viewport viewport;
internal static Viewport viewport;
public static PathFinder PathFinder;
public static WorldRenderer worldRenderer;
internal static WorldRenderer worldRenderer;
public static Controller controller;
public static Chrome chrome;
internal static Chrome chrome;
public static UserSettings Settings;
public static OrderManager orderManager;
internal static OrderManager orderManager;
static int localPlayerIndex;
@@ -50,9 +50,9 @@ namespace OpenRa.Game
static int2 clientSize;
static HardwarePalette palette;
static string mapName;
public static Minimap minimap;
public static Session LobbyInfo = new Session();
public static int2[] SpawnPoints;
internal static Minimap minimap;
internal static Session LobbyInfo = new Session();
internal static int2[] SpawnPoints;
static bool changePending;
public static void ChangeMap(string mapName)
@@ -115,7 +115,7 @@ namespace OpenRa.Game
.ToArray();
}
public static void Initialize(string mapName, Renderer renderer, int2 clientSize,
internal static void Initialize(string mapName, Renderer renderer, int2 clientSize,
int localPlayer, bool useAftermath, Controller controller)
{
localPlayerIndex = localPlayer;
@@ -169,7 +169,7 @@ namespace OpenRa.Game
static int oreTicks;
public static int RenderFrame = 0;
public static Chat chat = new Chat();
internal static Chat chat = new Chat();
public static void Tick()
{

View File

@@ -1,5 +1,5 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class AftermathInfo
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
public enum ArmorType
{

View File

@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
static class Footprint
{

View File

@@ -1,6 +1,6 @@

using System;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class GeneralInfo
{

View File

@@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.FileFormats;
using OpenRa.Game.Graphics;
using OpenRa.Graphics;
using IjwFramework.Types;
using System.Collections;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class InfoLoader<T> : IEnumerable<KeyValuePair<string, T>>
{

View File

@@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using OpenRa.FileFormats;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class NewUnitInfo
public class NewUnitInfo
{
public readonly string Name;
public readonly string Category;

View File

@@ -1,5 +1,5 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class ProjectileInfo
{

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using IjwFramework.Types;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.GameRules;
namespace OpenRa.Game
namespace OpenRa
{
static class Rules
{

View File

@@ -1,5 +1,5 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
public class SupportPowerInfo
{

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using IjwFramework.Collections;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class TechTree
{

View File

@@ -1,7 +1,7 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class UserSettings
public class UserSettings
{
// Debug settings
public readonly bool UnitDebug = false;

View File

@@ -5,7 +5,7 @@ using System.Text;
using IjwFramework.Types;
using IjwFramework.Collections;
namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class VoiceInfo
{

View File

@@ -1,7 +1,7 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class WarheadInfo
public class WarheadInfo
{
public readonly int Spread = 1;
public readonly float[] Verses = { 1, 1, 1, 1, 1 };

View File

@@ -1,5 +1,5 @@

namespace OpenRa.Game.GameRules
namespace OpenRa.GameRules
{
class WeaponInfo
{

View File

@@ -1,6 +1,6 @@
using System;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Animation
{

View File

@@ -1,6 +1,6 @@
using System.Xml;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class CursorSequence
{

View File

@@ -2,7 +2,7 @@
using IjwFramework.Collections;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
static class CursorSheetBuilder
{

View File

@@ -1,7 +1,7 @@
using System.Drawing;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
public enum PaletteType
{

View File

@@ -1,7 +1,7 @@
using System.Drawing;
using Ijw.DirectX;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class LineRenderer
{

View File

@@ -2,7 +2,7 @@
using System.Drawing;
using Ijw.DirectX;
using System.IO;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class MappedImage
{

View File

@@ -1,11 +1,11 @@
using System;
using System.Drawing;
using System.Linq;
using OpenRa.Game.Traits;
using OpenRa.Traits;
using OpenRa.FileFormats;
using System.Drawing.Imaging;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Minimap
{

View File

@@ -1,7 +1,7 @@
using System.Linq;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class OverlayRenderer
{

View File

@@ -2,11 +2,11 @@ using System.Drawing;
using System.Windows.Forms;
using Ijw.DirectX;
using OpenRa.FileFormats;
using OpenRa.Game.Support;
using OpenRa.Support;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Renderer
internal class Renderer
{
internal static int SheetSize;

View File

@@ -1,7 +1,7 @@
using System.Xml;
using Ijw.DirectX;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Sequence
{

View File

@@ -4,7 +4,7 @@ using System.Xml;
using OpenRa.FileFormats;
using System;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
static class SequenceProvider
{

View File

@@ -2,22 +2,22 @@ using System.Drawing;
using Ijw.DirectX;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Sheet
public class Sheet
{
readonly Renderer renderer;
protected readonly Bitmap bitmap;
Texture texture;
public Sheet(Renderer renderer, Size size)
internal Sheet(Renderer renderer, Size size)
{
this.renderer = renderer;
this.bitmap = new Bitmap(size.Width, size.Height);
}
public Sheet(Renderer renderer, string filename)
internal Sheet(Renderer renderer, string filename)
{
this.renderer = renderer;
this.bitmap = (Bitmap)Image.FromStream(FileSystem.Open(filename));

View File

@@ -1,6 +1,6 @@
using System.Drawing;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
static class SheetBuilder
{

View File

@@ -1,8 +1,8 @@
using System.Drawing;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class Sprite
public class Sprite
{
public readonly Rectangle bounds;
public readonly Sheet sheet;

View File

@@ -1,6 +1,6 @@
using Ijw.DirectX;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class SpriteRenderer
{

View File

@@ -2,7 +2,7 @@ using System.Linq;
using IjwFramework.Collections;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
static class SpriteSheetBuilder
{

View File

@@ -3,7 +3,7 @@ using Ijw.DirectX;
using IjwFramework.Collections;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class TerrainRenderer
{

View File

@@ -4,7 +4,7 @@ using System.Drawing.Imaging;
using System.IO;
using System.Drawing;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
static class Util
{

View File

@@ -1,7 +1,7 @@
using System.Runtime.InteropServices;
using Ijw.DirectX;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
[StructLayout(LayoutKind.Sequential)]
struct Vertex

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
interface IHandleInput
{

View File

@@ -4,11 +4,11 @@ using System.Linq;
using System.Windows.Forms;
using IjwFramework.Types;
using System.Collections.Generic;
using OpenRa.Game.Traits;
using OpenRa.Game.Support;
using OpenRa.Game.Effects;
using OpenRa.Traits;
using OpenRa.Support;
using OpenRa.Effects;
namespace OpenRa.Game.Graphics
namespace OpenRa.Graphics
{
class WorldRenderer
{

View File

@@ -4,12 +4,12 @@ using System.IO;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Orders;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Orders;
namespace OpenRa.Game
namespace OpenRa
{
class MainWindow : Form
{
@@ -183,7 +183,7 @@ namespace OpenRa.Game
}
[Flags]
enum MouseButton
public enum MouseButton
{
None = (int)MouseButtons.None,
Left = (int)MouseButtons.Left,
@@ -192,7 +192,7 @@ namespace OpenRa.Game
}
[Flags]
enum Modifiers
public enum Modifiers
{
None = (int)Keys.None,
Shift = (int)Keys.Shift,
@@ -200,7 +200,7 @@ namespace OpenRa.Game
Ctrl = (int)Keys.Control,
}
struct MouseInput
public struct MouseInput
{
public MouseInputEvent Event;
public int2 Location;
@@ -208,5 +208,5 @@ namespace OpenRa.Game
public Modifiers Modifiers;
}
enum MouseInputEvent { Down, Move, Up };
public enum MouseInputEvent { Down, Move, Up };
}

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using OpenRa.Game.Traits;
using OpenRa.Game.SupportPowers;
using OpenRa.Traits;
using OpenRa.SupportPowers;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class ChronoshiftDestinationOrderGenerator : IOrderGenerator
{

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using OpenRa.Game.Traits;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class ChronoshiftSelfDestinationOrderGenerator : IOrderGenerator
{

View File

@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.Game.SupportPowers;
using OpenRa.GameRules;
using OpenRa.Traits;
using OpenRa.SupportPowers;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class ChronosphereSelectOrderGenerator : IOrderGenerator
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
namespace OpenRa.Game
namespace OpenRa
{
interface IOrderGenerator
public interface IOrderGenerator
{
IEnumerable<Order> Order( int2 xy, MouseInput mi );
void Tick();

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
interface IOrderSource
{

View File

@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.Game.SupportPowers;
using OpenRa.GameRules;
using OpenRa.Traits;
using OpenRa.SupportPowers;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class IronCurtainOrderGenerator : IOrderGenerator
{

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class LocalOrderSource : IOrderSource
{

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Net.Sockets;
using System.Threading;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class NetworkOrderSource : IOrderSource
{

View File

@@ -1,11 +1,11 @@
using System;
using System.IO;
using System.Linq;
using OpenRa.Game.SupportPowers;
using OpenRa.SupportPowers;
namespace OpenRa.Game
namespace OpenRa
{
sealed class Order
public sealed class Order
{
public readonly string OrderString;
readonly uint SubjectId;

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
static class OrderIO
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class OrderManager
{

View File

@@ -1,8 +1,8 @@
using System.Collections.Generic;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class PlaceBuildingOrderGenerator : IOrderGenerator
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class PowerDownOrderGenerator : IOrderGenerator
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class RepairOrderGenerator : IOrderGenerator
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class ReplayOrderSource : IOrderSource
{

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class SellOrderGenerator : IOrderGenerator
{

View File

@@ -1,10 +1,10 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using OpenRa.Game.Traits;
using OpenRa.Game.GameRules;
using OpenRa.Traits;
using OpenRa.GameRules;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
class UnitOrderGenerator : IOrderGenerator
{

View File

@@ -1,10 +1,10 @@
using System.Drawing;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game.Orders
namespace OpenRa.Orders
{
static class UnitOrders
{

View File

@@ -1,7 +1,7 @@
using System;
using OpenRa.FileFormats;
namespace OpenRa.Game
namespace OpenRa
{
public static class Ore
{

View File

@@ -6,7 +6,7 @@ using System.Security.Cryptography;
using OpenRa.FileFormats;
using System.Drawing;
namespace OpenRa.Game
namespace OpenRa
{
static class PackageDownloader
{

View File

@@ -2,12 +2,12 @@ using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.FileFormats;
using OpenRa.Game.Support;
using OpenRa.Game.Traits;
using OpenRa.Support;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
class PathFinder
public class PathFinder
{
float[][,] passableCost = new float[4][,];
@@ -173,7 +173,7 @@ namespace OpenRa.Game
}
}
struct CellInfo
public struct CellInfo
{
public float MinCost;
public int2 Path;
@@ -187,7 +187,7 @@ namespace OpenRa.Game
}
}
struct PathDistance : IComparable<PathDistance>
public struct PathDistance : IComparable<PathDistance>
{
public float EstTotal;
public int2 Location;

View File

@@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Linq;
using IjwFramework.Collections;
using OpenRa.Game.Graphics;
using OpenRa.Graphics;
namespace OpenRa.Game
namespace OpenRa
{
class PathSearch
public class PathSearch
{
public CellInfo[ , ] cellInfo;
public PriorityQueue<PathDistance> queue;

View File

@@ -1,16 +1,16 @@
using System;
using System.Linq;
using System.Collections.Generic;
using OpenRa.Game.GameRules;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Graphics;
using OpenRa.Traits;
using OpenRa.FileFormats;
namespace OpenRa.Game
namespace OpenRa
{
enum PowerState { Normal, Low, Critical };
public enum PowerState { Normal, Low, Critical };
class Player
public class Player
{
public Actor PlayerActor;
public PaletteType Palette;

View File

@@ -1,6 +1,6 @@
using System;
namespace OpenRa.Game
namespace OpenRa
{
class ProductionItem
{

View File

@@ -2,11 +2,11 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("OpenRa.Game")]
[assembly: AssemblyTitle("OpenRa")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OpenRa.Game")]
[assembly: AssemblyProduct("OpenRa")]
[assembly: AssemblyCopyright("Copyright © 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@@ -1,6 +1,6 @@
using System;
namespace OpenRa.Game
namespace OpenRa
{
[Flags]
public enum Race

View File

@@ -3,12 +3,12 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using IjwFramework.Types;
using OpenRa.Game.Graphics;
using OpenRa.Game.Traits;
using OpenRa.Graphics;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
class Shroud
public class Shroud
{
bool[,] explored = new bool[128, 128];
Sprite[] shadowBits = SpriteSheetBuilder.LoadAllSprites("shadow");
@@ -132,7 +132,7 @@ namespace OpenRa.Game
return shadowBits[ SpecialShroudTiles[ u ^ uSides ][ v ] ];
}
public void Draw(SpriteRenderer r)
internal void Draw(SpriteRenderer r)
{
if (dirty)
{

View File

@@ -1,6 +1,6 @@
using OpenRa.Game.GameRules;
using OpenRa.GameRules;
namespace OpenRa.Game
namespace OpenRa
{
static class Smudge
{

View File

@@ -1,10 +1,10 @@
using IjwFramework.Collections;
using IrrKlang;
using OpenRa.FileFormats;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
static class Sound
{

View File

@@ -1,6 +1,6 @@
using System.IO;
namespace OpenRa.Game
namespace OpenRa
{
static class Log
{

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using IjwFramework.Collections;
using OpenRa.Game.Graphics;
using OpenRa.Graphics;
namespace OpenRa.Game.Support
namespace OpenRa.Support
{
static class PerfHistory
{

View File

@@ -1,7 +1,7 @@
using System;
using System.Diagnostics;
namespace OpenRa.Game
namespace OpenRa
{
static class Program
{

View File

@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace OpenRa.Game
namespace OpenRa
{
class Settings
{

View File

@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;
namespace OpenRa.Game.Support
namespace OpenRa.Support
{
class Stopwatch
{

View File

@@ -1,14 +1,14 @@
using System;
using System.Linq;
using OpenRa.Game.GameRules;
using OpenRa.Game.SupportPowers;
using OpenRa.Game.Traits;
using OpenRa.GameRules;
using OpenRa.SupportPowers;
using OpenRa.Traits;
namespace OpenRa.Game
namespace OpenRa
{
// todo: fix this to route Activate through the orders system (otherwise desync in netplay)
class SupportPower
public class SupportPower
{
public readonly SupportPowerInfo Info;
public readonly Player Owner;

View File

@@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Linq;
using System.Drawing;
using OpenRa.Game.Orders;
using OpenRa.Game.Traits;
using OpenRa.Orders;
using OpenRa.Traits;
namespace OpenRa.Game.SupportPowers
namespace OpenRa.SupportPowers
{
class ChronospherePower : ISupportPowerImpl
{

View File

@@ -1,8 +1,8 @@
using System.Linq;
using OpenRa.Game.Effects;
using OpenRa.Game.Traits;
using OpenRa.Effects;
using OpenRa.Traits;
namespace OpenRa.Game.SupportPowers
namespace OpenRa.SupportPowers
{
class GpsSatellite : ISupportPowerImpl
{

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.SupportPowers
namespace OpenRa.SupportPowers
{
interface ISupportPowerImpl
public interface ISupportPowerImpl
{
void Activate(SupportPower p);
void OnFireNotification(Actor target, int2 xy);

View File

@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRa.Game.Orders;
using OpenRa.Game.Traits;
using OpenRa.Orders;
using OpenRa.Traits;
namespace OpenRa.Game.SupportPowers
namespace OpenRa.SupportPowers
{
class IronCurtainPower : ISupportPowerImpl
{

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Game.SupportPowers
namespace OpenRa.SupportPowers
{
class NullPower : ISupportPowerImpl
{

Some files were not shown because too many files have changed in this diff Show More