Zimmermann Gyula
cf8fff2b99
Remove passing the warheads from DamageWarhead to AttackInfo.
...
Added a Damage class to pass damage value and damage(types) instead.
This removes a great amount of overhead and longterm opens possibilities to have damagetypes without warheads.
2016-07-12 10:09:49 +02:00
Emiel Suilen
c3e862b2ca
Add a PlayerExperience trait
2016-07-10 15:30:17 +02:00
Oliver Brakmann
5157ac917f
Cache PlayerResources in PlayerStatistics
...
and remove a couple of redundant fields.
2016-07-10 15:30:17 +02:00
Paul Chote
24f166595f
Convert lobby dropdowns to new options backend.
2016-06-04 10:06:18 +01:00
Paul Chote
d27d265bdd
Add Id field to ProvidesTechPrerequisite.
2016-06-04 10:03:05 +01:00
Oliver Brakmann
5d2445a234
Fix winstate logic for cooperative games
2016-05-19 23:08:01 +02:00
Paul Chote
7e49ae7eb0
Prepare DeveloperMode code for trait-defined lobby options.
2016-05-14 18:54:44 +01:00
Matthias Mailänder
4e9a48d253
Summarize the rendering parts to generate a beacon.
2016-05-01 12:29:39 +02:00
Matthias Mailänder
59fbfbc851
Don't enforce beacons to be player palettes.
2016-05-01 12:29:38 +02:00
Matthias Mailänder
9f4cdb9843
Unhardcode player beacons for documentation and lint testing.
2016-05-01 12:27:02 +02:00
Paul Chote
d59488d496
Merge pull request #11076 from obrakmann/low-funds-warning-2
...
Fix issues with the insufficient funds warning
2016-04-16 18:00:40 +01:00
Oliver Brakmann
87e1acfc9f
Re-implement the insufficient funds warning in a simpler manner
2016-04-11 19:06:18 +02:00
Oliver Brakmann
41388b9c63
Revert the previous InsufficientFundsWarning implementation
2016-04-11 19:06:18 +02:00
Matthias Mailänder
be3ea7b79e
Move audio traits into Sounds namespace.
2016-04-10 22:34:10 +02:00
reaperrr
251b1b44d4
Migrate StrategicVictoryConditions.RatioRequired to int percentage
...
Remove bogus CriticalRatioRequired from RA Hopes Anchor.
2016-03-28 14:44:20 +02:00
reaperrr
38cea38f6b
Migrate BuildSpeed from float to int
2016-03-24 18:43:48 +01:00
Jonathan Ling
2d4c3f715f
Refactored ticks to delay per issue #9810
2016-03-22 17:03:37 -04:00
Paul Chote
d4f8fe1666
Move map configuration to rules.
2016-03-07 21:41:13 +00:00
Zimmermann Gyula
505542955c
Normalize InsufficientFundsWarning header.
...
It got merged with the old, now outdated header.
2016-02-28 12:57:36 +01:00
abcdefg30
be1080f7bd
Add support for playing an InsufficientFunds warning
2016-02-23 22:16:51 +01:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
RoosterDragon
eb3be990a6
Remove dead code and encapsulate more in Sync.cs.
2016-01-31 00:42:00 +00:00
abcdefg30
79829c5270
Add support for playing a "Our ally is under attack" notification
2016-01-26 21:16:29 +01:00
abcdefg30
a56ffb581f
Move some checks in *AttackNotifier to improve performance
2016-01-26 21:10:12 +01:00
abcdefg30
ed3f3706f9
Reduce trait lookups further by adding a BuildableInfo parameter to GetBuildTime
2016-01-21 22:29:01 +01:00
abcdefg30
4e0775b59e
Remove the unused ISync implementation in ClassicProductionQueue.cs
...
The base class ProductionQueue already implements ISync
2016-01-21 22:24:51 +01:00
abcdefg30
5496245a00
Remove unnecessary lookups and checks
...
- We already return early if the unit doesn't have a BuildableInfo
- World.Map.Rules.Actors[actorName] won't return null
- Made BuildUnit use an ActorInfo instead of the name as parameter
2016-01-21 22:24:50 +01:00
abcdefg30
17daac11a1
Avoid unnecessary lookups in the production logic
...
by improving the GetBuildTime method and moving lookups around.
2016-01-21 22:24:49 +01:00
abcdefg30
fdfea2f0fb
Fix style errors in ProductionQueue.cs
2016-01-21 15:41:33 +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
Pavel Penev
861d1368a4
Unhardcode internal terrain palette name from all over the codebase
2016-01-17 19:02:16 +02:00
RoosterDragon
3026bdcea5
Implement equality on TraitPair.
2016-01-17 00:13:06 +00:00
Sean Hunt
8f4ec87b63
Factor silos needed warning to a new trait.
2015-12-27 14:40:37 -05:00
RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
Oliver Brakmann
177d983728
Merge pull request #9759 from atlimit8/ActorsHavingTrait
...
Add ActorsHavingTrait<TTrait>()
2015-11-04 22:26:10 +01:00
Oliver Brakmann
e7e4f2f825
Fix base range circle not being shown during building placement
2015-10-29 11:00:59 +01:00
atlimit8
b6f17df260
Add ActorsHavingTrait<TTrait>([Func<TTrait, bool])
2015-10-28 16:36:45 -05:00
RoosterDragon
7c889c5ef0
Fix TOCTOU issues when calling Game.RunAfterDelay.
...
Since the action runs after a delay, the state of the game may no longer be the same and it may no longer be valid to run the action. Anything that references the world now calls IsCurrentWorld to ensure the world hasn't changed or been disposed.
2015-10-25 19:44:21 +00:00
Paul Chote
9aa5828155
Merge pull request #9307 from obrakmann/fix6174_beacon-key-in-replays
...
Make some navigation keys available to spectators
2015-09-26 11:30:50 +01:00
atlimit8
9acf121eb1
Replace ActorInfo.Traits.WithInterface with ActorInfo.TraitInfos<T>()
2015-09-21 15:50:57 -05:00
Paul Chote
7f4663f606
Pull out a temporary variable in ProductionQueue.
2015-09-20 22:46:07 +01:00
Oliver Brakmann
379b5a181f
Make (Harvester|Base)AttackNotifiers visible to team mates and spectators
2015-09-20 22:37:34 +02:00
Paul Chote
ef55d646f7
Unstatic the Sound class.
2015-09-20 14:11:06 +01:00
atlimit8
09984683a7
Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types
2015-09-19 09:56:14 -05:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
85fab45451
Remove Actor.HasTrait<T>()
2015-09-19 09:49:23 -05:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00