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
0676116d77
Convert Move and related plumbing to world coordinates.
2013-07-21 17:35:45 +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
ac3f63b59c
Remove IHasLocation lookup from Target.
2013-07-21 17:31:00 +12:00
Paul Chote
f18994f800
Add WVec.HorizontalLengthSquared to simplify range checks.
2013-07-21 17:30:58 +12:00
Paul Chote
ddd1314613
Convert ScreenShaker to world coords.
2013-07-20 15:34:28 +12:00
Matthias Mailänder
667aee095f
Merge pull request #3571 from pchote/split-shadows
...
Add support for TS/RA2 split-shadows.
2013-07-15 09:18:35 -07:00
Paul Chote
15688eed13
Allow Animation to generate its own Renderables.
2013-07-15 20:54:02 +12:00
Curtis Shmyr
a1f05fd017
Remove unused interface INotifyOtherCaptured
2013-07-14 11:53:15 -06:00
ScottNZ
e4e92ec900
Add RejectsOrders to disallow orders for offmap aircraft etc
2013-07-12 16:04:14 +12:00
Matthias Mailänder
9a6e7f749b
Merge pull request #3545 from pchote/infantry-range-fix
...
Infantry range fix
2013-07-11 11:45:15 -07:00
Paul Chote
045eb12388
Fix an integer overflow in Target.IsInRange.
2013-07-11 19:59:06 +12:00
Paul Chote
9b9952dcdf
Change ITargetable TargetableCells -> TargetablePositions.
2013-07-10 19:09:28 +12:00
Paul Chote
01de84e9fc
Ensure valid targets in Selectable.
2013-07-08 23:40:21 +12:00
Paul Chote
4b1323ada5
Target cleanup.
2013-07-08 21:52:28 +12:00
Paul Chote
89fd889cf4
Convert Target positions to world coords.
2013-07-08 21:52:28 +12:00
Paul Chote
d0bed06765
Use WVec overload of Util.GetFacing where possible.
2013-07-08 21:52:27 +12:00
Paul Chote
0fdffd7b6a
Convert Drag to world coords.
2013-07-08 21:52:27 +12:00
Paul Chote
7f25573cfa
Convert Selectable to world coords.
2013-07-08 21:52:26 +12:00
Paul Chote
9eaeeffae9
CenterLocation.ToCPos() -> CenterPosition.ToCPos().
2013-07-08 21:52:26 +12:00
Paul Chote
2a0eff2ed0
Convert DrawLineToTarget to world coords.
2013-07-08 21:52:25 +12:00
Paul Chote
399aac7e0f
Extend Target with world-coordinate range checks.
2013-07-06 19:12:26 +12:00
Matthias Mailänder
b93e9a5945
Merge pull request #3458 from pchote/harvester-animations
...
Fix the harvest animations for TS and D2k.
2013-06-22 01:21:34 -07:00
Paul Chote
80c3cf479d
Remove harvester dependency on RenderUnit.
2013-06-22 16:58:40 +12:00
Paul Chote
9adfb56f65
Only update vis for actors in the world. Fixes #2726 .
2013-06-22 13:15:38 +12:00
Paul Chote
b95cd0c91f
Add an extra sanity check.
2013-06-22 13:15:38 +12:00
Paul Chote
7bce2017c3
Simplify and increase robustness of Shroud et al. Fixes #3440 .
2013-06-22 13:15:27 +12:00
Paul Chote
5ee9b5cab4
Support additional render damage states for buildings.
2013-06-20 21:53:31 +12:00
Paul Chote
1a3a4bd7ba
Remove unnecessary parameter from RenderSprites ctor.
2013-06-20 21:39:12 +12:00
Paul Chote
e99d0a0b43
RenderBuildingRefinery -> WithResources.
2013-06-20 18:28:33 +12:00
Chris Forbes
979ac4f91f
Merge pull request #3407 from pchote/voxel-fbo
...
Voxel refactoring
2013-06-19 14:57:17 -07: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
Paul Chote
7beef85a64
Use PaletteReferences everywhere.
2013-06-15 19:16:08 +12:00
Paul Chote
9b576d3fdd
Add a visualization layer for renderable geometry.
2013-06-15 19:16:08 +12:00
Chris Forbes
ae809ce39f
Use actor/target generations to invalidate targets on ownership change
2013-06-13 09:44:50 +12:00
Chris Forbes
5bc47f4834
Add generation counting to Actor and Target
...
This allows us to invalidate targets based on arbitrary conditions,
just by bumping the actor's generation number.
The next patches will use this.
2013-06-13 09:44:13 +12:00
Paul Chote
c149898592
Separate IBodyOrientation from render traits.
2013-05-28 22:37:06 +12:00
Paul Chote
53aa698491
Rename LocalCoordinatesModel -> BodyOrientation.
2013-05-28 22:34:59 +12:00
Paul Chote
13f8d944d2
Split RenderSprites out of RenderSimple.
...
RenderSprites handles sprite drawing independently
from the extra bits needed by actors that only use
sprites.
2013-05-28 22:34:57 +12:00
Chris Forbes
33376b52bd
Merge pull request #3312 from ScottNZ/forcemove
...
Add force-move
2013-05-26 13:23:14 -07:00
Scott_NZ
ac430bd3bc
Add force-move
2013-05-18 17:52:36 +12:00
Paul Chote
ca5f2c3785
Split Renderable into an IRenderable interface and SpriteRenderable implementation.
2013-05-17 18:12:28 +12:00
Paul Chote
462478afdf
Convert building rendering to world coordinates.
2013-05-17 18:12:27 +12:00
Paul Chote
fe716e76a7
Convert AnimationWithOffset to world coords.
...
Animations (via Actor.CenterPosition) now
understand Altitude, so there is potential for
mis-positioned animations if any existing altitude
hacks were missed.
2013-05-17 18:12:27 +12:00
Paul Chote
d878c96343
Change Renderable to take centered positions.
2013-05-17 18:12:26 +12:00
Paul Chote
d103a187f6
Make the guts of Renderable private.
2013-05-17 18:12:26 +12:00
Paul Chote
7719ad1f2d
Move Renderable into its own file.
2013-05-17 18:12:26 +12:00