Commit Graph

54 Commits

Author SHA1 Message Date
Paul Chote
9ee9de01b1 Use cell positioning to look up resupply actors. Fixes #3901.
FindActorsInBox only checks against the centre of
actors, so testing two points is rarely going to
work.
2013-10-05 23:28:46 +13:00
Paul Chote
e03ec690ff Track actor positions in ActorMap. 2013-09-27 15:36:51 +12:00
Paul Chote
b00cc6108d Make ActorMap addition explicit. 2013-09-27 15:36:51 +12:00
Paul Chote
dfd51c0caa Introduce ScreenMap trait for caching screen-coord queries. 2013-09-27 15:36:25 +12: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
57adaf46b0 Rewrite Aircraft movement using world coords. 2013-07-21 17:35:47 +12:00
Paul Chote
c3f04cc32e Convert non-aircraft positioning to world coords.
This removes the incomplete and unused hover code
on Mobile, which would be more trouble that it is
currently worth to carry over.
2013-07-21 17:35:47 +12:00
Paul Chote
6a435752fd Remove *PxPosition from IOccupySpace/IPositionable. 2013-07-21 17:35:46 +12:00
Paul Chote
19165d259d Add world coord overloads to IOccupySpace and IPositionable. 2013-07-21 17:35:46 +12:00
Paul Chote
048bed0a5e Rename ITeleportable -> IPositionable. 2013-07-21 17:35:41 +12:00
Paul Chote
ecc119cb29 Combine IHasLocation -> IOccupySpace, IMove -> ITeleportable. 2013-07-21 17:33:32 +12:00
Paul Chote
27f04c1b78 Rename FindUnits -> FindActorsInBox. 2013-07-20 15:34:28 +12:00
Paul Chote
37c02fea79 Remove PPos overload of FindUnits. 2013-07-20 15:34:27 +12:00
Paul Chote
9eaeeffae9 CenterLocation.ToCPos() -> CenterPosition.ToCPos(). 2013-07-08 21:52:26 +12:00
Matthias Mailänder
11755798cc Don't reserve airfields/helipads for husks that just fall down
fixes #3376
2013-06-16 12:43:41 +02:00
Scott_NZ
ac430bd3bc Add force-move 2013-05-18 17:52:36 +12:00
Matthias Mailänder
e38aea276c removed now redundant debug aircraft traits 2013-05-10 22:32:05 +02:00
Paul Chote
55d5db0f02 Set produced unit position via an ActorInitializer. Fixes #3214. 2013-05-04 12:11:43 +12:00
Matthias Mailänder
72841a51e6 add shroud, creates shroud and reveals shroud to syncreport 2013-03-06 16:05:31 +01:00
James Dunne
b127ae8027 Added sub-pixel position/vector types.
Updated Sync code to handle new sub-pixel types.
2012-06-21 19:41:12 -05:00
James Dunne
9c49143534 New types for cell and pixel coordinate position/vectors. 2012-06-21 15:36:59 -05:00
Curtis Shmyr
b8b9d34404 Aircraft can use friendly service depots/airfields/helipads 2012-02-13 09:11:32 +13:00
Chris Forbes
a566a372f5 (2/2) #1210 Remove QueueResupplyActivities entirely, just queue ResupplyAircraft 2011-12-03 10:16:10 +13:00
Chris Forbes
7b06e39390 (1/2) #1210 Untangling QueueResupplyActivities 2011-12-03 10:16:10 +13:00
Chris Forbes
6cb8ee1f9f expose appropriate *Inits, and make them work in editor 2011-11-06 18:17:13 +13:00
Chris Forbes
9719e10edd drop spurious 'self' from ReserveSpawnBuilding, GetActorBelow 2011-10-08 22:07:15 +13:00
Chris Forbes
c7f780eb1d factor out GetActorBelow from ReserveSpawnBuilding 2011-10-08 22:04:21 +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
d3def71340 Add ReturnToBase (F) support for aircraft; #1084 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
Chris Forbes
e81cbceb99 aircraft sync debug traits dont really need to do trait lookups every time the synchash is taken.. 2011-07-25 22:23:13 +12:00
Chris Forbes
8b78bc0602 move ReserveSpawnBuilding out of Plane.Tick and name it 2011-07-17 11:57:07 +12:00
Lawrence Wang
de5db51f25 Fixed #856 - created trait for ammo reload time, set for some aircraft 2011-06-25 11:54:12 +12:00
Paul Chote
d4baf2d757 Refactor UnitInfluence trait -> world.ActorMap 2011-05-22 19:32:53 +12:00
Chris Forbes
447fd05723 unify handling of order expose + issue for plane/heli; was identical 2011-04-16 12:01:23 +12:00
Chris Forbes
865f3e1b74 factor out resupply activity queueing for plane/heli into aircraft 2011-04-16 11:59:42 +12:00
Paul Chote
1c2574f4f4 Add an INotifyKilled interface, which is what most things that used INotifyDamaged actually cared about. 2011-04-16 10:58:35 +12:00
Paul Chote
f74d2318d8 Unreserve helipads on heli death. 2011-02-26 12:57:25 +13:00
Paul Chote
094907c1a9 Update copyright header. Normalize line endings to LF. 2011-02-13 10:38:57 +13:00
Paul Chote
48482cf09a Add an AttackWander trait for creeps. Remove a pile of bogosity from AttackMove. 2011-02-11 21:50:10 +13:00
Paul Chote
4b3c6cc62a Add a SubCell field to UIM. Allow UIM to query for units by subcell. 2011-02-04 18:39:03 +13:00
Chris Forbes
f52620f6fc add ISync to all traits that have [Sync] members 2011-01-26 21:00:28 +13:00
Paul Chote
58f1589f95 Add debug traits to Aircraft so we can see what is desyncing. 2011-01-25 18:19:36 +13:00
Paul Chote
d395c5e05d Remove dead helicopter instability code, and some unnecessary fp. 2011-01-07 20:00:53 +13:00
Chris Forbes
2048900c10 fix some dumbness in Production/ITeleportable 2011-01-02 14:41:48 +13:00
Paul Chote
6ff0e41650 Remove fp from Aircraft. 2010-12-24 12:01:39 +13:00
Chris Forbes
1db3ce4b59 some usings cleanup 2010-11-21 12:25:22 +13:00
Chris Forbes
bc7a9c14d0 fix helicopters landing in silly places 2010-11-14 21:27:17 +13:00