Paul Chote
d7f1b1c9e2
Remove CVec -> WVec conversion.
2014-06-27 23:30:41 +12:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
086ec07eb6
Add World parameter to Target.FromCell.
2014-06-27 23:30:40 +12:00
Pavlos Touboulidis
86febed0ce
Move ChooseRandomEdgeCell from WorldUtils to Map
2014-06-13 14:31:01 +03:00
RoosterDragon
b733465f33
General uncontroversial cleanup:
...
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
acda996227
Remove airstrike beacon when the attack begins.
2014-03-13 01:03:24 +13:00
Paul Chote
4eaaa052cc
Simplify Fly interface.
2014-02-01 10:55:04 +13:00
Paul Chote
aa2f865d5d
Convert Altitude to world coords.
...
Removes the obsolete AltitudeInit: use CenterPositionInit instead.
2013-12-26 17:25:07 +13:00
Paul Chote
d0bed06765
Use WVec overload of Util.GetFacing where possible.
2013-07-08 21:52:27 +12:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
2bc260c833
move Activity from OpenRA.Traits.Activities namespace to OpenRA.Traits
2011-10-06 23:11:58 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Paul Chote
af4093f380
Swap the default value for FlyOffMap.Interruptible. The common case (scripted aircraft) don't want to be interruptible. Fixes badr desync caused by the mono 2.6.7 compiler dropping initializers for bools that default to true.
2011-06-21 14:20:08 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
172e1eb295
Paratroopers, Spyplane.
2010-12-07 21:45:04 +13:00
Paul Chote
76f792bfdf
New special powers mechanism. Only cnc Airstrike has been reimplemented so far. Special power crates, and spy bonuses have also been disabled.
2010-12-07 21:45:03 +13:00
Paul Chote
915cb589b3
Fix some more special power exploits
2010-12-07 21:45:03 +13:00
Bob
801aa1156f
move aircraft code into Mods.RA/Air/
2010-11-06 12:18:04 +13:00
Bob
011a20e8b4
add IHasLocation
2010-10-12 07:59:40 +13:00
Bob
0cd140849b
fix some support powers
2010-10-07 22:07:12 +13:00
Chris Forbes
f402ec7898
Revert "add IHasLocation"
...
This reverts commit 699b4b1154 .
2010-09-28 07:43:49 +13:00
Bob
699b4b1154
add IHasLocation
2010-09-26 18:17:23 +12:00
Bob
3f68330c70
pruning refs to Game.world
2010-08-20 17:46:58 +12:00
alzeih
578d42614b
Convert all CreateActor calls to use TypeDictionary
2010-08-02 01:51:13 +12:00
alzeih
4ea66ea309
Added FacingInit and AltitudeInit. Used in Mobile/Aircraft/Husks. Refactored Production, SpyPlane, Paratroopers and LeavesHusk
2010-08-02 00:49:26 +12:00
Paul Chote
d29e3f3f0e
Split facing into its own interface; fix husks
2010-08-01 01:01:31 +12:00
Paul Chote
207ee49da3
Move Facing and Altitude onto IMove impls, with associated pile of cleanups
2010-08-01 01:01:31 +12:00
Paul Chote
305fa03355
Kill Controller
2010-07-26 20:14:35 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
Bob
6a840dff4c
move ActorGroupProxy to mod; move SupportPower traits into directory
2010-07-08 14:01:44 +12:00