Matthias Mailänder
394d635dae
new trait WithMakeAnimation
2014-07-06 08:24:08 +02:00
Paul Chote
15d8fadb60
Merge pull request #5801 from Mailaender/building-influence-crash
...
Fixed a crash when trying to capture husks that have been destroyed.
2014-07-05 11:36:54 +12:00
Pavlos Touboulidis
daed053a57
Fix and optimize FindTilesInCircle
2014-07-03 18:11:28 +03:00
Matthias Mailänder
e666c75883
don't capture dead actors
2014-07-03 10:33:41 +02:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +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
Paul Chote
97a61273dd
Bring PathSearch in line with the current code style.
2014-06-27 19:20:46 +12:00
Paul Chote
f46f71217e
Pass initial race to husks and transformed actors.
2014-06-26 23:12:23 +12:00
Paul Chote
7dfc822d76
Tidy transformation trait/activity.
2014-06-26 23:12:23 +12:00
Matthias Mailänder
d3d74c4e5f
StyleCop
2014-06-22 08:31:36 +02:00
RoosterDragon
22abf9b4c4
Remove and sort usings.
2014-06-18 21:43:35 +01:00
Paul Chote
afa3fc8143
Simplify MoveAdjacentTo pathfinding.
2014-06-15 22:48:44 +12:00
Paul Chote
58c3f9ad0c
Use MoveWithinRange for attack activities.
...
Fixes #2104 . Fixes #2923 . Fixes #4455 .
2014-06-15 22:48:43 +12:00
Paul Chote
64ab0a77a9
Added MoveWithinRange activity for Mobile units.
2014-06-15 22:48:43 +12:00
Paul Chote
887a515e14
Add MinRange plumbing to attack activities.
2014-06-15 22:48:43 +12:00
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