renamed OpenRa.Game.* to OpenRa.*; a few other bits
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.Traits.Activities;
|
using OpenRa.Traits.Activities;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Actor
|
public class Actor
|
||||||
{
|
{
|
||||||
[Sync]
|
[Sync]
|
||||||
public readonly TypeDictionary traits = new TypeDictionary();
|
public readonly TypeDictionary traits = new TypeDictionary();
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class BuildingInfluenceMap
|
public class BuildingInfluenceMap
|
||||||
{
|
{
|
||||||
bool[,] blocked = new bool[128, 128];
|
bool[,] blocked = new bool[128, 128];
|
||||||
Actor[,] influence = new Actor[128, 128];
|
Actor[,] influence = new Actor[128, 128];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Chat
|
class Chat
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
using OpenRa.Game.Support;
|
using OpenRa.Support;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Chrome : IHandleInput
|
class Chrome : IHandleInput
|
||||||
{
|
{
|
||||||
@@ -126,7 +126,7 @@ namespace OpenRa.Game
|
|||||||
|
|
||||||
tabImageNames = groups.Select(
|
tabImageNames = groups.Select(
|
||||||
(g, i) => Pair.New(g,
|
(g, i) => Pair.New(g,
|
||||||
OpenRa.Game.Graphics.Util.MakeArray(3,
|
OpenRa.Graphics.Util.MakeArray(3,
|
||||||
n => i.ToString())))
|
n => i.ToString())))
|
||||||
.ToDictionary(a => a.First, a => a.Second);
|
.ToDictionary(a => a.First, a => a.Second);
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Effects;
|
using OpenRa.Effects;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Combat /* some utility bits that are shared between various things */
|
static class Combat /* some utility bits that are shared between various things */
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Controller : IHandleInput
|
public class Controller : IHandleInput
|
||||||
{
|
{
|
||||||
public IOrderGenerator orderGenerator;
|
public IOrderGenerator orderGenerator;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Cursor
|
public class Cursor
|
||||||
{
|
{
|
||||||
CursorSequence sequence;
|
CursorSequence sequence;
|
||||||
Cursor(string cursor)
|
Cursor(string cursor)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class Bullet : IEffect
|
class Bullet : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class Corpse : IEffect
|
class Corpse : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class DelayedAction : IEffect
|
class DelayedAction : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class Explosion : IEffect
|
class Explosion : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class FlashTarget : IEffect
|
class FlashTarget : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class GpsSatellite : IEffect
|
class GpsSatellite : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
interface IEffect
|
public interface IEffect
|
||||||
{
|
{
|
||||||
void Tick();
|
void Tick();
|
||||||
IEnumerable<Renderable> Render();
|
IEnumerable<Renderable> Render();
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class InvulnEffect : IEffect
|
class InvulnEffect : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class Missile : IEffect
|
class Missile : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class MoveFlash : IEffect
|
class MoveFlash : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class PowerDownIndicator : IEffect
|
class PowerDownIndicator : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class RepairIndicator : IEffect
|
class RepairIndicator : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class SatelliteLaunch : IEffect
|
class SatelliteLaunch : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class Smoke : IEffect
|
class Smoke : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Effects
|
namespace OpenRa.Effects
|
||||||
{
|
{
|
||||||
class TeslaZap : IEffect
|
class TeslaZap : IEffect
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Exts
|
static class Exts
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,28 +4,28 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
using OpenRa.Game.Support;
|
using OpenRa.Support;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Game
|
public static class Game
|
||||||
{
|
{
|
||||||
public static readonly int CellSize = 24;
|
public static readonly int CellSize = 24;
|
||||||
|
|
||||||
public static World world;
|
public static World world;
|
||||||
public static Viewport viewport;
|
internal static Viewport viewport;
|
||||||
public static PathFinder PathFinder;
|
public static PathFinder PathFinder;
|
||||||
public static WorldRenderer worldRenderer;
|
internal static WorldRenderer worldRenderer;
|
||||||
public static Controller controller;
|
public static Controller controller;
|
||||||
public static Chrome chrome;
|
internal static Chrome chrome;
|
||||||
public static UserSettings Settings;
|
public static UserSettings Settings;
|
||||||
|
|
||||||
public static OrderManager orderManager;
|
internal static OrderManager orderManager;
|
||||||
|
|
||||||
static int localPlayerIndex;
|
static int localPlayerIndex;
|
||||||
|
|
||||||
@@ -50,9 +50,9 @@ namespace OpenRa.Game
|
|||||||
static int2 clientSize;
|
static int2 clientSize;
|
||||||
static HardwarePalette palette;
|
static HardwarePalette palette;
|
||||||
static string mapName;
|
static string mapName;
|
||||||
public static Minimap minimap;
|
internal static Minimap minimap;
|
||||||
public static Session LobbyInfo = new Session();
|
internal static Session LobbyInfo = new Session();
|
||||||
public static int2[] SpawnPoints;
|
internal static int2[] SpawnPoints;
|
||||||
static bool changePending;
|
static bool changePending;
|
||||||
|
|
||||||
public static void ChangeMap(string mapName)
|
public static void ChangeMap(string mapName)
|
||||||
@@ -115,7 +115,7 @@ namespace OpenRa.Game
|
|||||||
.ToArray();
|
.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)
|
int localPlayer, bool useAftermath, Controller controller)
|
||||||
{
|
{
|
||||||
localPlayerIndex = localPlayer;
|
localPlayerIndex = localPlayer;
|
||||||
@@ -169,7 +169,7 @@ namespace OpenRa.Game
|
|||||||
static int oreTicks;
|
static int oreTicks;
|
||||||
public static int RenderFrame = 0;
|
public static int RenderFrame = 0;
|
||||||
|
|
||||||
public static Chat chat = new Chat();
|
internal static Chat chat = new Chat();
|
||||||
|
|
||||||
public static void Tick()
|
public static void Tick()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class AftermathInfo
|
class AftermathInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
public enum ArmorType
|
public enum ArmorType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
static class Footprint
|
static class Footprint
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class GeneralInfo
|
class GeneralInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class InfoLoader<T> : IEnumerable<KeyValuePair<string, T>>
|
class InfoLoader<T> : IEnumerable<KeyValuePair<string, T>>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.FileFormats;
|
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 Name;
|
||||||
public readonly string Category;
|
public readonly string Category;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class ProjectileInfo
|
class ProjectileInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Rules
|
static class Rules
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
public class SupportPowerInfo
|
public class SupportPowerInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class TechTree
|
class TechTree
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class UserSettings
|
public class UserSettings
|
||||||
{
|
{
|
||||||
// Debug settings
|
// Debug settings
|
||||||
public readonly bool UnitDebug = false;
|
public readonly bool UnitDebug = false;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Text;
|
|||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class VoiceInfo
|
class VoiceInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class WarheadInfo
|
public class WarheadInfo
|
||||||
{
|
{
|
||||||
public readonly int Spread = 1;
|
public readonly int Spread = 1;
|
||||||
public readonly float[] Verses = { 1, 1, 1, 1, 1 };
|
public readonly float[] Verses = { 1, 1, 1, 1, 1 };
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
namespace OpenRa.Game.GameRules
|
namespace OpenRa.GameRules
|
||||||
{
|
{
|
||||||
class WeaponInfo
|
class WeaponInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class Animation
|
class Animation
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class CursorSequence
|
class CursorSequence
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
static class CursorSheetBuilder
|
static class CursorSheetBuilder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
public enum PaletteType
|
public enum PaletteType
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class LineRenderer
|
class LineRenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class MappedImage
|
class MappedImage
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class Minimap
|
class Minimap
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class OverlayRenderer
|
class OverlayRenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ using System.Drawing;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
using OpenRa.FileFormats;
|
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;
|
internal static int SheetSize;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Xml;
|
using System.Xml;
|
||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class Sequence
|
class Sequence
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Xml;
|
|||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
static class SequenceProvider
|
static class SequenceProvider
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,22 +2,22 @@ using System.Drawing;
|
|||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class Sheet
|
public class Sheet
|
||||||
{
|
{
|
||||||
readonly Renderer renderer;
|
readonly Renderer renderer;
|
||||||
protected readonly Bitmap bitmap;
|
protected readonly Bitmap bitmap;
|
||||||
|
|
||||||
Texture texture;
|
Texture texture;
|
||||||
|
|
||||||
public Sheet(Renderer renderer, Size size)
|
internal Sheet(Renderer renderer, Size size)
|
||||||
{
|
{
|
||||||
this.renderer = renderer;
|
this.renderer = renderer;
|
||||||
this.bitmap = new Bitmap(size.Width, size.Height);
|
this.bitmap = new Bitmap(size.Width, size.Height);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Sheet(Renderer renderer, string filename)
|
internal Sheet(Renderer renderer, string filename)
|
||||||
{
|
{
|
||||||
this.renderer = renderer;
|
this.renderer = renderer;
|
||||||
this.bitmap = (Bitmap)Image.FromStream(FileSystem.Open(filename));
|
this.bitmap = (Bitmap)Image.FromStream(FileSystem.Open(filename));
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
static class SheetBuilder
|
static class SheetBuilder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class Sprite
|
public class Sprite
|
||||||
{
|
{
|
||||||
public readonly Rectangle bounds;
|
public readonly Rectangle bounds;
|
||||||
public readonly Sheet sheet;
|
public readonly Sheet sheet;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class SpriteRenderer
|
class SpriteRenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ using System.Linq;
|
|||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
static class SpriteSheetBuilder
|
static class SpriteSheetBuilder
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using Ijw.DirectX;
|
|||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class TerrainRenderer
|
class TerrainRenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Drawing.Imaging;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
static class Util
|
static class Util
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Ijw.DirectX;
|
using Ijw.DirectX;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
struct Vertex
|
struct Vertex
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
interface IHandleInput
|
interface IHandleInput
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ using System.Linq;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.Support;
|
using OpenRa.Support;
|
||||||
using OpenRa.Game.Effects;
|
using OpenRa.Effects;
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Graphics
|
||||||
{
|
{
|
||||||
class WorldRenderer
|
class WorldRenderer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ using System.IO;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
|
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class MainWindow : Form
|
class MainWindow : Form
|
||||||
{
|
{
|
||||||
@@ -183,7 +183,7 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
enum MouseButton
|
public enum MouseButton
|
||||||
{
|
{
|
||||||
None = (int)MouseButtons.None,
|
None = (int)MouseButtons.None,
|
||||||
Left = (int)MouseButtons.Left,
|
Left = (int)MouseButtons.Left,
|
||||||
@@ -192,7 +192,7 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
enum Modifiers
|
public enum Modifiers
|
||||||
{
|
{
|
||||||
None = (int)Keys.None,
|
None = (int)Keys.None,
|
||||||
Shift = (int)Keys.Shift,
|
Shift = (int)Keys.Shift,
|
||||||
@@ -200,7 +200,7 @@ namespace OpenRa.Game
|
|||||||
Ctrl = (int)Keys.Control,
|
Ctrl = (int)Keys.Control,
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MouseInput
|
public struct MouseInput
|
||||||
{
|
{
|
||||||
public MouseInputEvent Event;
|
public MouseInputEvent Event;
|
||||||
public int2 Location;
|
public int2 Location;
|
||||||
@@ -208,5 +208,5 @@ namespace OpenRa.Game
|
|||||||
public Modifiers Modifiers;
|
public Modifiers Modifiers;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum MouseInputEvent { Down, Move, Up };
|
public enum MouseInputEvent { Down, Move, Up };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.SupportPowers;
|
using OpenRa.SupportPowers;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class ChronoshiftDestinationOrderGenerator : IOrderGenerator
|
class ChronoshiftDestinationOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class ChronoshiftSelfDestinationOrderGenerator : IOrderGenerator
|
class ChronoshiftSelfDestinationOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.SupportPowers;
|
using OpenRa.SupportPowers;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class ChronosphereSelectOrderGenerator : IOrderGenerator
|
class ChronosphereSelectOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
interface IOrderGenerator
|
public interface IOrderGenerator
|
||||||
{
|
{
|
||||||
IEnumerable<Order> Order( int2 xy, MouseInput mi );
|
IEnumerable<Order> Order( int2 xy, MouseInput mi );
|
||||||
void Tick();
|
void Tick();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
interface IOrderSource
|
interface IOrderSource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.SupportPowers;
|
using OpenRa.SupportPowers;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class IronCurtainOrderGenerator : IOrderGenerator
|
class IronCurtainOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class LocalOrderSource : IOrderSource
|
class LocalOrderSource : IOrderSource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class NetworkOrderSource : IOrderSource
|
class NetworkOrderSource : IOrderSource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
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;
|
public readonly string OrderString;
|
||||||
readonly uint SubjectId;
|
readonly uint SubjectId;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
static class OrderIO
|
static class OrderIO
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class OrderManager
|
class OrderManager
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class PlaceBuildingOrderGenerator : IOrderGenerator
|
class PlaceBuildingOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class PowerDownOrderGenerator : IOrderGenerator
|
class PowerDownOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class RepairOrderGenerator : IOrderGenerator
|
class RepairOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class ReplayOrderSource : IOrderSource
|
class ReplayOrderSource : IOrderSource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class SellOrderGenerator : IOrderGenerator
|
class SellOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
class UnitOrderGenerator : IOrderGenerator
|
class UnitOrderGenerator : IOrderGenerator
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.Orders
|
namespace OpenRa.Orders
|
||||||
{
|
{
|
||||||
static class UnitOrders
|
static class UnitOrders
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
public static class Ore
|
public static class Ore
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Security.Cryptography;
|
|||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class PackageDownloader
|
static class PackageDownloader
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.Support;
|
using OpenRa.Support;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class PathFinder
|
public class PathFinder
|
||||||
{
|
{
|
||||||
float[][,] passableCost = new float[4][,];
|
float[][,] passableCost = new float[4][,];
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CellInfo
|
public struct CellInfo
|
||||||
{
|
{
|
||||||
public float MinCost;
|
public float MinCost;
|
||||||
public int2 Path;
|
public int2 Path;
|
||||||
@@ -187,7 +187,7 @@ namespace OpenRa.Game
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct PathDistance : IComparable<PathDistance>
|
public struct PathDistance : IComparable<PathDistance>
|
||||||
{
|
{
|
||||||
public float EstTotal;
|
public float EstTotal;
|
||||||
public int2 Location;
|
public int2 Location;
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class PathSearch
|
public class PathSearch
|
||||||
{
|
{
|
||||||
public CellInfo[ , ] cellInfo;
|
public CellInfo[ , ] cellInfo;
|
||||||
public PriorityQueue<PathDistance> queue;
|
public PriorityQueue<PathDistance> queue;
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
using OpenRa.FileFormats;
|
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 Actor PlayerActor;
|
||||||
public PaletteType Palette;
|
public PaletteType Palette;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class ProductionItem
|
class ProductionItem
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
[assembly: AssemblyTitle("OpenRa.Game")]
|
[assembly: AssemblyTitle("OpenRa")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("OpenRa.Game")]
|
[assembly: AssemblyProduct("OpenRa")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2007")]
|
[assembly: AssemblyCopyright("Copyright © 2007")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Race
|
public enum Race
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using IjwFramework.Types;
|
using IjwFramework.Types;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Shroud
|
public class Shroud
|
||||||
{
|
{
|
||||||
bool[,] explored = new bool[128, 128];
|
bool[,] explored = new bool[128, 128];
|
||||||
Sprite[] shadowBits = SpriteSheetBuilder.LoadAllSprites("shadow");
|
Sprite[] shadowBits = SpriteSheetBuilder.LoadAllSprites("shadow");
|
||||||
@@ -132,7 +132,7 @@ namespace OpenRa.Game
|
|||||||
return shadowBits[ SpecialShroudTiles[ u ^ uSides ][ v ] ];
|
return shadowBits[ SpecialShroudTiles[ u ^ uSides ][ v ] ];
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(SpriteRenderer r)
|
internal void Draw(SpriteRenderer r)
|
||||||
{
|
{
|
||||||
if (dirty)
|
if (dirty)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Smudge
|
static class Smudge
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using IrrKlang;
|
using IrrKlang;
|
||||||
using OpenRa.FileFormats;
|
using OpenRa.FileFormats;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Sound
|
static class Sound
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Log
|
static class Log
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using IjwFramework.Collections;
|
using IjwFramework.Collections;
|
||||||
using OpenRa.Game.Graphics;
|
using OpenRa.Graphics;
|
||||||
|
|
||||||
namespace OpenRa.Game.Support
|
namespace OpenRa.Support
|
||||||
{
|
{
|
||||||
static class PerfHistory
|
static class PerfHistory
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
static class Program
|
static class Program
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
class Settings
|
class Settings
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace OpenRa.Game.Support
|
namespace OpenRa.Support
|
||||||
{
|
{
|
||||||
class Stopwatch
|
class Stopwatch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.GameRules;
|
using OpenRa.GameRules;
|
||||||
using OpenRa.Game.SupportPowers;
|
using OpenRa.SupportPowers;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game
|
namespace OpenRa
|
||||||
{
|
{
|
||||||
// todo: fix this to route Activate through the orders system (otherwise desync in netplay)
|
// 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 SupportPowerInfo Info;
|
||||||
public readonly Player Owner;
|
public readonly Player Owner;
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.SupportPowers
|
namespace OpenRa.SupportPowers
|
||||||
{
|
{
|
||||||
class ChronospherePower : ISupportPowerImpl
|
class ChronospherePower : ISupportPowerImpl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.Effects;
|
using OpenRa.Effects;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.SupportPowers
|
namespace OpenRa.SupportPowers
|
||||||
{
|
{
|
||||||
class GpsSatellite : ISupportPowerImpl
|
class GpsSatellite : ISupportPowerImpl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace OpenRa.Game.SupportPowers
|
namespace OpenRa.SupportPowers
|
||||||
{
|
{
|
||||||
interface ISupportPowerImpl
|
public interface ISupportPowerImpl
|
||||||
{
|
{
|
||||||
void Activate(SupportPower p);
|
void Activate(SupportPower p);
|
||||||
void OnFireNotification(Actor target, int2 xy);
|
void OnFireNotification(Actor target, int2 xy);
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRa.Game.Orders;
|
using OpenRa.Orders;
|
||||||
using OpenRa.Game.Traits;
|
using OpenRa.Traits;
|
||||||
|
|
||||||
namespace OpenRa.Game.SupportPowers
|
namespace OpenRa.SupportPowers
|
||||||
{
|
{
|
||||||
class IronCurtainPower : ISupportPowerImpl
|
class IronCurtainPower : ISupportPowerImpl
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace OpenRa.Game.SupportPowers
|
namespace OpenRa.SupportPowers
|
||||||
{
|
{
|
||||||
class NullPower : ISupportPowerImpl
|
class NullPower : ISupportPowerImpl
|
||||||
{
|
{
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user