penev92
e64380e9df
Moved two more Orders from RA to Common
2014-10-11 11:57:05 +03:00
atlimit8
83acbe0266
Extended IMove for Enter logic
2014-10-02 20:47:28 -05:00
atlimit8
8ad1140921
Reduce ICrushable trait lookup & drop -SubCell suffix.
...
Replace `a.HasTrait<ICrushable>()` with a.TraitsImplementing<ICrushable>().Any() or equivalent.
2014-08-30 04:43:57 -05:00
atlimit8
e29b9edfc1
Changes to map.cs, rename IPositionable.IsLeaving{ => Cell}, add IPositionable.GetValidSubCell
2014-08-29 23:30:16 -05:00
atlimit8
63c28ee4d7
Refactored in new enum SubCell
2014-08-29 23:00:53 -05:00
atlimit8
27ad5208fb
Fixed Mobile.SetPosition & other FixUnloadCargo touch-ups
...
Fixed Mobile.SetPosition
Finally removed old SubCell enum
Folded MobileInfo.CanEnterCell overloads into one
Renamed IPositionable.{IsMovingFrom => IsLeaving}
Changed Crate.IsLeaving to use crate lifetime
2014-08-29 23:00:53 -05:00
atlimit8
b2c9064545
Refactored [sub-]cell availability logic in IPositionable & ActorMap
...
Moved the logic from IPositionable.CanEnterCell & integrated sub-cell selection.
Added IPositionable.IsMovingFrom(CPos location, int subCell = -1) - to detect transient actors
Renamed IPositionable.{GetDesiredSubcell => GetAvailableSubcell} - since it checks for available sub-cells
Reduced IPositionable.CanEnterCell to one method that usually uses IPositionable.GetAvailableSubcell
Added actor checking to ActorMap.{HasFreeSubCell, FreeSubCell, AnyUnitsAt} - used by [sub-]cell availability logic
2014-08-29 23:00:53 -05:00
atlimit8
ff7ad53dee
Fixed UnloadCargo stacking using new subcell API exposure
2014-08-29 23:00:53 -05:00
atlimit8
fe57417aa8
Added int subCell = -1 to IMove.MoveIntoWorld & IPositionable.SetPosition(Actor self, CPos cell)
2014-08-29 23:00:53 -05:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
84d3497e96
Convert speed modifiers to integer percentages.
2014-08-12 11:41:09 +12:00
atlimit8
43478dd500
enum SubCell => int & Dictionary<SubCell, WVec> => WVec[]
2014-08-04 18:09:26 -05:00
Taryn Hill
d6931f1d05
Added flag to Mobile/AircraftInfo: MoveIntoShroud.
...
Does not change the audio feedback given.
2014-08-01 20:43:29 -05:00
ScottNZ
16a30fd6b1
Add plane repulsion logic
2014-07-29 00:18:13 +12:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
5560f276ca
Map: Rename IsInMap -> Contains.
2014-06-27 22:07:03 +12:00
Pavlos Touboulidis
c282fa1077
Move GetTerrainIndex/Info from WorldUtils to Map
2014-06-13 13:57:32 +03:00
Pavlos Touboulidis
092352729f
Change terrain type from string based dictionaries to arrays
2014-06-13 11:20:54 +03:00
Kanar
b6a758494b
Small Polish: Adds voices for aircraft's stop-orders
2014-05-26 03:28:51 +02:00
Squiggles211
0e4b1d28aa
Fixes #4955 aircraft reservation crash
...
Fixes the specific cause of the crash reported in #4955 with HeliReturn
and adds an UnReserve call while attempting to reserve spawn building in
Aircraft.cs
2014-05-22 01:38:08 -05:00
Jordan Glue
ea32390700
closes #3091 Have Helis take off after repair/rearm
2014-05-05 19:31:57 +10:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Paul Chote
0b8dafcdf0
Convert actor speed to world coordinates.
2013-12-26 19:45:13 +13:00
Paul Chote
aa2f865d5d
Convert Altitude to world coords.
...
Removes the obsolete AltitudeInit: use CenterPositionInit instead.
2013-12-26 17:25:07 +13:00
ScottNZ
49b1e69f44
Fix a stack overflow
2013-11-12 19:39:40 +13:00
Paul Chote
4754a8019a
Support CenterPositionInit for Aircraft.
2013-10-31 21:30:13 +13:00
Taryn Hill
e3e7d0b38c
Add ignoreActor and checkTransientActors to IPositionable.CanEnterCell
...
Improved 'return' checks
Removed unnecessary 'using'
Fixed defaults.yaml spelling error
2013-10-13 20:24:29 -04:00
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