Commit Graph

616 Commits

Author SHA1 Message Date
Paul Chote
db22f3568d Remove obsolete DefaultStartingUnits parameter.
It was only actually used by bomber-john. Everything
else also removed SpawnMPUnits, making it redundant.
2013-07-13 19:18:27 +12:00
Paul Chote
7376cccf4d Smarter unit spawn logic. Fixes #3496. 2013-07-13 19:18:27 +12:00
Paul Chote
6bf783e674 Add IEnumerable.RandomOrDefault extension. 2013-07-13 19:18:26 +12:00
Matthias Mailänder
a35a046ede disable more StyleCop rules based on @pchote's wishlist 2013-07-11 20:29:00 +02:00
Matthias Mailänder
8bb5b5700b added StyleCop support
with some rules we disagree with disabled
2013-07-08 19:42:32 +02:00
Paul Chote
5976913c73 Add WPos/WVec.LerpQuadratic to simplify ballistic calculations. 2013-07-08 23:40:22 +12:00
Paul Chote
0fdffd7b6a Convert Drag to world coords. 2013-07-08 21:52:27 +12:00
Paul Chote
6f67602d57 Use Target range checks in attack activities. 2013-07-06 19:12:26 +12:00
Chris Forbes
c0e0efd0ef movement equivalence classes
These can be used as a basis for a bunch of pathing optimizations.

- Feasability of movement can be precomputed for each class, avoiding
  the worst-case pathfinding behavior

- A path could potentially be shared between all members of a class.
  This isnt necessarily the best path for any single unit, as it
  doesn't care about efficiency of movement across various terrain --
  but it would be a "reasonable" path that the whole group could take
  together.

- General pathing checks can be converted from intersection of sets of
  strings to a simple AND.

- Other, wilder things.

V2: be paranoid about too-long bit vectors.
2013-06-26 20:50:51 +12:00
Chris Forbes
979ac4f91f Merge pull request #3407 from pchote/voxel-fbo
Voxel refactoring
2013-06-19 14:57:17 -07:00
Paul Chote
71616201ff Ignore unknown wav chunks instead of throwing. 2013-06-15 19:41:07 +02:00
Paul Chote
2eeabfe668 Fixup: Use ReadASCIIZ in D2kSoundResources. 2013-06-15 19:41:07 +02:00
Paul Chote
0c4df26ed0 Add Stream.ReadASCIIZ for d2k. 2013-06-15 19:41:07 +02:00
Matthias Mailänder
9fb98f04d4 implement the fact chunk for WAVE files 2013-06-15 19:41:07 +02:00
Matthias Mailänder
85da51ca09 added a Dune 2000 SOUND.RS parser
again @pchote via IRC
2013-06-15 19:41:07 +02:00
Paul Chote
52335a37bf Allow/require renderers to enable alpha blending when needed. Fixes voxel shadow issues. 2013-06-15 19:31:52 +12:00
Paul Chote
4c22193446 Remove obsolete Stencil Buffer functions. 2013-06-15 19:31:52 +12:00
Paul Chote
c5337cdcf3 Reimplement voxel rendering with a FBO. 2013-06-15 19:31:52 +12:00
Paul Chote
22e6966c8e Texture changes:
* The GL texture id is now readonly.
* Added Size property.
* Added GetData() for reading data back from the GPU.
* Added SetEmpty() for creating an empty texture of a given size.
2013-06-15 19:16:07 +12:00
Paul Chote
4c8c010506 Expose FBOs to engine code. 2013-06-15 19:16:07 +12:00
Paul Chote
cd268c11ee Move IsPowerOf2 to Exts. 2013-06-15 19:16:07 +12:00
Matthias Mailänder
0554ef35b7 added support for WAVE sound files
closes #2174
2013-06-12 20:18:07 +02:00
Paul Chote
82faf7e929 Allow mods and maps to define voxel sequences. 2013-06-04 20:40:24 +12:00
Paul Chote
af6791d942 Implement hva parser. 2013-06-04 20:25:21 +12:00
Paul Chote
992db08f71 Implement vxl parser. 2013-06-04 20:25:21 +12:00
Paul Chote
656a529249 Support Vertex objects with custom z coordinate. 2013-06-04 20:25:21 +12:00
Paul Chote
f6264eeba4 Expose stencil buffer to render code.
The intention is to provide a layer for tracking shadow
rendering, so a single bit is sufficient for now.
2013-06-04 20:25:21 +12:00
Paul Chote
1b34c7d6b9 Expose depth buffer to render code. 2013-06-04 20:25:21 +12:00
Paul Chote
9566385aac Add renderer support for additional vec* uniforms. 2013-06-04 20:25:20 +12:00
Paul Chote
064938378f Add renderer support for matrix uniforms. 2013-06-04 20:25:20 +12:00
Paul Chote
06d11c4fa9 Make missing tile transparent to avoid visual glitch with bridge1h in maps. 2013-06-02 19:27:23 +12:00
Paul Chote
50dff05675 Return a synthesized tile for missing indices. Fixes #3329. 2013-06-02 19:26:55 +12:00
Paul Chote
edf604e080 Remove BinaryReader from VqaReader. 2013-06-01 15:09:36 +12:00
Paul Chote
6d8df80664 Remove BinaryReader from Dune2ShpReader. 2013-06-01 15:09:36 +12:00
Paul Chote
dd23e9598a Remove BinaryReader from ShpTSReader. 2013-06-01 15:09:36 +12:00
Paul Chote
6edde6c4ac Remove BinaryReader from MixFile. 2013-06-01 15:09:36 +12:00
Paul Chote
93b606da2c Add stream extensions for reading basic types. 2013-06-01 15:09:35 +12:00
Paul Chote
a3729a11c7 Extract stream extensions to their own file. 2013-06-01 15:09:35 +12:00
baxtor
629fe95ebd Fixes issue #2216 InstallShield .Z package decompression 2013-05-26 21:51:37 +02:00
Paul Chote
0dd8d7f7b6 Distinguish between classic and crc file hashes. Fixes #3306, #3328. 2013-05-24 21:10:41 +12:00
Paul Chote
de3d4da000 Allow mounted IFolders to be queried. 2013-05-19 19:14:20 +12:00
Paul Chote
112034a41d Allow hashes to be accepted as valid mix filenames. 2013-05-18 03:59:46 +12:00
Paul Chote
9dc3f4bf2d Add IFolder.AllFileNames() for listing the filenames in a package. 2013-05-17 23:52:02 +12:00
Paul Chote
974e9b3325 Write XCC compatible mix files. 2013-05-17 23:46:29 +12:00
Paul Chote
47f078ec3a Parse XCC global mix database. 2013-05-17 23:46:24 +12:00
Paul Chote
8817fd2cc5 Parse XCC local mix database. 2013-05-17 23:46:24 +12:00
Paul Chote
50b87b580a Remove 12 character limit from mix content names (XCC compatibility). 2013-05-17 23:46:19 +12:00
Matthias Mailänder
6a6776754b added .mix file support for game asset browser 2013-05-15 18:13:39 +02:00
Matthias Mailänder
881fcf1191 added in-game SHP viewer with frame slider 2013-05-15 18:13:33 +02:00
Paul Chote
d70a5aff6a Tidy TileSet formatting (no code changes). 2013-05-15 19:24:18 +12:00