RoosterDragon
3d94c4b216
Minor formatting fix in Mobile.cs.
2015-08-18 22:03:14 +01:00
RoosterDragon
7eab7220ff
In CanMoveFreelyInto, check if transient actor checks are needed at the start.
...
When transient actors checks are not needed, all control flows in the method return true. Therefore, we can return true directly in this case. Checking this condition is cheaper than checking for a free sub-cell, so this allows us a faster exit when we don't need to check for transient actors.
2015-08-18 22:03:13 +01:00
RoosterDragon
ca75b5af30
Factor logic for determining if an actor blocks movement into IsBlockedBy.
2015-08-18 22:03:11 +01:00
RoosterDragon
6414743f8e
Introduce HasCellCondition to avoid HasFlag overhead.
2015-08-18 22:03:09 +01:00
RoosterDragon
d415d3ba4e
Reduce allocations in the main game loop.
...
- Cache the shroud projection even for flat maps to avoid allocating single element arrays.
- Avoid LINQ in shroud and map projection queries to avoid enumerator allocations.
- Avoid LINQ in calculation of sync values.
- Cache enumerables in ProductionQueue.
- Cache delegate in HackyAI.
2015-08-18 21:17:28 +01:00
abcdefg30
83b310713d
Merge pull request #8905 from atlimit8/WithProductionOverlay_accept_OnOwnerChanged
...
WithProductionOverlay: replace ITick => INotifyCreated & add INotifyOwnerChanged
2015-08-18 21:17:00 +02:00
Pavel Penev
663c9239df
Mop up remaining "race" private variables
2015-08-18 00:26:11 +03:00
Pavel Penev
1a95e7a9f1
Rename crates' ValidRaces
2015-08-18 00:26:07 +03:00
Pavel Penev
b6b107de46
Rename RenderSpritesInfo.RaceImages
2015-08-18 00:26:05 +03:00
Pavel Penev
1e817fad76
Merge pull request #9089 from Mailaender/editor-coordinate
...
Added a coordinate display to the map editor
2015-08-18 00:12:10 +03:00
Matthias Mailänder
322358ff3d
also check shroud sequences
2015-08-17 21:36:55 +02:00
Matthias Mailänder
118782a85e
check palette references
2015-08-17 21:36:45 +02:00
reaperrr
3ae75f870c
Add Explodes safeguards
...
Accept both null and empty string to disable explosion weapons.
Throw specific exception if weapon was not found.
Require Weapon (EmptyWeapon stays optional).
2015-08-17 20:11:38 +02:00
Matthias Mailänder
51fabae106
change editor tooltip to actor: description (type)
2015-08-16 21:58:17 +02:00
Paul Chote
8dfd42b30e
Make Production.Info readonly.
2015-08-14 19:44:24 +01:00
Paul Chote
086467020e
Simplify IOccupySpace check.
2015-08-14 19:44:24 +01:00
Paul Chote
d730b4ee50
Remove duplicated DoProduction from Production.
2015-08-14 19:35:48 +01:00
Paul Chote
738a500876
Fix visibility queries when fog is disabled.
2015-08-14 19:26:01 +01:00
Matthias Mailänder
e13f983946
Merge pull request #9038 from penev92/bleed_rename
...
Some more renaming from "race" to "faction"
2015-08-13 21:13:31 +02:00
abcdefg30
dae70321c2
Merge pull request #8792 from deniz1a/reveal-shroud
...
Changes shroud lobby setting from disabling shroud to revealing it.
2015-08-12 22:04:15 +02:00
abcdefg30
15f22c32b3
Merge pull request #8886 from atimoschenkow/fly-queue
...
Fix queue commands for Plane/Heli
2015-08-12 00:50:43 +02:00
reaperrr
d97d4c82a3
Plane style fixes
2015-08-11 15:49:06 +02:00
reaperrr
9cbc16b6a3
If aircraft has FallsToEarth, return instead of just skipping reservation.
2015-08-11 15:47:45 +02:00
reaperrr
6fc8de69ac
Unreserve aircraft when removed from world
2015-08-11 15:02:31 +02:00
Pavel Penev
4d11195989
Rename MPStartUnitsInfo.Races to Factions
...
Also add an upgrade rule.
2015-08-11 04:00:08 +03:00
Pavel Penev
fd01e95d6c
Rename EmitInfantryOnSellInfo.Races to Factions
...
Also rename the rest of "race" in that file.
2015-08-11 03:46:12 +03:00
Pavel Penev
8b58f3a1d8
Rename ProductionQueue.Race to Faction
2015-08-11 03:29:49 +03:00
Pavel Penev
6e9b5ed2c9
Rename ProductionQueueInfo.Race to Factions
...
Also add an upgrade rule.
2015-08-11 03:27:12 +03:00
Pavel Penev
c99dcb3f24
Merge pull request #9023 from RoosterDragon/actor-lookup
...
Add a method to look up actors by ID.
2015-08-11 02:28:36 +03:00
Matthias Mailänder
df206ddb18
unhardcode rallypoint sprites
2015-08-10 21:35:21 +02:00
Matthias Mailänder
b536e677fb
rename RallyPoint.RallyPoint to RallyPoint.Offset
2015-08-10 21:35:21 +02:00
Matthias Mailänder
4d360a66ed
Merge pull request #8979 from penev92/bleed_production
...
Remove producer-is-in-world assumptions from Production
2015-08-09 21:29:29 +02:00
RoosterDragon
a0117a3890
Add a method to look up actors by ID.
...
This can be used to speed up some methods.
2015-08-09 20:25:34 +01:00
Matthias Mailänder
021b344532
Merge pull request #8988 from reaperrr/fix-moveanim
...
Fix for WithAttackAnimation breaking WithMoveAnimation
2015-08-09 21:21:33 +02:00
reaperrr
e527513cbd
Made voxel turret and barrel traits upgradable.
2015-08-08 18:13:27 +02:00
reaperrr
281a87acbc
Fix WithAttackAnimation breaking WithMoveAnimation
2015-08-08 17:00:38 +02:00
Matthias Mailänder
4e101afb6d
Merge pull request #8838 from reaperrr/withbarrel2
...
Fixed WithBarrel and made it upgradable
2015-08-08 16:50:42 +02:00
Matthias Mailänder
88b98fa8ef
Merge pull request #8975 from penev92/bleed_rename
...
Some more renaming from "country" and "race" to "faction"
2015-08-08 16:13:16 +02:00
Pavel Penev
3cb707ad3c
Remove producer-is-in-world assumptions from Production
...
D2k upgrades need to be actors that never actor the world, produced by the PlayerActor, who is also not in the world, but the Production trait expects the producer to be in the world even if it has Exit.MoveIntoWorld = False, allowing the producees to not enter the world.
2015-08-08 16:36:24 +03:00
atimoschenkow
b1c51cc910
Fix for #6161 queue commands for Plane/Heli (do not ignore Order.Queued in ResolveOrder())
2015-08-07 23:41:03 +02:00
Paul Chote
155d0cc97d
Reveal the initial resources if shroud is disabled.
...
Fixes #8943 .
2015-08-05 20:27:36 +01:00
Pavel Penev
10aee9ffa9
Rid Transforms and Transform of "race"
2015-08-05 18:15:11 +03:00
Matthias Mailänder
3b47aff61c
correct the namespace according to file location
2015-08-05 15:31:07 +02:00
Matthias Mailänder
281699baea
add missing weapon reference
2015-08-05 15:30:51 +02:00
Matthias Mailänder
78b200d26a
add missing sprite sequence and image references
2015-08-05 15:30:39 +02:00
Paul Chote
1aa5852a5b
Force helicopters to land before transforming.
2015-08-05 08:59:32 +01:00
abcdefg30
0ecc5e388d
Merge pull request #8881 from atlimit8/FixAircraftGetActorBelowAltitudeChecking
...
Fix Aircraft.GetActorBelow() altitude checking
2015-08-04 18:08:32 +02:00
deniz1a
7efbf0633e
Changes shroud lobby setting from disabling shroud to revealing it.
2015-08-04 17:31:06 +03:00
abcdefg30
582c93dda5
Merge pull request #8784 from Mailaender/heli-drop-sounds
...
Added helicopter takeoff and landing sound
2015-08-04 14:53:00 +02:00
abcdefg30
d0fb08a48c
Merge pull request #8920 from pchote/fix-map-border
...
Account for disabled shroud/fog in ShroudRenderer.
2015-08-04 12:27:26 +02:00