Commit Graph

1010 Commits

Author SHA1 Message Date
Paul Chote
45ccf0035e Only render the frozen actors that are visible. Fixes #4300. 2013-12-13 22:36:25 +13:00
Matthias Mailänder
0c199126cc Merge pull request #4289 from pchote/ore-spawn-fix
Don't spawn resources at maximum density.
2013-12-11 09:09:34 -08:00
Paul Chote
439d800f03 Don't spawn resources at maximum density. Fixes #4278. 2013-12-11 22:20:17 +13:00
Paul Chote
4d70996012 New shroud renderer. Fixes #2162. Fixes #3024. Fixes #4034.
Uses the original tile sprites in C&C and D2K and uses a smoother transition in all mods.
2013-12-11 20:51:49 +13:00
Paul Chote
4e814a8c2e Move ShroudRenderer into a trait. 2013-12-11 19:22:55 +13:00
Paul Chote
fa067fa905 Remove custom terrain when clearing resources. Fixes #4272. 2013-12-10 16:52:41 +13:00
Paul Chote
410cd1c7b1 Reorganise ResourceLayer implementation. 2013-12-06 22:24:07 +13:00
Paul Chote
0fe839add0 Move HealthExts.IsDead and Kill to Actor. 2013-12-01 00:14:47 +13:00
Curtis Shmyr
d30f60809b Added 2 settings for unit health bars: always show unit health, and team health bar colors 2013-11-24 12:12:52 -07:00
Matthias Mailänder
8a13cd6c6a additional checks to avoid giving dead actors a rank sign
closes #4134
2013-11-17 23:28:02 +01:00
ScottNZ
1394c1dcee Remove some misc redundancies 2013-11-12 19:39:39 +13:00
ScottNZ
00ec1ca87a Remove unused usings 2013-11-12 19:39:33 +13:00
ScottNZ
1a5df86329 Apply a simple constraint to ScreenShaker's multiplier to stop it shaking the game too much 2013-11-09 22:53:32 +13:00
Matthias Mailänder
be1ab707c5 separate TargetFlash from DrawLineToTarget 2013-11-02 18:03:55 +01:00
ScottNZ
d74c54d9f7 Add shake multiplier value to ScreenShaker 2013-11-02 17:19:08 +13:00
Paul Chote
4814c0541e Replace cash tick options with a simple on/off. 2013-10-23 19:37:09 +13:00
Matthias Mailänder
5803661d83 Merge pull request #3974 from pchote/frozen-actor-fix
Fix bogus screen-map queries.
2013-10-21 11:43:41 -07:00
Paul Chote
03c4c476f1 Use scale in RenderSimple.RenderPreview. Fixes #3970. 2013-10-21 18:52:29 +13:00
Paul Chote
33f514001e Fix viewport-px / world-px confusion in ScreenMap. Fixes #3964. 2013-10-21 17:57:53 +13:00
Paul Chote
59f5c8ed52 Fix the pip/tag/group decoration size when zooming. 2013-10-16 19:12:59 +13:00
Paul Chote
84bb78060f Don't zoom UI lines when pixel doubling. 2013-10-15 11:19:16 +13:00
Paul Chote
44dd801f16 Extract shared constants in Draw*Bar and DrawSelectionBox. 2013-10-15 10:45:51 +13:00
Paul Chote
483120ea20 Extract DrawTargetMarker to WorldRenderer. 2013-10-15 10:45:51 +13:00
Taryn Hill
e3e7d0b38c Add ignoreActor and checkTransientActors to IPositionable.CanEnterCell
Improved 'return' checks
Removed unnecessary 'using'
Fixed defaults.yaml spelling error
2013-10-13 20:24:29 -04:00
Paul Chote
919181e04d Clean up viewport internals. 2013-10-05 21:01:22 +13:00
Paul Chote
3ae75362bb Remove WorldUtils.FindFrozenActorsAtMouse. 2013-10-05 21:01:22 +13:00
Paul Chote
1ca9c90565 Add ScreenMap.ActorsAt(MouseInput) overload. 2013-10-05 21:01:21 +13:00
Paul Chote
0b560bfc6e Move more viewport lookups to WorldRenderer. 2013-10-05 21:01:21 +13:00
Paul Chote
4f354e1474 Batch ActorMap add/removes and filter invalid ActorsInBox. Fixes #3897. 2013-10-05 13:19:47 +13:00
Paul Chote
85f854ccde Clean up ActorMap. 2013-10-05 12:59:54 +13:00
Paul Chote
8241718d01 Fix double-rendering regression. 2013-09-29 21:29:10 +13:00
Paul Chote
68a0070fa6 Remove PPos hack from ScreenShaker. 2013-09-27 15:50:45 +12:00
Paul Chote
f94c7034bf Use SpriteRenderables for selection decorations. 2013-09-27 15:41:33 +12:00
Paul Chote
3002c4b77d Use SpriteRenderables for tile overlays. 2013-09-27 15:41:33 +12:00
Paul Chote
0dc50c65f5 Remove unnecessary int2 -> PPos -> int2 conversions. 2013-09-27 15:41:32 +12:00
Paul Chote
ad44610e5a Replace dynamic Actor.Bounds with the (unchanging) relative rect. 2013-09-27 15:39:57 +12:00
Paul Chote
3f8d75a1ac Remove SpatialBins. 2013-09-27 15:36:51 +12:00
Paul Chote
e03ec690ff Track actor positions in ActorMap. 2013-09-27 15:36:51 +12:00
Paul Chote
b00cc6108d Make ActorMap addition explicit. 2013-09-27 15:36:51 +12:00
Paul Chote
4a2a747556 Pull ActorMap back out into a trait. 2013-09-27 15:36:49 +12:00
Paul Chote
dfd51c0caa Introduce ScreenMap trait for caching screen-coord queries. 2013-09-27 15:36:25 +12:00
Paul Chote
cad46e43c5 Add WorldRenderer parameter to WorldLoaded. 2013-09-27 15:29:44 +12:00
Paul Chote
dca59f12f7 Split highlight and player palettes. Fixes #3799. 2013-09-07 20:59:43 +12:00
Paul Chote
75ae34b9fe Move PlayerColorPalette to /Player/ and fix style nits. 2013-09-07 20:49:45 +12:00
Matthias Mailänder
aa9408ca9e ToString() for FrozenActor 2013-08-29 17:40:27 +02:00
Matthias Mailänder
4fd647bc5d ToString() for Target 2013-08-29 17:40:27 +02:00
Matthias Mailänder
ba13c1d982 StyleCop clean Map/*.cs files 2013-08-25 14:30:00 +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
6e13cb7f3b Unacquire invalid AI targets. 2013-08-22 19:32:25 +12:00
Paul Chote
bc5c11e44f Check ITargetable when deciding target validity. Fixes #3659. 2013-08-22 19:29:05 +12:00