Commit Graph

19754 Commits

Author SHA1 Message Date
Matthias Mailänder
fc8d35c2d4 put enter transport order targeters into respective files 2016-01-18 21:53:57 +01:00
Oliver Brakmann
a04223fcd2 Merge pull request #10143 from Phrohdoh/interface-reflection
Implement a utility command to check for explicit interface implementation violations.
2016-01-18 20:23:43 +01:00
Oliver Brakmann
afdc6bc0ae Merge pull request #10546 from abcdefg30/madTarget
Fix the TargetTypes of the Mad Tank
2016-01-18 19:53:36 +01:00
abcdefg30
d416138cec Merge pull request #10542 from RoosterDragon/simplify
General Cleanup
2016-01-18 11:37:30 +01:00
abcdefg30
50e4cc84d0 Fix the TargetTypes of the Mad Tank
"Vehicle" was missing, which lead to tanya shooting at it.
Tanya's weapon (Colt45) has InvalidTargets: Vehicle defined,
so adding just "Vehicle" to the TargetTypes fixed the bug.
2016-01-18 11:00:37 +01:00
Matthias Mailänder
40debbde28 Merge pull request #10508 from pchote/cancel-tooltip-on-menu
Cancel tooltips when opening the ingame menu.
2016-01-18 07:30:11 +01:00
Taryn Hill
25eddb9567 Explicitly implement ISelectionBar 2016-01-17 22:33:41 -06:00
Taryn Hill
e3229f4cd8 Add explicit interface checking to 'make check' 2016-01-17 17:31:36 -06:00
Taryn Hill
2e861c6d65 Implement a utility command to check for explicit
interface implementation violations
2016-01-17 17:31:36 -06:00
Paul Chote
3ccbb480ad Merge pull request #10505 from Mailaender/palette-conf
Fixed parachute palette configuration for Red Alert 2
2016-01-17 21:54:56 +00:00
Oliver Brakmann
d151343216 Merge pull request #10468 from RoosterDragon/fix-dev-shroud-invalidation
Fix shroud not updating when disabled
2016-01-17 22:42:34 +01:00
RoosterDragon
8e89a6a696 Simplify names, remove unused usings, remove redundant casts. 2016-01-17 21:35:36 +00:00
Oliver Brakmann
aaeb715006 Merge pull request #10246 from penev92/terrainPalettes
Allow tile templates to define their own palette
2016-01-17 21:39:28 +01:00
Matthias Mailänder
a829baa82a Merge pull request #10521 from pchote/facing-cleanup
Remove Util.GetFacing.
2016-01-17 20:21:50 +01:00
Pavel Penev
288de5284e Fix TerrainTemplatePreviewWidget to use proper palettes 2016-01-17 19:02:18 +02:00
Pavel Penev
861d1368a4 Unhardcode internal terrain palette name from all over the codebase 2016-01-17 19:02:16 +02:00
Pavel Penev
0c51d73be9 Enable use of "custom" palettes per tile Templates
Keep the tileset's palette as default, defined on the tileset, but override it for any tile templates that may want to do so with a palette defined on the template.
2016-01-17 19:02:15 +02:00
Oliver Brakmann
7cf98c5e26 Merge pull request #10324 from RoosterDragon/change-frozen-actor-removals
GPS updates frozen actors that change owner
2016-01-17 13:37:53 +01:00
Matthias Mailänder
457dca25b4 Merge pull request #10506 from pchote/fix-flying-mcvs
Remove some hardcoded trait assumptions from HackyAI.
2016-01-17 08:18:04 +01:00
RoosterDragon
dc99dbef2a Add an upgrade rule for FrozenUnderFogUpdatedByGps. 2016-01-17 00:15:08 +00:00
RoosterDragon
3c930c3ef9 Introduce FrozenUnderFogUpdatedByGps and IOnGpsRefreshed.
This trait uses the new interface to register with the GpsWatcher to get notified when the GPS state changes. It needs to register as if the actor is destroyed, the GpsWatcher can no longer query actors in the world to get the trait. This is no good as the trait needs to perform actions after the death of its parent actor.

When the GPS is enabled, the trait will track ownership changes and update the frozen actor (just like if there was only a GPS dot, it would change colour) and it will also remove frozen actors if the real actor dies or is sold.
2016-01-17 00:13:06 +00:00
RoosterDragon
a232eff7fd Replace IRemoveFrozenActor with FrozenActorLayer.Remove.
The IRemoveFrozenActor interface is replaced with a Remove method on FrozenActorLayer. IRemoveFrozenActor is a performance problem for FrozenActorLayer.Tick as it incurs a large cache miss penalty in order to load and enumerate the array of these interfaces for every frozen actor. Instead, we invert control and allow traits to remove frozen actors directly which eliminates the performance penalty.
2016-01-17 00:13:06 +00:00
RoosterDragon
c98df23b57 Create FrozenActor.RefreshState method for better encapsulation and reuse of this logic. 2016-01-17 00:13:06 +00:00
RoosterDragon
3026bdcea5 Implement equality on TraitPair. 2016-01-17 00:13:06 +00:00
Paul Chote
bee77db1e3 Rename variables for clarity. 2016-01-17 00:02:49 +00:00
Paul Chote
bec059a3c7 Remove unnecessary assumption about non-mobile. 2016-01-17 00:02:49 +00:00
Paul Chote
d4815407f2 Remove hardcoded trait assumptions from MCV and ConYards. 2016-01-17 00:02:49 +00:00
Paul Chote
e026a0f00f Create proper data structures for hardcoded AI classes. 2016-01-17 00:02:49 +00:00
Paul Chote
3b18c7815d Remove Util.GetFacing. 2016-01-16 22:38:17 +00:00
Paul Chote
a0979634bb Use .Yaw.Facing in Map. 2016-01-16 22:38:17 +00:00
Paul Chote
8a8368b97b Use .Yaw.Facing in Missile. 2016-01-16 22:38:17 +00:00
Paul Chote
46bf58b520 Introduce WVec.Yaw and WAngle.Facing. 2016-01-16 22:38:17 +00:00
Oliver Brakmann
addbe6d564 Merge pull request #10472 from Mailaender/guard-refactor
Cleaned up the Guard code
2016-01-16 23:09:19 +01:00
Oliver Brakmann
aeafa3383d Merge pull request #10516 from reaperrr/shp-compress
Recompressed a number of shp(td) files with shapeset
2016-01-16 22:59:41 +01:00
Oliver Brakmann
29e8396863 Merge pull request #10531 from pchote/fix-tileset-case
Fix case mismatches in TS tileset importer.
2016-01-16 22:43:02 +01:00
Oliver Brakmann
9de239e246 Merge pull request #10371 from Mailaender/demotruck-detonates
Generalized the DemoTruck trait for Tiberian Sun
2016-01-16 19:46:37 +01:00
Matthias Mailänder
6900e4bad3 rename DemoTruck to AttackSuicides
generalize move to add Aircraft support
give it a description
don't require Explodes as it is just a soft dependency
use a regular self kill
2016-01-16 19:38:23 +01:00
Oliver Brakmann
01a873218d Merge pull request #10364 from Mailaender/unload-overlay
Added the Tiberian Sun harvester unload overlay
2016-01-16 19:30:19 +01:00
abcdefg30
b593063057 Merge pull request #10519 from RockyTV/rockytv
Decrease Engineer and Medic priority
2016-01-16 14:35:41 +01:00
Matthias Mailänder
56313e6d8a Merge pull request #10525 from pchote/split-package-interfaces
Split IPackage into IReadOnlyPackage and IReadWritePackage
2016-01-16 14:19:54 +01:00
Matthias Mailänder
5fc6af6566 Merge pull request #10493 from pchote/fix-menu-hover
Update button mouseover when switching menus.
2016-01-16 14:10:24 +01:00
Paul Chote
9f28eefb31 Fix case mismatches in TS tileset importer. 2016-01-16 13:07:36 +00:00
Matthias Mailänder
152ff32ded add the Tiberian Sun harvester unload overlay 2016-01-16 13:51:08 +01:00
Matthias Mailänder
f3210755c0 rename WithDockingOverlay to WithDockedOverlay 2016-01-16 13:51:06 +01:00
abcdefg30
2ccf142ce9 Merge pull request #10492 from pchote/fix-mission-order
Sort missions by their order in missions.yaml
2016-01-16 13:26:26 +01:00
abcdefg30
aa23928e7b Merge pull request #10514 from pchote/blink-install-button
Blink install map button.
2016-01-16 13:16:31 +01:00
abcdefg30
c701ed6a5c Merge pull request #10510 from pchote/cancel-pbog-on-death
Cancel PBOG on death
2016-01-16 12:17:39 +01:00
abcdefg30
ee1cf5ff87 Merge pull request #10523 from pchote/fix-pbog-gameover-crash
Fix a crash if an order generator is active when a game ends.
2016-01-16 12:04:45 +01:00
Paul Chote
bdb8fd48ca Remove legacy package creation code. 2016-01-16 10:37:21 +00:00
Paul Chote
f8d0b97e8d Split IPackage into IReadOnlyPackage and IReadWritePackage. 2016-01-16 10:37:21 +00:00