Chris Forbes
5eb61dbdd2
Merge pull request #5411 from RoosterDragon/general-clean
...
General Cleanup
2014-05-25 11:03:03 +12:00
Paul Chote
cb13335b8d
Separate ping lifetime from beacons. Fixes #5424 .
2014-05-24 23:05:22 +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
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Paul Chote
12767b7f21
Merge pull request #5328 from Mailaender/superpower-cleanup
...
IronCurtain/ChronoShift code cleanup
2014-05-17 18:05:43 +12:00
reaperrr
bbf2364bba
Fixes AI units hunting down Missile Silo/Temple of Nod after being damaged by nuke
2014-05-16 17:43:22 +02:00
Matthias Mailänder
db77c7b45d
code cleanup
2014-05-16 17:27:49 +02:00
Paul Chote
86f5a39d86
Persist the nuke beacon until detonation.
2014-04-18 18:55:34 +12:00
Paul Chote
56586cb4b5
Add a camera to the nuke.
2014-04-18 18:55:34 +12:00
Paul Chote
51363fd724
Make nuke flight time independent from map size.
2014-04-18 18:55:34 +12:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
1b2a90c00c
Migrate to System.Lazy.
2014-04-09 20:20:41 +12:00
Paul Chote
94e30503a7
Allow support powers to define a poster image for beacons.
2014-03-20 22:13:11 +13:00
Paul Chote
acda996227
Remove airstrike beacon when the attack begins.
2014-03-13 01:03:24 +13:00
Paul Chote
d7d12ef799
Rework airstrike flare and camera spawning.
2014-03-13 01:03:24 +13:00
ScottNZ
338fb38bd3
Add beacon/radar ping placements for nukes/ion cannons/chronospheres/iron curtains.
2014-02-23 13:14:00 +13:00
Paul Chote
4eaaa052cc
Simplify Fly interface.
2014-02-01 10:55:04 +13:00
Kanar
17cf890dce
Enables "insufficient power"-speech in RA and C&C when powered-down supportpowerwidget is clicked
2014-01-27 04:29:32 +01:00
Paul Chote
aa2f865d5d
Convert Altitude to world coords.
...
Removes the obsolete AltitudeInit: use CenterPositionInit instead.
2013-12-26 17:25:07 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Matthias Mailänder
e0e3f1155a
avoid additional layers of abstraction
2013-11-02 18:12:46 +01:00
Matthias Mailänder
b1c3ac20bf
brought back the MoveFlash
...
closes #2592
2013-11-02 18:03:49 +01:00
Paul Chote
2f5ff30184
Add strafing to C&C airstrike.
2013-11-02 10:08:26 +13:00
Paul Chote
47209f5848
CarpetBomb -> AttackBomber.
2013-11-01 17:47:30 +13:00
Paul Chote
d7effe71da
Add squad and quantisation support to AirstrikePower.
2013-11-01 17:45:21 +13:00
Paul Chote
0b560bfc6e
Move more viewport lookups to WorldRenderer.
2013-10-05 21:01:21 +13:00
Matthias Mailänder
b2d37ba754
play launch / incoming sounds in air strike power, too
2013-08-22 21:40:37 +02:00
Matthias Mailänder
ac6227b4d1
split nuke announcements based on ally (and observer) / enemy
...
instead of me / everyone else
2013-08-22 21:40:36 +02:00
Matthias Mailänder
d8b0c0d440
added support for nuke launch sound to confirm strike
...
separated into IncomingSound = "nuke approaching/detected"
and changed LaunchSound into "nuke lauched"
also nuke with small L .aud in cnc rules looks like a typo
2013-08-22 21:40:36 +02:00
Matthias Mailänder
efb55d4cb9
read support power icons from sequences
...
so that d2k can grab them from DATA.R8
2013-08-17 23:31:22 +02:00
Paul Chote
4754cbb768
Replace IOrderGenerator.RenderBeforeWorld with world-sorted .Render.
...
Range circles have been moved to RenderAfterWorld for now.
2013-08-11 00:25:54 +12:00
Paul Chote
805b4b6258
Change IRenderable.WithPos -> OffsetBy.
...
This is more appropriate for the actual use cases.
Fixes #3621 .
2013-08-03 11:16:52 +12:00
ScottNZ
b519c915ca
Add public atom bomb and gps timers to RA
2013-07-17 14:52:50 +12:00
ScottNZ
8bec40eb9b
Move SupportPowerInstance out of SupportPowerManager
2013-07-14 22:40:38 +12:00
Paul Chote
11cebddaa9
Convert Sound.Play* to WPos.
2013-07-11 17:37:27 +12:00
Paul Chote
d0bed06765
Use WVec overload of Util.GetFacing where possible.
2013-07-08 21:52:27 +12:00
Paul Chote
7beef85a64
Use PaletteReferences everywhere.
2013-06-15 19:16:08 +12:00
Paul Chote
53aa698491
Rename LocalCoordinatesModel -> BodyOrientation.
2013-05-28 22:34:59 +12:00
Paul Chote
e7aa6ce998
Change traits to use RenderSprites directly.
2013-05-28 22:34:58 +12:00
Paul Chote
170e14546a
Convert NukeLaunch to world coordinates.
2013-05-17 18:12:29 +12:00
Paul Chote
d7e6125dd7
Convert ChronoshiftPower to world coords.
2013-05-17 18:12:27 +12:00
Paul Chote
d103a187f6
Make the guts of Renderable private.
2013-05-17 18:12:26 +12:00
Matthias Mailänder
2c250ed700
fixes #3181 GPS dots not visble in spectator mode
2013-05-13 23:42:49 +02:00
Matthias Mailänder
904c6b76b5
fixes #3178 invisible superpower charge bars in spectator mode
2013-05-13 23:42:49 +02:00
Matthias Mailänder
b818f85b38
per tileset configurable selection overlays
...
don't use a white one for more contrast on snow, closes #2050
2013-04-20 23:00:11 +02:00
Chris Forbes
772efb98d4
fix #2921 : crash when support power instance vanishes while tooltip is shown
2013-04-02 19:20:24 +13:00
Paul Chote
72a9954491
Simplify PaletteReference interface.
2013-02-26 09:35:40 +13:00
Paul Chote
000a5eaa56
Pass WorldRenderer to IRenderModifiers and replace more palette lookups.
2013-02-24 15:45:03 +13:00
Paul Chote
f0ba0ce2e8
Wrap palette references with a PaletteRef object.
2013-02-24 15:43:15 +13:00
Kenny
f41fb32d60
Introducing per-player shrouds.
...
- Each player has their own shroud and their visibility does not extend outside of the shroud.
- Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored.
- GPS will provide visibility in the fog-of-war.
- Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
2012-12-13 15:16:56 -08:00