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
Paul Chote
4b4172f757
Make the Enter activity use the closest target position.
2017-06-17 21:18:28 +02:00
Markus Hartung
2a0b3b39ea
INotifyCreated.Created now calls base properly
2017-06-04 17:11:44 +02:00
rob-v
fb1d8d780f
Fix Service Depot Rally point path finding (+rename ignoredActor)
2017-05-06 19:49:40 +02:00
Paul Chote
b373714da7
Force Mobile units to return to the ground layer when becoming idle.
2017-04-20 19:48:21 +01:00
abcdefg30
ce97b3a3a2
Fix IPositionableInfo not inheriting IOccupySpaceInfo
2017-02-09 22:04:33 +01:00
abcdefg30
a385835939
Fix GiveUnitCrateAction being limited to MobileInfo
2017-02-09 22:04:32 +01:00
Taryn Hill
1fe317dd57
Fix a typo in MobileInfo
2017-01-31 08:46:08 -06:00
Paul Chote
4f41b6e9ce
Implement elevated bridge placeholders.
2017-01-29 18:58:34 +00:00
Paul Chote
5c77c0dc28
Implement jumpjets.
2017-01-29 18:58:34 +00:00
Paul Chote
572c1cb89f
Implement subterranean units.
2017-01-29 18:58:33 +00:00
Paul Chote
41213ad2d1
Implement tunnels.
2017-01-29 18:58:33 +00:00
Paul Chote
2bd5a392d1
Add plumbing for custom movement layers.
2017-01-29 18:58:33 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
268ed016ab
Rename UpgradableTrait to ConditionalTrait.
2016-12-23 23:28:34 +00:00
reaperrr
b8c04a0887
Move INotifyBlockingMove to Common and require explicit implementation
2016-10-20 18:58:40 +02:00
reaperrr
16d4ee0034
Move IsMovingVertically to IMove
...
- avoids an Aircraft trait look-up in #11886
- potentially useful for future additional locomotors (jumpjet), custom locomotors in external mods, possibly future updates to default ground locomotor (Mobile) with regard to behavior on slopes
2016-10-02 20:27:03 +02:00
Paul Chote
30dcbeb873
Remove legacy Move constructor.
2016-06-25 16:29:47 +01:00
Oliver Brakmann
c2d4a3a8e8
Merge pull request #11470 from pchote/fix-direction-check
...
Fix Mobile.IsMovingInMyDirection check.
2016-06-22 22:49:03 +02:00
reaperrr
526f851489
Merge pull request #11426 from pchote/actorpreview-dynamic-facing
...
Support dynamic ActorPreview facings and creating previews from live actors.
2016-06-20 14:38:11 +02:00
Paul Chote
cf23c85834
Fix Mobile.IsMovingInMyDirection check.
...
self.Location returns mobile.ToCell, so the old
code would always return a dot product of 0.
2016-06-18 13:07:59 +01:00
Paul Chote
eb5b50185c
Add IActorPreviewInitModifier interface.
2016-06-15 20:36:25 +01:00