Paul Chote
561cb6cfe0
Rewrite Leap activity to be more robust.
...
The dog will now always leap to the target
subcell (even if the target dies or moves),
and will kill whatever happens to be in the
target cell when it lands.
2013-07-08 21:52:25 +12:00
Paul Chote
82b7854ed7
Make MobileInfo.SubCellOffsets static.
2013-07-08 21:52:25 +12:00
Chris Forbes
c0e0efd0ef
movement equivalence classes
...
These can be used as a basis for a bunch of pathing optimizations.
- Feasability of movement can be precomputed for each class, avoiding
the worst-case pathfinding behavior
- A path could potentially be shared between all members of a class.
This isnt necessarily the best path for any single unit, as it
doesn't care about efficiency of movement across various terrain --
but it would be a "reasonable" path that the whole group could take
together.
- General pathing checks can be converted from intersection of sets of
strings to a simple AND.
- Other, wilder things.
V2: be paranoid about too-long bit vectors.
2013-06-26 20:50:51 +12:00
Scott_NZ
ac430bd3bc
Add force-move
2013-05-18 17:52:36 +12:00
Paul Chote
55d5db0f02
Set produced unit position via an ActorInitializer. Fixes #3214 .
2013-05-04 12:11:43 +12:00
Chris Forbes
a13f9ea3eb
Revert "Fix bogus pathability check."
...
This reverts commit 8676562d47 .
2013-04-21 13:58:10 +12:00
Chris Forbes
9a65399fed
unlag move order response
2013-04-20 21:34:03 +12:00
Paul Chote
8676562d47
Fix bogus pathability check.
...
This fixes units on pathable bridge tiles from
being killed on bridge death (they were failing
the check against themselves).
2013-04-15 08:04:44 +12:00
Paul Chote
9b7bb53287
LocalPlayer.Shroud is never the right shroud.
2013-04-10 21:42:30 +12:00
Matthias Mailänder
c731a7960e
embed the previously manually edited outdated documentation
...
from https://github.com/OpenRA/OpenRA/wiki/Trait-Documentation
2013-03-20 21:20:27 +01:00
Matthias Mailänder
e0b7242f1b
adding new ai functional
2013-03-06 11:17:02 +01:00
Chris Forbes
403b51ca4b
remove duplication in Mobile
2012-10-13 12:55:51 +13:00
Chris Forbes
3fad0983b9
simplify Mobile using new ordering from FindTilesInCircle
2012-10-13 12:55:51 +13:00
James Dunne
ba1a36f26e
Units heading in generally opposite directions are now considered blockers; this fixes pathing deadlocks.
2012-07-05 23:53:31 -05:00
James Dunne
9c9a16d80e
Path planning no longer considers moving friendly units as blockers.
2012-07-05 23:52:34 -05:00
Chris Forbes
f2ab8a8541
generalize rough cursor to be customizable for any terrain type
2012-07-01 12:49:14 +12:00
Matthias Mailänder
579ff04f68
fixes #2253
...
rough mouse-cursor for infantry-only areas
blue move cursor for d2k rally points
2012-07-01 12:41:23 +12:00
James Dunne
1fa70d259f
Removed INudge in favor of INotifyBlockingMove.
2012-06-24 20:26:01 -05:00
James Dunne
80123b6aa4
Many harvester behavior improvements; summary below.
...
Implemented Harvester territory marking with a simple resource claim system in ResourceClaimLayer trait added to World.
Added customCost for PathSearch to support new Harvester search preferences.
Explicit delivery order forces harvester to always deliver to that refinery.
Explicit harvest order frees harvester from forced delivery refinery and allows for auto-balancing.
Harvesters auto-balance refinery choice such that no more than 3 harvesters are linked to any one refinery at a time.
Harvesters try very hard to not block the refinery dock location.
Harvesters try to avoid enemy territory when searching for resources.
Group-select harvest order intelligently disperses harvesters around the order location.
Fixed PathFinder caching to not be a sliding window. This is a correctness issue. Sliding window causes no-route paths to be cached permanently in tight move loops and doesn't allow eventual progress to be made. This may have negative performance implications.
2012-06-24 20:26:00 -05:00
James Dunne
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
unknown
21ab0b461c
Added straightforward hover behavior for all units. Give a unit a nonzero Altitude: in its Mobile: block and the WithShadow: trait to make it hover.
2012-06-18 20:53:38 +12:00
Chris Forbes
6cb8ee1f9f
expose appropriate *Inits, and make them work in editor
2011-11-06 18:17:13 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
2bc260c833
move Activity from OpenRA.Traits.Activities namespace to OpenRA.Traits
2011-10-06 23:11:58 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
257bd6f431
fixed #849 -- forceMove plumbing removed, noone uses it.
2011-08-17 07:52:35 +12:00
Chris Forbes
36f6e503ef
clean up some of the noise in Move
2011-08-15 14:48:17 +12:00
Chris Forbes
5546e977a8
add audio feedback for Stop order
2011-08-13 15:01:42 +12:00
Chris Forbes
c4666df6b9
fix long line in Mobile
2011-08-13 15:01:41 +12:00
Chris Forbes
9f0f8d381f
map scatter->move for audio; #1093
2011-08-13 15:01:41 +12:00
Chris Forbes
ddc1311d87
Make RenderUnit require IFacing; RenderSimple can be used for crates, mines, etc; fix husk facing init
2011-08-09 08:51:35 +12:00
Paul Chote
19ead53223
Add a WarnCrush method to ICrushable which is called when a crusher begins to enter the cell.
2011-07-15 20:10:21 +12:00
Paul Chote
74d13286a8
Add a force flag to nudging which skips the ownership and idle checks
2011-07-15 20:10:21 +12:00
Paul Chote
98ae8c7630
Take ownership into account when determining crushability. Fixes the important half of #951 (tanks crushing your own walls).
2011-07-14 21:00:50 +12:00
Paul Chote
64b88819a9
Add plumbing to support ownership checks in MobileInfo.CanEnterCell.
2011-07-14 21:00:50 +12:00
Chris Forbes
914b3e1bee
use generic GetValue<> in MobileInfo custom loader
2011-07-14 20:29:09 +12:00
Chris Forbes
cd63da85d8
remove FieldLoader.LoadAttribute; replace with FieldLoader.IgnoreAttribute
2011-07-14 20:29:03 +12:00
Paul Chote
d4baf2d757
Refactor UnitInfluence trait -> world.ActorMap
2011-05-22 19:32:53 +12:00
Chris Forbes
3a0dcf3ae4
trim some crap
2011-04-29 19:37:36 +12:00
Chris Forbes
4f76876f05
remove one of the Move constructors
2011-04-17 19:22:21 +12:00
Paul Chote
b2167adf1a
Kill QueuedActivity
2011-04-16 15:37:31 +12:00
alzeih
255bac6aff
QueuedActivity's Insert is broken
2011-04-16 12:50:13 +12:00
Paul Chote
0d53346138
Fix bogus ClampToWorld behavior (allowed helicopters to fly outside map)
2011-03-19 21:01:14 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
e2af08f812
Add a scatter key
2011-02-06 13:15:47 +13:00
Paul Chote
de26b63fd2
Fix capturing etc
2011-02-05 18:13:30 +13:00
Paul Chote
afcb724793
Fix subcell crushing properly.
2011-02-05 08:47:53 +13:00
Paul Chote
e28ed916aa
Improve spacing
2011-02-04 18:39:03 +13:00
Paul Chote
9c63292a83
Allow units to move between subcells. Visually not quite right.
2011-02-04 18:39:03 +13:00
Chris Forbes
4aaafd18f1
fix compile failure
2011-02-04 18:39:03 +13:00