Commit Graph

540 Commits

Author SHA1 Message Date
Paul Chote
5f2c62634c Merge pull request #8817 from penev92/bleed_cleanups
Touch up a few files
2015-08-02 09:30:43 +01:00
Taryn Hill
6fa1f757b0 Add Map.DistanceAboveTerrain(WPos) and Actor.IsAtGroundLevel() extension method 2015-08-01 11:48:47 -05:00
reaperrr
c3d996cb62 Adds WithReloadingTurret render trait to TD mod 2015-08-01 17:15:34 +02:00
Paul Chote
3dda305524 Make NukePower fields readonly. 2015-08-01 14:19:12 +01:00
Paul Chote
6f60b16f06 Make SmokeTrailWhenDamaged fields readonly. 2015-08-01 14:19:12 +01:00
Paul Chote
60305face7 Make WithVoxelBody fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
a127c6b050 Make WithVoxelBarrel fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
322d941332 Make WithProductionOverlay fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
038e8018b9 Make WithBuildingPlacedOverlay fields readonly. 2015-08-01 14:19:11 +01:00
Paul Chote
4e27ac9aac Make WithTurret fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
d20819735c Make WithRotor fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
f91b28a2a0 Make WithRepairOverlay fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
bb092ec07b Make WithRepairAnimation fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
c5becaab9b Make WithIdleOverlay fields readonly. 2015-08-01 14:19:10 +01:00
Paul Chote
a2d069ce55 Make WithHarvestOverlay fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
8e6b764284 Make WithBuildingPlacedAnimation fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
0065d27c68 Make WithBuildingExplosion fields readonly. 2015-08-01 14:19:09 +01:00
Paul Chote
6a586fe501 Make RenderVoxels fields readonly. 2015-08-01 13:28:56 +01:00
Paul Chote
c6ecd772c4 Make RenderRangeCircle fields readonly. 2015-08-01 13:28:19 +01:00
Paul Chote
4b4cc52aa0 Make RenderDetectionCircle fields readonly. 2015-08-01 13:27:57 +01:00
Paul Chote
080f1880b9 Make RenderBuildingTurreted fields readonly. 2015-08-01 13:27:40 +01:00
Paul Chote
ef619a186c Make ExternalCapturableBar fields readonly. 2015-08-01 13:27:09 +01:00
reaperrr
5941914ced Fix WithProductionDoorOverlay namespace 2015-07-31 21:08:25 +02:00
Oliver Brakmann
439bc4ab34 Revert "HACK: Testcase for edge clamping."
This reverts commit fb84f1157e.
2015-07-30 16:36:40 +02:00
Paul Chote
fb84f1157e HACK: Testcase for edge clamping.
Remove before merging!
2015-07-30 08:18:45 +01:00
reaperrr
398f02c5db Remove redundant ISync and ITick from Attack* traits
ISync is implemented by AttackBase, so there's no need for other Attack traits to implement it again.
AttackTurreted inherits AttackFollow, which already implements ITick.
2015-07-29 17:45:30 +02:00
Oliver Brakmann
eada254ad3 Fix crates dying while not in the world
On large maps, it can take the delivery aircraft longer than the crate's
lifetime to reach the paradrop location, so the crate will be destroyed while it's still in the aircraft, leading to an attempt to get a trait from a destroyed object in the Paradrop trait.

This fixes the lifetime logic of crates so that the lifetime will only be increased when the crate is actually in the world. This will probably also better reflect the intention behind the Lifetime property, which I assume was meant to be the time the crate would be on the map available for pickup, rather than the lifetime of the actor itself.
2015-07-29 12:35:58 +02:00
Oliver Brakmann
dff56f6c20 Merge pull request #8781 from pchote/heightmap-shroud
Add plumbing for heighmap-aware shroud and map bounds checks.
2015-07-28 15:35:51 +02:00
Pavel Penev
7701980b76 Simple code style cleanups 2015-07-28 14:21:17 +03:00
Pavel Penev
9801d89e75 Merge pull request #8813 from pchote/fix-bounds-checks
Replace map.Contains with proper array bounds checks.
2015-07-28 04:27:53 +03:00
Matthias Mailänder
9fefc1f7b7 Merge pull request #8816 from reaperrr/common-armor
Moved Armor trait to Mods.Common
2015-07-27 22:04:29 +02:00
reaperrr
89f3718aa7 Move Armor trait to Mods.Common 2015-07-27 21:12:03 +02:00
Paul Chote
86ba26e013 Convert shroud calculations and rendering to PPos. 2015-07-27 19:34:50 +01:00
Paul Chote
e8794032e0 Introduce initial PPos plumbing.
PPos is best thought of as a cell grid applied in
screen space.  Multiple cells with different
terrain heights may be projected to the same PPos,
or to multiple PPos if they do not align with the
screen grid.

PPos coordinates are used primarily for map edge
checks and shroud / visibility queries.
2015-07-27 19:34:49 +01:00
Paul Chote
a8c6a1aa97 Correct Contains check in DomainIndex. 2015-07-27 19:06:20 +01:00
Paul Chote
3a7300810c Correct Contains check in BridgeLayer. 2015-07-27 19:06:20 +01:00
Paul Chote
0b5b612757 Correct Contains check in BuildingInfluence. 2015-07-27 18:43:51 +01:00
Matthias Mailänder
3b25a2029a Merge pull request #8805 from obrakmann/fix8802_enemy-unit-selection
Fix not being able to select enemy units
2015-07-27 19:38:37 +02:00
Oliver Brakmann
618ba6342c Fix not being able to select enemy units 2015-07-27 13:07:07 +02:00
atlimit8
4976f9fec9 Add StartSequence to WithIdleOverlay & change V19.Husk 2015-07-26 12:53:09 -05:00
Oliver Brakmann
a77e9c0d87 Delay loading the observer UI until the game is actually over 2015-07-25 18:56:25 +03:00
Oliver Brakmann
a725d63b0c Remove World.ObserveAfterWinOrLose
Fixes RenderPlayer for "All Players" view.
2015-07-25 18:56:24 +03:00
Pavel Penev
ea3a680eda Merge pull request #8725 from reaperrr/bye-rendersimple-pr1
Step towards removing RenderSimple and its derivatives (Part 1)
2015-07-25 18:43:13 +03:00
Oliver Brakmann
8c766a4a79 Merge pull request #8721 from penev92/bleed_rename
Some more Country -> Faction renaming
2015-07-25 17:10:35 +02:00
reaperrr
65c95eb2ee Adapted WithHarvestAnimation to account for damage stages 2015-07-25 16:17:08 +02:00
reaperrr
2e9a4b78a3 Refactor RenderEditorOnly into RenderSpritesEditorOnly + WithSpriteBody 2015-07-25 10:28:07 +02:00
reaperrr
74b948342e Fix WithSpriteBody PlayCustomAnimationRepeating
Lacked damage stage awareness.
2015-07-25 10:28:05 +02:00
Pavel Penev
ded5a2b16a Merge pull request #8742 from abcdefg30/withpalettedeath
Support multiple WithDeathAnimation traits
2015-07-25 03:10:43 +03:00
penev92
7c1ef2231d Rename RaceInit to FactionInit 2015-07-25 00:39:31 +03:00
Oliver Brakmann
1e7da8514a Merge pull request #8735 from reaperrr/safe-pf-changes
Minor pathfinder-related changes (preparation for mobile refactor)
2015-07-22 14:42:52 +02:00