Paul Chote
ae7cfa56b7
Restrict IActorPreviewInitInfo to ActorInit.
2020-06-19 17:57:56 +02:00
Paul Chote
b856613194
Add ISingleInstanceInit interface.
...
Inits that are logically singletons (e.g. actor
location or owner) should implement this interface
to avoid runtime inconsistencies.
Duplicate instances are rejected at init-time,
allowing simpler queries when they are used.
2020-06-19 17:57:56 +02:00
Paul Chote
803b930405
Change IFacing.TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
6adf45bcb4
Convert IFacing.Facing and TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
6d6b21a0eb
Convert Aircraft.Facing to WAngle.
2020-06-01 20:25:38 +02:00
Ivaylo Draganov
b8a9f41892
Add missing trait descriptions for cursors and unify the language
2020-05-31 00:12:04 +02:00
Ivaylo Draganov
227567dfe1
Formatting: wrap and indent long argument lists
2020-05-31 00:12:04 +02:00
Ivaylo Draganov
d5ff5c672b
Add configurable cursors for entering allied actor targeters
2020-05-31 00:12:04 +02:00
Paul Chote
7c6ec577dc
Rewrite ActorInit queries.
2020-05-28 19:04:53 +02:00
tovl
e0357596f5
Correct aircraft repulsion direction when outside of the map.
2020-05-17 12:46:17 +02:00
atlimit8
1ef27d18c1
check name for Actor.GrantCondition()
2020-05-17 12:33:29 +02:00
atlimit8
259c8d2c98
Merge ConditionManager trait directly into Actor
2020-05-09 15:46:11 +02:00
Paul Chote
84419e4259
Add queued argument to CanIssueDeployOrder.
2020-02-24 12:56:49 +01:00
reaperrr
1e43a8f590
Minor Aircraft ResolveOrder optimization
...
Streamline RTB if checks.
2020-02-22 17:56:47 +00:00
tovl
fbfef903ac
Let movement trigger visibility recalculation.
2020-01-12 04:50:25 +01:00
reaperrr
16c2062d9d
Replace LandOnCondition with landing when paused
2020-01-06 21:47:53 +00:00
reaperrr
4499343ed2
Make Aircraft actually pausable/disableable
...
This commit makes aircraft
- ignore any aircraft-specific orders while disabled
- show blocked move cursor while paused
- set speeds to zero while paused or disabled
2020-01-06 21:47:53 +00:00
reaperrr
4b006bc484
Make Aircraft PausableConditional
...
Note: This commit only does the minimum changes
to implement PausableConditional, there are no
logic changes yet (like disabling movement on PauseOnCondition).
2020-01-06 21:47:53 +00:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
tovl
3236499fb7
Increase IMove.MoveTo call flexibility.
2019-12-13 23:51:03 +01:00
abcdefg30
4717e98c48
Add a subCell parameter to IPositionableInfo.CanEnterCell
2019-11-21 14:13:17 +01:00
reaperrr
ee00954f2e
Replace AmmoPool lookup methods with properties
...
And gave the more suitable names while at it.
This is more in line with how we do things in
other places.
2019-11-20 15:45:41 +01:00
Paul Chote
27205b30e5
Remove landing behaviour from force-move orders on selectable buildings.
2019-11-02 18:29:16 +00:00
Paul Chote
5315f8603f
Override selection if the mouse is over an already selected actor.
2019-10-30 14:53:23 +01:00
Paul Chote
0e4cb53ada
Pass contextual information to TargetOverridesSelection.
2019-10-30 14:53:23 +01:00
Paul Chote
ae34410c80
Replace MoveIntoWorld with ReturnToCell/AssociateWithAirfield.
2019-10-17 23:31:15 +02:00
Paul Chote
9b4d149a06
Revert "Suppress MoveIntoWorldInit for map-placed Mobile actors."
...
This reverts commit f0c28cc15334c7224630c375d669274f8da8fb31.
2019-10-17 23:31:15 +02:00
Paul Chote
5eaa99827d
Suppress MoveIntoWorldInit for map-placed Mobile actors.
2019-10-07 19:02:48 +02:00
abcdefg30
56726a0533
Add an ICreationActivity interface
2019-10-06 14:42:50 +01:00
tovl
ac6431acf8
Clean up usage of CancelActivity.
2019-10-05 19:07:54 +02:00
tovl
145b6a05a3
Refactor unreserve actions.
2019-09-26 18:39:44 +02:00
tovl
5787f74af9
Prevent bogus attackmove on take-off.
2019-09-26 18:39:44 +02:00
tovl
4a609bbee8
Allow units to give way when path is blocked by oncoming unit.
2019-09-15 17:51:34 +01:00
reaperrr
801f5ba525
Rename FlyCircle to FlyIdle and make it tick TickIdle
...
It now handles both hovering and circling aircraft, for consistency.
2019-09-01 16:38:44 +02:00
reaperrr
07de3ba5e0
Change default preview facing to 96
...
92 is not a multiple of 8, and all sprite actors
in the official mods have at most 32 facings.
2019-08-27 22:59:22 +02:00
tovl
ed8abe9861
Define nearenough parameter for aircraft so they can exit movement early when stuck.
2019-08-23 13:54:58 +02:00
tovl
2d394f33b8
Fix units from transports appearing at load point.
2019-08-19 00:33:38 +02:00
Paul Chote
78302ea593
Rework aircraft rally point handling.
2019-08-15 17:02:27 +02:00
reaperrr
08db7586d4
Fix Enter cursor for non-TakeOffOnResupply
...
If the aircraft does not take off on resupply,
we allow it to enter resuppliers without ForceMove modifier.
ResolveOrder already handled this correctly, only the cursor
shown was wrong.
2019-08-13 02:26:21 +02:00
tovl
c0d5cd750d
Add missing target lines.
2019-08-10 12:17:36 +02:00
reaperrr
7cfc65010f
Fix that aircraft with TakeOffOnResupply can't force-land
2019-08-09 09:45:40 +02:00
Turupawn
3240b1e9eb
Overhaul target line rendering:
...
- Targets are now defined by the activities
- Queued activities are shown
- Support custom attack colors
2019-08-05 02:53:09 +01:00
reaperrr
4c3f2f3afa
Fix aircraft allowing enter when it should not
...
Show "enter-blocked" cursor when resupply is not possible,
except when
- the actor CanForceLand,
- does not TakeOffOnResupply,
- and has active ForceEnter modifier.
2019-07-23 17:01:41 +02:00
reaperrr
e7769357a8
Improve AircraftCanEnter readability
2019-07-23 17:01:41 +02:00
reaperrr
30c2e6b4d2
Remove Resupply re-queueing hack from Aircraft
...
By preventing that other traits can remotely cancel Resupply
or ReturnToBase.
2019-07-21 16:29:38 +02:00
reaperrr
bfcdb3a8a2
Add IdleBehavior enum to Aircraft
2019-07-21 16:29:38 +02:00
reaperrr
d185f6e9f1
Remove AbortOnResupply from Aircraft again
...
This was accidentally re-added during a rebase in
a previous PR.
2019-07-21 16:29:38 +02:00
tovl
c5558e2145
Remove SequenceActivities.
2019-07-20 23:41:31 +02:00
tovl
ed18ecfcaf
Allow explicit landing orders to be disabled in yaml.
2019-07-19 12:14:39 +02:00
reaperrr
cf4d73ab91
Revert FlightDynamics
...
This needs more thought and most parts might get superseded
by other approaches.
Kept CanSlide separation from CanHover.
2019-07-18 10:26:43 +02:00