teinarss
e801537d96
Hide cursor and render the placeholder directly
2019-04-22 21:51:49 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Paul Chote
222d1af706
Don't create invalid targets (dead actors) in UOG.
2018-02-04 15:46:36 +01:00
Paul Chote
3af6ffc017
Revert "Remove CreateGroup order as the ActorGroupProxy is gone."
2018-01-28 14:58:44 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
6f5d035e79
Introduce IMouseBounds and split/rework mouse rectangles.
...
The render bounds for an actor now include the area covered
by bibs, shadows, and any other widgets. In many cases this
area is much larger than we really want to consider for
tooltips and mouse selection.
An optional Margin is added to Selectable to support cases
like infantry, where we want the mouse area of the actor
to be larger than the drawn selection box.
2017-12-11 19:45:07 +01:00
Paul Chote
d967c564a2
Remove TargetActor and TargetLocation from order issuing.
2017-10-15 19:07:46 +02:00
Paul Chote
f4f27f8980
Add support for queuing AttackMove orders.
2017-09-03 12:54:09 +02:00
Matthias Mailänder
cba0fc3475
Remove CreateGroup order as the ActorGroupProxy is gone.
2017-08-22 18:44:35 +02:00
reaperrr
d949e17b88
Perform FogObscures as late as possible
...
FogObscures is more expensive than simpler boolean, player or HasTraitInfo checks, so in these places it makes sense to perform the other checks first.
2017-08-07 09:42:12 +02:00
Paul Chote
52f1ab0969
Add backend code for unit command bar.
2017-06-06 08:53:54 -06:00
Paul Chote
b74141666b
Implement a workaround for the mono 5.0 cursor enumerator bug.
2017-05-19 14:31:00 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
d2f5fe7380
Draw order generator renderables above the shroud.
2016-08-22 20:27:59 +01:00
Paul Chote
acab6f1f4b
Fix custom order generators for left-click targeting.
2016-04-09 11:59:54 -04:00
Paul Chote
7a32c8e8e7
Change InputOverridesSelection return values to match name.
2016-04-09 11:24:10 -04: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
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
atlimit8
b07cd683e8
Easier actor selection in game by actor bounds center
2015-12-23 12:09:08 -06:00
Oliver Brakmann
59d22a2ff0
Fix AttackMove not working properly under certain conditions
...
This fixes the issue where AttackMove (and possibly other order modes) would not work properly when people were clicking their mouse buttons at the same time. A move order (the default order mode) would be issued instead.
2015-12-13 14:16:06 +01:00
Paul Chote
756bec69b3
Fall back to target cell if there are no valid orders against the target actor.
2015-11-26 18:37:40 +00:00
Paul Chote
fb99a1f3c2
Remove ActorMap query for each actor.
2015-11-26 18:30:43 +00:00
Paul Chote
7b31f18046
Reduce duplication in UnitOrderGenerator.
2015-11-26 18:25:39 +00:00
Paul Chote
124c0ea041
Make CanTarget modifiers a ref parameter.
2015-11-16 20:38:53 +00:00
Pavel Penev
a69f26b705
Fix players being able to manually attack invisible structures
2015-10-23 00:27:46 +03:00
reaperrr
2f69711341
Rename ActorMap *UnitsAt* occurences to *ActorsAt*
...
These enumerate actors in general, not just mobile actors (which the term 'unit' usually refers to).
2015-10-16 00:07:06 +02: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
deniz1a
ef143e5f8a
Freezes map after game ends.
...
Adds newline.
Disables keyboard hotkeys for units after game ends.
2015-07-25 18:56:23 +03:00
Matija Hustić
34d0518b29
Fixed regression from last PR.
2015-06-21 20:15:06 +01:00
reaperrr
c23ee1be2e
Remove Selectable boolean from Selectable trait
...
Add work-around for ta/td bridge huts since they need actor Bounds to
be targetable by C4/engineer repair.
2015-06-17 20:13:59 +02:00
Matthias Mailänder
8381fbd712
fix dereference after null check
2015-06-07 13:17:33 +02:00
Paul Chote
585a43fd8f
Rename Actor.Destroy/Destroyed to Dispose/Disposed.
2015-05-29 19:08:38 +01:00
Bynnar18
0abe8f9b2b
Fixes issues with support powers and adds property to all IOrderGenerator classes to determine priority over selection in the left-click order scheme.
2015-03-01 14:58:19 -06:00
Bynnar18
7b46b76329
Fixed left-click orders and implemented a selection deadzone.
2015-03-01 14:58:19 -06:00
Bynnar18
36d59d6b1d
Restored faulty left-click logic for now.
2015-03-01 14:58:18 -06:00
Jan-Willem Buurlage
7eb2106375
Change cursor according to the command with highest priority.
2015-02-08 22:38:05 +01: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
RoosterDragon
7cfece6dc0
Introduce a new type for representing map coordinates.
...
To resolve the ambiguity introduced when the introduction of isometric maps meant that cell and map coordinates were no longer equivalent, a new type has been introduced so they can each be represented separately.
2015-01-07 17:30:34 +00:00
RoosterDragon
c37a691c33
Convert some keys users of CellLayer to index via map-coords for efficiency.
2014-12-20 23:39:03 +00:00
Paul Chote
f5c09121ad
Remove buggy classic mouse orders. Closes #3153 .
2014-11-15 09:40:25 +13:00
Matthias Mailänder
a26a9cc3a2
StyleCop clean GenericSelectTarget
2014-11-01 21:48:09 +01:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
0884722c4b
Change IOrderGenerator.RenderAfterWorld to return Renderables.
2014-07-25 21:14:39 +12:00
Paul Chote
bcc32d15ed
Fix frozen actors being targetable under shroud. Fixes #5979 , #5978 .
2014-07-19 12:56:52 +12:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
086ec07eb6
Add World parameter to Target.FromCell.
2014-06-27 23:30:40 +12:00