Ian T. Jacobsen
91908c560d
Small cleanup in Harvester::OnNotifyBlockingMove
2014-02-09 15:47:02 +00:00
Chris Forbes
b55b64e86c
Allow DeliveryBuildings: to be specified on Harvester
...
This allows multiple harv/proc type pairs, requested in #4323 .
2013-12-21 10:27:46 +13:00
Paul Chote
410cd1c7b1
Reorganise ResourceLayer implementation.
2013-12-06 22:24:07 +13:00
Paul Chote
587fac377e
Make the non-support of frozen actor targeting in EnterOrderTargeter explicit.
2013-08-12 21:34:20 +12:00
Paul Chote
e4d1c654ed
Merge IOrderTargeter.CanTargetActor and CanTargetLocation.
2013-08-11 22:23:52 +12:00
Paul Chote
a09bcbd47a
Use the rendered resource state for the harvest order targeter.
2013-07-25 18:11:54 +12:00
Paul Chote
9eaeeffae9
CenterLocation.ToCPos() -> CenterPosition.ToCPos().
2013-07-08 21:52:26 +12:00
Paul Chote
efc494b859
Allow force-move to disable the harvest activity. Fixes #3459 .
2013-06-23 14:22:37 +12:00
Paul Chote
0029cb8aec
Allow Harvester to define the number of harvestable facings.
2013-06-22 19:25:10 +12:00
Paul Chote
80c3cf479d
Remove harvester dependency on RenderUnit.
2013-06-22 16:58:40 +12:00
Scott_NZ
ac430bd3bc
Add force-move
2013-05-18 17:52:36 +12:00
Matthias Mailänder
e09a7f57f3
Undock harvesters when refinery is destroyed or not in world
...
fixes #2029
2013-04-24 13:42:02 +02:00
Kenny
f41fb32d60
Introducing per-player shrouds.
...
- Each player has their own shroud and their visibility does not extend outside of the shroud.
- Units and buildings can no longer target other units outside of their visibility. Buildings can still be targetted if they have been explored.
- GPS will provide visibility in the fog-of-war.
- Spies that infiltrate radar domes will gain their victim's exploration and reset it on all clients (if the victim does not have GPS)
2012-12-13 15:16:56 -08: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
1d4f1c657f
Fix for crash after selling all refineries.
2012-06-30 16:37:50 +12:00
James Dunne
9a66d7b530
Harvesters will return to ordered-to location if told to harvest a specific cell while full after delivery instead of the last successfully harvested cell which may be far away.
2012-06-30 16:37:50 +12:00
James Dunne
3754e791e5
Fix for null ref exception after refinery is sold.
2012-06-29 22:55:45 -05:00
James Dunne
643154de15
Harvesters obey player when told to stop or move somewhere else.
2012-06-29 22:38:24 -05:00
James Dunne
8e602104af
Harvesters - made search radius configurable for both initial search from proc and search from harvest location.
2012-06-27 18:00:42 -05:00
James Dunne
2f773e49ef
Fixed null ref exception while playing cnc.
2012-06-24 21:41:16 -05:00
James Dunne
03ec1f08cf
Made ResourceClaimLayer trait optional on World actor to fix cnc and d2k.
2012-06-24 21:41:16 -05:00
James Dunne
a0f9f98b1c
Removed unnecessary mobile local.
2012-06-24 21:00:25 -05:00
James Dunne
b59a0e8c0d
Fixed harvesters for AI to search the entire map when no more resources nearby.
2012-06-24 20:26:01 -05:00
James Dunne
1fa70d259f
Removed INudge in favor of INotifyBlockingMove.
2012-06-24 20:26:01 -05:00
James Dunne
1f0da42a15
Refineries now show which harvesters are linked by holding down ALT key.
2012-06-24 20:26:01 -05:00
James Dunne
845379e577
Harvesters no longer block each other during low-ore contention and wait for a random amount of time while idle to search for more resources.
2012-06-24 20:26:00 -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
Chris Forbes
9279161de6
tidy in OreRefinery, Harvester, CncLobbyLogic, ScaredyCat
2011-10-31 09:11:33 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
d202f9627f
fix #1205 -- desync when AI builds harvs
2011-10-14 08:24:45 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Curtis S
c1f522db63
Fix #1157 : Removed HARV minining from cell in front / using MoveAdjacentTo in logic. Was causing harvesters to get stuck - need to revisit this.
2011-09-15 20:49:33 -06:00
Chris Forbes
257bd6f431
fixed #849 -- forceMove plumbing removed, noone uses it.
2011-08-17 07:52:35 +12:00
Paul Chote
5fe5addc0c
Make Harvester.Fullness an int
2011-07-27 20:00:23 +12:00
Paul Chote
2231940056
Harvesters harvest the cell in front of them; fix harvester target lines; split harvester activities into their own (correctly named) files.
2011-07-25 22:23:21 +12:00
Chris Forbes
fe6a99c993
fixed #42 -- show harvester fullness in sprites
2011-07-17 17:55:51 +12:00
Paul Chote
64b88819a9
Add plumbing to support ownership checks in MobileInfo.CanEnterCell.
2011-07-14 21:00:50 +12:00
Paul Chote
a4e319b9d2
Define a specific harvest cursor. Use attack for cnc harvest.
2011-06-25 17:40:34 +12:00
Paul Chote
2d34169d79
Fix harv/proc/selling interaction. Fix formatting issues in OreRefinery. ( Fixes #901 , #903 )
2011-06-24 00:40:58 +12:00
Chris Forbes
d54c632812
remove unused LinkProc function
2011-05-30 20:59:11 +12:00
Paul Chote
24908b7269
Split Harvest activity into saner chunks; fix pathfinding.
2011-04-18 10:47:10 +12:00
Paul Chote
eff37461d8
Pull Visible crap out of Harvester
2011-04-18 09:34:58 +12:00
Paul Chote
63e40aec68
Remove some crap from OreRefinery
2011-04-18 09:34:43 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Chris Forbes
a3994df925
queries dies
2011-03-17 22:09:10 +13:00
Chris Forbes
149324ea92
remove most of the crap from queries
2011-03-17 22:09:08 +13:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Paul Chote
451e06190f
Sync harvester contents. Add ISync to ProductionQueue.
2011-02-03 08:27:35 +13:00
Chris Forbes
f52620f6fc
add ISync to all traits that have [Sync] members
2011-01-26 21:00:28 +13:00