Commit Graph

326 Commits

Author SHA1 Message Date
ScottNZ
90894aa03e Use var everywhere 2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6 Remove unused usings 2014-06-15 22:16:40 +12:00
Matthias Mailänder
8f64835898 StyleCop 2014-06-15 10:51:57 +02:00
Matthias Mailänder
dac12839fd Merge pull request #5630 from pavlos256/map-helpers
Move map helpers from WorldUtils to Map
2014-06-14 11:49:19 +02:00
Pavlos Touboulidis
060d5326ed Move FindTilesInCircle from WorldUtils to Map 2014-06-13 14:24:53 +03:00
Kanar
6fdb9e688a Adds RallyPoint to Airfield, queues TakeOff 2014-06-10 18:02:04 +02:00
Matthias Mailänder
7216688baf Merge pull request #5567 from ScottNZ/perf
Refactor AutoTarget scan and GPS interaction
2014-06-09 12:01:05 +02:00
Paul Chote
d8e5177a36 Merge pull request #5405 from RoosterDragon/min-max
Added MinBy, MaxBy, etc.
2014-06-09 17:42:01 +12:00
ScottNZ
7e6f7c51e1 Refactor AutoTarget scan and GPS interaction, and cache trait lookup for a slight performance boost 2014-06-07 12:01:50 +12:00
Paul Chote
40eff95a10 Simplify MoveAdjacentTo logic. Fixes #5445. 2014-06-01 10:58:44 +12: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
RoosterDragon
0ea3509ee4 Added MinBy, MaxBy, MinByOrDefault and MaxByOrDefault methods and replaced calls of the style OrderBy[Descending]().First[OrDefault]() which is not as performant. 2014-05-23 08:23:42 +01:00
Paul Chote
15f63fb5ea RenderSprites.anims is finally private.
Followup to #3348.
2014-05-23 00:37:20 +12:00
Matthias Mailänder
5274776d55 add the Dune 2000 repair depot active overlay 2014-05-20 11:48:52 +02:00
Oliver Brakmann
062e7f5298 Check proc's health before (un)docking. Fixes #5338 2014-05-17 17:09:46 +02:00
Squiggles211
03e2c77b09 Minor style nit fix
Minor style nit fix
2014-05-16 00:22:00 -05:00
Squiggles211
a0458eeb24 Fix crashes related to transports
Fixes two specific causes of transport related crashes, one prevents
infantry from continuing to take damage by Tiberium if loaded into the
transport over Tiberium, and one fixes the edge case where an infantry
dies in the same tick cycle as it was loaded into the transport.
2014-05-15 20:27:44 -05:00
Matthias Mailänder
ba309a3367 add spice refinery smoke overlay when harvester docked 2014-05-14 09:39:45 +02:00
Jordan Glue
84030fd3c0 Fixing Helis taking off after rearmed but before repaired 2014-05-05 20:51:44 +10:00
Jordan Glue
ea32390700 closes #3091 Have Helis take off after repair/rearm 2014-05-05 19:31:57 +10:00
Paul Chote
4935266945 Merge FileFormats dll into Game and reorganise namespaces. 2014-04-17 01:20:47 +12:00
Curtis Shmyr
6ced7b274c Chronotank teleporation by holding SHIFT or ALT and issuing a move order 2014-03-22 00:13:24 -06:00
Paul Chote
11d4567b5d Allow maps to define custom initial cargo and fix initial notification. 2014-03-21 10:03:53 +13:00
Paul Chote
de735fbd27 Use MoveIntoWorld for transports. Fixes #4758. 2014-03-19 14:28:38 +13:00
Paul Chote
262e0fc484 Use MoveIntoWorld for Enter activities. 2014-03-19 13:40:33 +13:00
ScottNZ
f80710ac7a Let cloaked units optionally uncloak when unloading 2014-03-14 22:33:34 +13:00
Paul Chote
20b88fd904 Remove World.FrameNumber. 2014-03-12 17:19:29 +13:00
Mknsri
2ea184e89e Fix #4350 - Spy not disappearing
Spy now calls .Destroy() and is removed from minnimap upon infiltration
2014-03-08 16:18:31 +02:00
Temeez
5b7db7ed68 Chrono tanya fix and CHANGELOG entry for it 2014-02-15 13:44:08 +02:00
ScottNZ
025de83d3a Fix cargo loading/unloading.
- Fix the unloading subcell bug, letting us have units move to directly adjacent cells.
- Have the cursor change to a deploy-blocked cursor if the transport can't unload due to terrain type.
- Add RenderTransport for transport door opening.
- Remove turning/opening in general.
2014-02-12 20:07:44 +13:00
Taryn
9c4ad15d1e Changed most references of trait Mobile -> IMove.
In Mobile.cs IsMoving now has a public set as opposed to the initial internal. 
Added IMoveInfo interface to go with *Info classes that require IMove.
WithRotor now uses IMove.IsMoving instead of (self.CenterPosition.Z > 0) as part of a check.
2014-02-02 15:13:49 -06:00
Paul Chote
697b50c149 Add Guard support to Aircraft. 2014-02-01 10:56:04 +13:00
Paul Chote
1759d73ed7 Add following to IMove. 2014-02-01 10:55:05 +13:00
Paul Chote
d2fa1a12f9 Use DomainIndex to fix naval transport path perf. 2014-01-12 22:35:06 +13:00
Paul Chote
29e689178d Make EnterTransport more consistent with MoveAdjacentTo. 2014-01-12 22:09:11 +13:00
Paul Chote
3cdeea009b Make MoveAdjacentTo aware of moving targets.
Units moving toward another actor (passengers, hijackers, etc) will now repath if their target moves.
Fixes excessive repathing if the target cannot be reached.
2014-01-12 22:09:11 +13:00
Paul Chote
c333b59eb9 Cache trait lookups in MoveAdjacentTo. 2014-01-12 22:09:11 +13:00
Matthias Mailänder
c78a856894 C4 demolishable bridges 2013-12-26 21:22:47 +01:00
Paul Chote
410cd1c7b1 Reorganise ResourceLayer implementation. 2013-12-06 22:24:07 +13:00
ScottNZ
e4d477b0e0 Add Lua standard library and supporting C#/yaml 2013-11-29 23:48:44 +13:00
ScottNZ
00ec1ca87a Remove unused usings 2013-11-12 19:39:33 +13:00
Curtis Shmyr
2229bbf985 Rename LegacyCapture related traits to Capture 2013-10-27 17:25:44 -06:00
Curtis Shmyr
c1e5be380e Rename Capture related traits to ExternalCapture 2013-10-27 17:25:44 -06:00
Paul Chote
9ee9de01b1 Use cell positioning to look up resupply actors. Fixes #3901.
FindActorsInBox only checks against the centre of
actors, so testing two points is rarely going to
work.
2013-10-05 23:28:46 +13:00
Matthias Mailänder
a5b954a563 never heal enemies
fixes #3597
2013-09-21 07:37:20 +02:00
Matthias Mailänder
b5fcb297af Merge pull request #3726 from pchote/cloak-fix
Cloak fixes
2013-08-23 09:27:56 -07:00
Paul Chote
bc5c11e44f Check ITargetable when deciding target validity. Fixes #3659. 2013-08-22 19:29:05 +12:00
Paul Chote
8fd4243861 Avoid unnecessary Mobile lookups in Follow. 2013-08-22 19:29:05 +12:00
ScottNZ
3e0dd12db6 Make buildings being captured flash the colour of the captor's owner 2013-08-22 14:35:02 +12:00
Matthias Mailänder
8c6074a081 WithCrumbleOverlay for Dune 2000 buildings 2013-08-17 23:47:09 +02:00