Paul Chote
ebf3ec0e90
Add some basic safeguards around RenderPlayer.set.
2018-05-31 18:54:07 +02:00
reaperrr
4c16e51f92
Add EditorPlayer to all mods
...
To prevent the editor from loading unnecessary or even incompatible
player traits.
2018-04-06 20:46:47 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
reaperrr
786a0eb07f
Refactor PowerManager and RequiresPower to use conditions
...
Instead of Actor.IsDisabled.
Added INotifyPowerLevelChanged interface to do so as efficiently as possible.
2017-11-13 03:09:05 +02:00
Paul Chote
1376ad674e
Remove Player.CanViewActor and .CanTargetActor.
2017-11-03 09:56:00 +01:00
Paul Chote
47634b25f9
Remove IFogVisibilityModifier.
2017-11-03 09:56:00 +01:00
Paul Chote
b0906e1836
Add a bot type identifier.
2017-07-07 21:31:45 +01:00
Paul Chote
e88754cd4a
Expose Player.BotType and make fields readonly.
2017-07-07 21:31:45 +01:00
rob-v
1ff11d4115
Number AI players
2017-05-03 19:33:04 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06: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
Oliver Brakmann
a6e98620c0
Merge pull request #10650 from pchote/remove-fragile-diplomacy
...
Remove fragile diplomacy.
2016-02-06 22:55:55 +01:00
Paul Chote
73b3f20921
Remove fragile alliances feature.
2016-01-30 20:47:50 +00:00
DArcy Rush
eb795909da
Implement player stance colors
...
Adds an option to display actors on radar and
support weapon timers in colors denoting the
diplomatic stance toward the player.
2016-01-30 15:46:55 +01:00
RoosterDragon
21292061f9
Added "PERF: Avoid LINQ." comments.
2015-12-12 21:05:13 +00:00
RoosterDragon
0fab3ec1b2
Remove LINQ in some performance critical AutoTarget paths.
2015-12-12 20:55:18 +00:00
Pavel Penev
8d4d37ca46
Make GPS respect shroud
2015-11-21 01:11:40 +02:00
Pavel Penev
78e2eabd17
Remove byPlayer parameter from IFogVisibilityModifier.HasFogVisibility()
2015-11-21 01:11:38 +02:00
atlimit8
9acf121eb1
Replace ActorInfo.Traits.WithInterface with ActorInfo.TraitInfos<T>()
2015-09-21 15:50:57 -05:00
RoosterDragon
d1960258db
Speed up Player.CanViewActor.
...
Create Actor.CanBeViewedByPlayer and simply call this instead. The actor can cache all trait lookups on construction to avoid them being repeated for every visibility check.
2015-09-06 23:29:09 +01: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
Matthias Mailänder
6c45763d75
avoid observers being allied to world owning neutral players
2015-08-05 22:35:28 +02:00
Pavel Penev
5eaf5b5b51
Rename Session.Client.Race
2015-08-05 17:45:56 +03:00
penev92
479eb307d6
Remove unused parameter from Player's constructor
2015-07-15 04:58:50 +03:00
penev92
317576a9bb
Touch up Player.cs
2015-07-15 04:22:57 +03:00
penev92
b8aa92c4be
Rename Player.DisplayCountry to Player.DisplayFaction
2015-07-15 04:10:13 +03:00
penev92
bb648decc3
Rename Player.Country to Player.Faction
2015-07-15 04:06:52 +03:00
Oliver Brakmann
380cf22477
Merge pull request #8661 from penev92/bleed_renameCountry
...
Rename the Country trait to Faction
2015-07-14 21:05:52 +02: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
penev92
1d49c23af0
Rename PlayerReference.Race and LockRace to Faction and LockFaction
2015-07-05 23:08:49 +03:00
Oliver Brakmann
fc8a34a7a2
Match all kinds of spectators in Player::IsAlliedWith()
2015-06-29 18:11:52 +02:00
Paul Chote
0677c309f3
Move Shroud.IsTargetable to Player.
2015-06-19 22:02:08 +01:00
Paul Chote
b887d2bfd7
Introduce IDefaultVisibility.
2015-06-19 22:02:06 +01:00
Paul Chote
0a2757d0e0
Remove Shroud.IsExplored(Actor) and IsVisible(Actor).
2015-06-19 22:01:48 +01:00
Curtis Shmyr
6ca51e47c1
Give ally players a yellow hp bar for team health colors
2015-05-10 11:12:10 -06:00
Paul Chote
4b22436d14
Fix a regression from #7987 .
2015-04-20 04:55:31 +12:00
Paul Chote
3cfa96e7a6
Fix random country display.
2015-04-20 03:33:46 +12:00
penev92
cc73ba09ab
Fix flag-related crash for scripted "players"
2015-04-13 23:36:29 +03:00
Oliver Brakmann
7b1b17df4a
Allow non-selectable factions for players if LockRace is set
2015-04-12 15:27:25 +02:00
penev92
2c108a1845
Use proper names and flags for unknown players
2015-04-04 17:24:19 +03:00
abcdefg30
63fe578ba8
Allow picking of a random subfaction
2015-03-12 21:34:23 +01:00
Paul Chote
b968b527d2
Allow map players to use non-selectable races.
2015-03-03 18:45:46 +00:00
RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
Matthias Mailänder
e16bc064a0
fix the end game dialog not showing which objectives failed
...
- don't mark everything as failed just because one objective did
- remove fake objectives workarounds for non-playable factions
2014-12-06 21:04:46 +01:00
abcdefg30
d7857416b1
Added two diplomacy functions to lua
...
...and sneaked into AUTHORS
2014-10-19 13:30:00 +02:00
Paul Chote
19760b44cc
Don’t regenerate the lua player bindings each query.
2014-10-12 10:43:15 +13:00