Tomase
98602cb1cb
Change impassable terrain to short.max
2019-08-10 17:34:11 +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
tovl
8c7ff3b5b0
Make VisualMove uninterruptible by making Turn a Child of Drag.
2019-08-04 11:48:59 +02:00
teinarss
cc84daacea
Added cache for cell cost and blocking
2019-07-26 15:54:22 +02:00
teinarss
2ddf9fa826
Using Locomotor instead of Info for pathfinding
2019-07-26 15:54:22 +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
tovl
c5558e2145
Remove SequenceActivities.
2019-07-20 23:41:31 +02:00
tovl
b9c302a73a
Move ChildActivity handling into base Activity class.
2019-07-03 20:42:19 +02:00
Paul Chote
98125a3d94
Fix Mobile conditions.
...
The explicit IObservesVariables implementation was hiding
the base PausableConditionalTrait variable initialization.
2019-06-24 16:25:40 +02:00
Paul Chote
c853e8c5d6
Disable non-force move for deployed units.
2019-06-08 02:09:30 +02:00
tovl
ea036d4cc0
Allow move orders to cancel DeployForGrantedCondition.
2019-06-08 02:09:30 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
reaperrr
5f6c8ba5d3
Fix Mobile.CurrentMovementType vertical handling
...
On bleed, the Horizontal flag is always returned on any position change,
even if that change is vertical-only.
2019-04-20 00:48:12 +02:00
reaperrr
a10af382b4
Add plumbing for notifying traits of movement
...
More precisely, about start and stop of movement.
2019-03-30 16:24:47 +00:00
Oliver Brakmann
0bd00d3b7c
Add a ReturnToGroundLayerOnIdle flag to CustomMovementLayers
...
Co-authored-by: Mazar Farran <farranmazar@gmail.com >
Co-authored-by: Paul Chote <paul@chote.net >
2019-03-10 18:20:01 +01:00
Paul Chote
8fc483b30b
Work around a crash for invalid FrozenActor targets.
2019-03-10 17:29:17 +01:00
tovl
8191a6566b
Add missing self and optional pretick parameters to Queue, QueueChild and PrintActivity methods.
...
This means sequenceActivities needs to accept self as well.
2019-03-09 21:47:43 +00:00
tovl
2e5e7c22f4
Make Mobile a PausableConditionalTrait
2019-03-07 02:50:43 +01:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
Paul Chote
c7dc237143
Remove Order.TargetLocation from Mobile.
2019-03-04 18:08:42 +00:00
Paul Chote
d2274f4285
Rewrite Mobile.MoveIntoTarget to support moving targets.
2019-02-03 20:21:51 +01:00
Paul Chote
2080c72ab9
Define plumbing to pass initial target positions to inner move activities.
2019-01-26 22:53:46 +00:00
Paul Chote
b2d960ec19
Pass target line color to inner move activities.
2019-01-26 22:53:46 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
4723e5ddb9
Expose common actor Inits in the map editor.
2018-12-08 22:53:13 +01:00
Paul Chote
f6768fe624
Remove legacy editor actor properties plumbing.
2018-12-08 22:53:13 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Paul Chote
588a5d784f
Add IMove.EstimatedMoveDuration.
2018-10-07 18:46:21 +02:00
Chris Forbes
dcf93203ea
Get rid of unit pathing delay completely
2018-07-26 13:19:31 +01:00
reaperrr
6984c0ec10
Add AlwaysConsiderTurnAsMove plumbing to Mobile
...
Can be used to make walker units like the TS mechs display move animations while turning on the spot.
2018-07-19 22:09:43 +02:00
reaperrr
ff8f147955
Some Mobile and Harvester clean-ups
...
Made Harvester interface implementations explicit.
Made Mobile internal VisualMove activity private.
2018-05-07 19:40:07 +02:00
reaperrr
545ca5da61
Made some interface implementations in Mobile explicit
2018-05-07 19:40:07 +02:00
reaperrr
98289d8573
Reorganized Mobile.cs to be more readable and structured
...
Implicit interface members, explicit interface members, local method etc. were happily scattered all over the place.
We can't explicitly implement most IMove/IPositionable interface members without some large rewrite,
so we should at least organize the file in a way that makes it less of a pain to tell which parts belong to which interface.
2018-05-07 19:40:07 +02:00
reaperrr
030902f691
Style fixes to some code comments in Mobile
2018-05-07 19:40:07 +02:00
reaperrr
a52e83ca49
Add Locomotor lint check
2018-05-03 10:49:21 +02:00
reaperrr
81343926b6
Split Locomotor trait from Mobile
...
Add GrantConditionOn*Layer traits
This allows to
- drop some booleans from Locomotor
- drop a good part of the subterranean- and jumpjet-specific code/hacks from Mobile
- grant more than 1 condition per layer type (via multiple traits)
- easily add more traits of this kind for other layers
2018-05-03 10:49:21 +02:00
Chris Forbes
dddd057e3d
Add IPositionable.CanExistInCell
...
This is like CanEnterCell, but doesn't take into account conflicting
actors, etc.
2018-04-10 01:01:53 +02:00
Paul Chote
d79d4479c7
Work around AI orders to invalid cells.
2018-03-22 13:52:41 +01:00
Mustafa Alperen Seki
5e7e3bb011
Add DamageTypes to Kill() and make some traits use it.
2018-03-09 00:25:29 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Mustafa Alperen Seki
9871abe562
Make crushable conditional
2017-12-29 15:25:38 +00:00
RoosterDragon
62ab6ae6f1
OccupiedCells and TargetableCells must return arrays, not just enumerables.
...
This allows callers to efficiently enumerate these returned collections without the allocation and overhead imposed by the IEnumerable interface. All implementations were already returning arrays, so this only required a signature change.
2017-12-07 20:39:30 +02:00
Matthias Mailänder
b27289106d
Don't give an okay voice when not allowed to move into shroud.
2017-10-16 14:38:26 +02:00
Paul Chote
d967c564a2
Remove TargetActor and TargetLocation from order issuing.
2017-10-15 19:07:46 +02:00
reaperrr
8533debc44
Require explicit INotifyAddedToWorld and INotifyRemovedFromWorld
2017-10-07 10:17:11 +02:00
Oliver Brakmann
8f26b4e92b
Fix Mobile not sanitizing target location of Move orders
2017-08-13 17:23:37 +01:00
Paul Chote
4e493f265f
Revert TicksBeforePathing move from Mobile to Move.
...
This partially reverts commit 11c8cda0c38ad0ac71c58557d34480925307cebd.
2017-08-13 13:31:58 +02:00
reaperrr
94fa24088b
Add dedicated TDGunboat traits
...
And get rid of Mobile.OnRails hack.
2017-07-23 15:06:03 +02:00
Paul Chote
fdafbd9f15
Remove hardcoded references to FacingInit and TurretFacingInit.
2017-07-01 10:35:22 +01:00
Paul Chote
4040863707
Fix queued move activities.
2017-06-18 20:55:50 +02:00