RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
Pavel Penev
b16ebd480b
Rename MapGridType.Diamond to MapGridType.RectangularIsometric
2015-10-26 00:42:30 +02:00
Pavel Penev
bb3aea338a
Rename enum TileShape to MapGridType
2015-10-26 00:41:21 +02:00
Pavel Penev
642468ce0c
Add MapGrid class
...
MapGrid is a mod Manifest field which includes (and thus makes redundant) TileSize, TileShape, SubCells info and MaximumTerrainHeight.
2015-09-27 04:14:43 +03:00
Paul Chote
e8794032e0
Introduce initial PPos plumbing.
...
PPos is best thought of as a cell grid applied in
screen space. Multiple cells with different
terrain heights may be projected to the same PPos,
or to multiple PPos if they do not align with the
screen grid.
PPos coordinates are used primarily for map edge
checks and shroud / visibility queries.
2015-07-27 19:34:49 +01:00
Matthias Mailänder
8d8d7ab8ea
rename WRange to WDist in documentation
2015-07-09 12:36:29 +02:00
Paul Chote
19c777a922
Move maximum terrain height definition to mod.yaml.
2015-07-05 17:49:56 +01:00
Paul Chote
86bf9086d9
Rename WorldRenderer.Position -> ProjectedPosition.
2015-07-05 14:57:59 +01:00
Paul Chote
53e9692dbe
Fix scissoring in the editor.
2015-06-21 13:47:20 +01:00
Paul Chote
198a51e5e0
Fix VisibleCellsInsideBounds.
2015-06-21 13:41:39 +01:00
Paul Chote
40d018aaf3
Rewrite and document the visible cells calculation.
2015-06-21 13:41:38 +01:00
Paul Chote
c44afc0722
Remove viewport editor-mode assumptions.
2015-06-16 08:16:49 +01:00
Paul Chote
2156a234db
Render shroud outside map bounds.
...
Fixes a regression from #8337 .
2015-06-15 18:06:43 +01:00
Paul Chote
3d352563a8
Allow scrolling to the map edges in the editor.
2015-06-11 21:27:34 +01:00
Paul Chote
486bf14669
Relax screen clipping bounds.
...
Fixes missing tiles in TS.
2015-06-11 21:27:33 +01:00
Paul Chote
57a6fff6ce
Don’t crash if the click location is outside the map.
2015-03-31 20:59:53 +01:00
Paul Chote
1e54b19bd3
Implement heightmap-aware view -> cell conversion.
2015-03-31 20:59:53 +01:00
RoosterDragon
d3b93345b4
Fix Viewport.VisibleCells.
...
Reworked the visible cells calculation to ensure the visible region is actually minimal, which should reduce the amount of rendering to be done by a small amount. Previously, the region would tend to overdraw by 2-3 cells in either direction. For isometric maps, there was also a bug where it would draw far too much vertically above the top of the map.
2015-02-28 13:36:58 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
7cfece6dc0
Introduce a new type for representing map coordinates.
...
To resolve the ambiguity introduced when the introduction of isometric maps meant that cell and map coordinates were no longer equivalent, a new type has been introduced so they can each be represented separately.
2015-01-07 17:30:34 +00:00
Matthias Mailänder
bc3acfeee7
StyleCop clean OpenRA.Game
2015-01-04 15:38:54 +01:00
Paul Chote
18f65552a1
Account for terrain height in Viewport.
2014-11-07 19:14:02 +13:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
0d625b6af6
Fix sprite overlap outside the map border.
2014-07-01 00:40:42 +12:00
Paul Chote
a30c8b53a7
Add support for diamond cell grids.
2014-06-30 23:44:23 +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
2a466d08c3
Remove the now-unused ExploredBounds optimization.
2014-06-27 22:07:03 +12:00
Paul Chote
386b71de82
Integrate CellRegion with Map, Viewport.
2014-06-27 19:20:46 +12:00
ScottNZ
6a14434cff
Add a CenterPosition helper to Viewport
2013-11-29 23:01:50 +13:00
ScottNZ
00ec1ca87a
Remove unused usings
2013-11-12 19:39:33 +13:00
Matthias Mailänder
e0e3f1155a
avoid additional layers of abstraction
2013-11-02 18:12:46 +01:00
Matthias Mailänder
b1c3ac20bf
brought back the MoveFlash
...
closes #2592
2013-11-02 18:03:49 +01:00
Paul Chote
919181e04d
Clean up viewport internals.
2013-10-05 21:01:22 +13:00
Paul Chote
936bf98496
Move Viewport inside WorldRenderer.
2013-10-05 21:01:22 +13:00
Paul Chote
f575c20d38
Route viewport centering via WorldRenderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b7123cda7d
Route screen size queries via Game.Renderer.
2013-10-05 21:01:21 +13:00
Paul Chote
b96c430f84
Remove PVecInt from Viewport.
2013-09-27 15:54:37 +12:00
Paul Chote
0dc50c65f5
Remove unnecessary int2 -> PPos -> int2 conversions.
2013-09-27 15:41:32 +12:00
Paul Chote
b335d67ce3
Remove PPos hacks from RadarWidget.
2013-09-27 15:41:32 +12:00
Paul Chote
c428cad70c
Refactor per-player shrouds & fix shellmap shroud.
2013-04-10 19:36:03 +12:00
Matthias Mailänder
acc8cd1e5e
fixes #2885 forgot to enable the cursor palette before drawing
...
split HardwarePalette.Update into two functions, closes #2847
2013-04-06 08:44:32 +02:00
Paul Chote
819d315d56
Remove Turret and PVecFloat cruft.
2013-04-01 12:59:50 +13:00
Matthias Mailänder
ba12aafd78
refactor cursor rendering
...
create a new cursor palette only once and not in WorldRenderer
move cusrsor sequence lookup and drawing to CursorProvider
2013-03-24 21:21:30 +01:00
Matthias Mailänder
227a7a61eb
don't crash when trying to get the game assets on first start
...
wr is null at that stage
2013-03-24 15:16:49 +01:00
Paul Chote
82426e0e45
Move Palette from ModData to WorldRenderer.
2013-02-26 09:35:41 +13: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
9c49143534
New types for cell and pixel coordinate position/vectors.
2012-06-21 15:36:59 -05:00
Chris Forbes
bf5be88c75
rename Ui.RootWidget to just Ui.Root
2011-12-13 23:46:58 +13:00
Chris Forbes
58f6816d84
convert silly DoXXX names to just XXX
2011-12-13 23:44:40 +13:00