Commit Graph

53 Commits

Author SHA1 Message Date
Chris Forbes
4a94cf656b remove a redundant method from queries. 2010-12-27 18:26:12 +13:00
Paul Chote
fb0e399ab9 Consolidate viewport clip calculations into one place (except for TerrainRenderer, but changing that calculation crashes my gfx card). 2010-11-27 11:20:04 +13:00
Paul Chote
7c5c989eb2 Introduce World.LocalShroud. Breaks targeting stealth tanks. Probably breaks FrozenUnderFog. 2010-11-27 11:20:04 +13:00
Paul Chote
41fd19c766 Begin refactoring Shroud. ShroudRenderer is now internal to WorldRenderer; all traits interact with Shroud directly. Gives soft-edges at the map border for free, but breaks shellmap and observers. 2010-11-27 11:20:03 +13:00
Paul Chote
fc5830a687 Added int2.Clamp(Rectangle). All queries for map geometry use map.Bounds. 2010-11-24 12:24:48 +13:00
Paul Chote
de8603832f Use Map.Bounds instead. 2010-11-24 11:12:37 +13:00
Bob
e3ddb8f757 cache world.LocalPlayer instead of fetching it repeatedly within loops 2010-11-01 18:39:44 +13:00
Paul Chote
d4182b1929 Tweaks to minimap preview 2010-09-16 22:54:49 +12:00
Paul Chote
051c451867 Support custom tile size ingame 2010-09-15 19:31:21 +12:00
Paul Chote
230d59f655 Tweak visibility; hopefully allows targeting of detected units 2010-08-15 06:18:46 +12:00
Bob
ede160f1b6 move some more (gameplay related) widgets into mods/ 2010-07-30 20:55:03 +12:00
Paul Chote
8fab45ae39 Move Cloak, HiddenUnderFog, FrozenUnderFog into Mods.RA; Simplify a pile of related stuff. 2010-07-28 21:11:50 +12:00
Chris Forbes
4cc021adfe fix dumb crash in minimap -- actors outside the map accessed memory that wasnt part of the bitmap. 2010-07-26 22:16:23 +12:00
Paul Chote
ac526f9762 Split the radar into multiple bitmaps 2010-07-22 22:54:12 +12:00
Paul Chote
d21e9fe093 Kill ITerrainTypeModifier for explicit updating of a custom layer in the map. Functionally equivalent, but MUCH faster. 2010-07-22 22:22:53 +12:00
Paul Chote
5198ced5aa Remove unnecessary check 2010-07-22 20:44:14 +12:00
Paul Chote
5f36933837 Fix custom terrain location 2010-07-22 19:50:41 +12:00
Paul Chote
a234dd4382 New interface for things that show on radar; groundwork for future patches. 2010-07-22 19:50:41 +12:00
Paul Chote
55fd5c3b9b Halve the perf fail of custom terrain (down to ~4ms) 2010-07-22 01:21:36 +12:00
Paul Chote
db9cfb9ddd More refactoring and a TODO on custom terrain perf 2010-07-22 01:13:03 +12:00
Paul Chote
2d2362a1a6 Minimap refactoring; don't render the minimap unless we have radar. 2010-07-22 00:15:33 +12:00
Paul Chote
78aff37fe4 Minimap sanity; part 1: rewrite the core radar logic 2010-07-21 23:44:23 +12:00
Paul Chote
58aed632a1 Add sanity to minimap; part 0 2010-07-21 20:50:40 +12:00
alzeih
2f9f539857 big pile of Render refactoring 2010-07-21 18:59:33 +12:00
Chris Forbes
d5f12dd8ee trim down license spam in all files 2010-07-18 16:48:21 +12:00
Paul Chote
b3413dc783 Faster bitmap editing 2010-07-15 21:25:02 +12:00
Paul Chote
45061cdf37 Cleaner attempt at rendering map previews on the fly 2010-07-15 21:16:35 +12:00
alzeih
dc1e36f653 smite some more compile warnings (amended to add minimap changes) 2010-07-12 00:51:58 +12:00
Paul Chote
7591434987 Remove hardcoded map references from MapPreviewWidget; prevents information leakage between lobby and map selector and provides groundwork for future patches 2010-07-11 14:25:29 +12:00
Paul Chote
08ee425415 Fix some stupid bugs; remove hardcoded references to water/ore/tree terraintypes 2010-06-26 12:02:30 +12:00
Paul Chote
bf6b2da1a8 Unhardcode terrain types. Needs a bit more work re initialization and bridges 2010-06-26 10:55:29 +12:00
Chris Forbes
0585bade6c fix information leak in minimap 2010-05-12 19:18:25 +12:00
Chris Forbes
46e465cf33 resources moved off player onto a synced trait 2010-05-12 18:29:25 +12:00
Chris Forbes
f0e5b9728f unfail slightly player color handling 2010-05-12 17:39:30 +12:00
Chris Forbes
6b82f21569 working orders via minimap 2010-04-28 11:29:36 +12:00
Chris Forbes
2f4df42924 strip a lot of dead crap from Minimap; fix bugs in prev; rudimentary input handler for minimap 2010-04-28 11:14:21 +12:00
Bob
e38d978849 fix some extraneous refs to Game.world 2010-04-13 20:25:16 +12:00
Bob
2a4460213c move Game.IsStarted to World.GameHasStarted 2010-04-13 20:05:34 +12:00
Bob
0f98df9a88 remove SpriteRenderer arg to DrawText; create only one SpriteRenderer for each Shader 2010-04-11 20:59:04 +12:00
Bob
8a3e5b8ccc remove allowAlpha from SpriteRenderer 2010-04-11 20:05:08 +12:00
Paul Chote
c366b7c7fc Fixes & Resources support 2010-04-09 14:50:48 +12:00
Paul Chote
b8702e494b Fix most of the x/y issues 2010-04-09 14:50:46 +12:00
Matthew Bowra-Dean
c512626ab0 Fixed crash on large palette indexes. 2010-03-27 23:16:16 +13:00
Paul Chote
15a7eed603 Refactor int -> TerrainType. This had a bigger footprint than i initially intended. 2010-03-21 18:56:22 +13:00
Paul Chote
b4540db406 Begin unfailing movement types / IsBuildable / etc 2010-03-21 18:56:22 +13:00
Chris Forbes
a5d3ac1403 fix spawnpoint vis 2010-03-17 23:29:57 +13:00
Chris Forbes
f6b4f70cd7 hack around minimap requiring players in lobby mode; will come back and address this once it runs 2010-03-17 23:29:54 +13:00
Paul Chote
b42dc743c1 Unhardcode minimap terrain colours; use dummy values for cnc temporarily 2010-03-04 22:30:34 +13:00
Paul Chote
399d2f73e8 Fix minimap size/render issues (still needs palette fix). 2010-03-04 20:57:55 +13:00
Paul Chote
d405523378 Map selector works; selecting non-desert maps doesn't 2010-03-04 09:37:22 +13:00