RoosterDragon
901e604cf3
Replace arrays with sets.
...
In places where arrays were being treated as a set, just create a set directly. This reveals the intention of such collections better, and also improves performance by allowing set based methods to be used.
2015-09-03 20:09:24 +01:00
atlimit8
fadfd179cb
Cache FrozenActor ITargetable.TargetTypes union
2015-09-02 23:19:00 -05:00
atlimit8
23d0424437
Add ITargetablePositions seperating it from ITargetable
2015-09-02 23:14:40 -05:00
atlimit8
f5c3575c5a
Support multiple ITargetable traits
2015-09-02 23:14:40 -05:00
Pavel Penev
c4bf92870b
Merge pull request #9083 from Mailaender/lint-cleanup
...
Cleaned up the ILint boiler plate code
2015-09-02 15:49:43 +03:00
RoosterDragon
dab53f403d
Provide a hand-written enumerator for ActorMap.GetUnitsAt(CPos).
2015-08-31 20:43:19 +01:00
RoosterDragon
18478646d4
Avoid multiple ToMPos calls in ActorMap.
2015-08-31 20:43:18 +01:00
Matthias Mailänder
0b8d7708ef
add more lint interfaces to reduce boiler plate
2015-08-30 13:12:25 +02:00
Matthias Mailänder
9c1eeafa08
Merge pull request #9004 from reaperrr/quanbo
...
Introduce QuantizeFacingsFromSequence
2015-08-28 22:46:29 +02:00
Pavel Penev
02dd5afbd9
Merge pull request #9058 from RoosterDragon/reduce-alloc
...
Reduce allocations in the main game loop
2015-08-24 02:11:08 +03:00
reaperrr
006e66a3c3
Refactored IQuantizeBodyOrientation implementation
...
Moved BodyOrientation and related interfaces from Game to Mods.Common.
Introduced QuantizeFacingsFromSequence trait.
With*Body render traits no longer implement IQuantizeBodyOrientation
themselves.
2015-08-24 00:48:56 +02:00
Matthias Mailänder
bec209085b
Merge pull request #7873 from penev92/bleed_raceToFaction
...
Replace old "country" and "race" name in the code with the generic "faction"
2015-08-23 17:49:40 +02:00
Pavel Penev
09f67d18bb
Some internal "race" to "faction" renaming
2015-08-22 23:34:36 +03:00
abcdefg30
87580d0aab
Add a GpsRemoveFrozenActor trait
2015-08-22 21:36:30 +02:00
Matthias Mailänder
9a861bdfba
Merge pull request #8700 from deniz1a/rename-disable-shroud
...
Renames "Disable Shroud & Fog" debug option to "Observer view".
2015-08-20 20:41:01 +02: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
Matthias Mailänder
118782a85e
check palette references
2015-08-17 21:36:45 +02:00
Matthias Mailänder
dc477c3ced
add missing sequence reference
2015-08-15 09:59:53 +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
Paul Chote
c1fcd5fb47
Prevent shroud from being revealed outside the map cordon.
...
Fixes #8947 .
2015-08-04 23:12:19 +01:00
deniz1a
7efbf0633e
Changes shroud lobby setting from disabling shroud to revealing it.
2015-08-04 17:31:06 +03:00
Paul Chote
0b4543919d
Account for disabled shroud/fog in ShroudRenderer.
...
Fixes #8827 .
2015-08-03 21:07:02 +01:00
Oliver Brakmann
9e2f06aa2d
Merge pull request #8876 from pchote/music
...
Refine the music playlist code.
2015-08-02 15:49:13 +02:00
Paul Chote
5f2c62634c
Merge pull request #8817 from penev92/bleed_cleanups
...
Touch up a few files
2015-08-02 09:30:43 +01:00
Paul Chote
9b3ef9e7f7
Move MusicPlaylist to Mods.Common.
2015-08-01 22:56:07 +01:00
Zimmermann Gyula
1d80c37fda
Add support for hiding music tracks.
2015-08-01 22:41:25 +01:00
deniz1a
2abd1b5350
Renames "Disable Shroud & Fog" debug option to "Disable visibility checks".
2015-08-02 00:30:42 +03:00
Paul Chote
a8ddc4e360
Always start the game with a random song.
...
This fixes the issue where games will always start
with shellmap theme.
2015-08-01 20:52:20 +01:00
Paul Chote
fb0e2c5cc3
Introduce background music concept.
2015-08-01 20:52:20 +01:00
Paul Chote
9a64b8724c
Disable local -> world offset hack in TS.
2015-08-01 00:42:59 +01: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
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
2b3c65334d
Correct Contains check in ActorMap.
2015-07-27 18:43:51 +01: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
Zimmermann Gyula
8f43ae96ae
Fix Observers crashing during win/lose the game.
2015-07-25 14:04:47 +02: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
Matthias Mailänder
a0dc38c252
Merge pull request #8752 from obrakmann/optional-target-lines
...
Added option to turn off rendering of target lines in the settings
2015-07-20 22:05:05 +02:00
figrita
ab3ab6f230
Added option to turn off rendering of target lines in the settings
2015-07-20 00:05:29 +02:00
David Jiménez
5109848215
Changes to improve understandability of code
2015-07-18 15:05:12 +02:00
RoosterDragon
3a0eb5554e
Provide HasStance extension method for Stance enum, to avoid overhead of HasFlag method.
2015-07-15 20:40:38 +01:00
penev92
bb648decc3
Rename Player.Country to Player.Faction
2015-07-15 04:06:52 +03:00
penev92
2e04fb5ddd
Rename Faction trait members
...
Rename Faction.Race to Faction.InternalName
2015-07-14 18:50:39 +03:00
penev92
a1af5386e0
Rename the Country trait to Faction
2015-07-14 18:50:31 +03:00
Zimmermann Gyula
57e684d1d9
Implements victory and defeat music.
2015-07-13 15:42:13 +02:00
Zimmermann Gyula
32c29e7dd6
Removes the MapMusic checkbox.
2015-07-12 17:27:12 +02:00