25 Commits

Author SHA1 Message Date
Anders Jenbo 12f4fa44b8 Add const in codec.cpp 2020-11-02 05:11:54 +01:00
Anders Jenbo f0c80d87f1 Reorder codec.cpp 2020-11-02 01:12:28 +01:00
Anders Jenbo 6704657e71 Apply sematic codestyle 2020-04-08 20:34:29 +02:00
Anders Jenbo 7db4ed749a Apply more enums, defines and types 2020-04-08 20:18:11 +02:00
Robin Eklind 3130ae3593 codec: fix build error of codec.cpp when compiling as C
Prior to this commit, the following error was encountered when compiling
as C using Clang:

	Source/codec.cpp:20:2: error: must use 'struct' tag to refer to type 'CodecSignature'
			  CodecSignature *sig;
			  ^
			  struct
2020-03-08 15:59:29 +01:00
Anders Jenbo 3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
Anders Jenbo 20621a0642 add all.h and use in place of diablo.h (#2005)
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.

Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
2020-02-14 13:12:54 +01:00
qndel c629eb1e60 codec_decode cleanup (#1661) 2019-09-18 00:51:49 +02:00
Anders Jenbo a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Sergey Semushin 64bcacefe8 Add CodecSignature struct to codec.cpp to simplify code. 2019-05-25 17:03:22 +01:00
Anders Jenbo 26d7327b1f Cleanup (#1200)
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
2019-05-21 00:34:42 +01:00
Sergey Semushin 01bc47c7fc Clean up codec_encode. 2019-05-18 20:14:00 +01:00
Sergey Semushin bcacad7629 Prettify codec_get_encoded_len. 2019-05-18 20:14:00 +01:00
Sergey Semushin 9160d659b3 Clean up codec_decode. 2019-05-18 16:17:26 +01:00
galaxyhaxz 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxz 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxz 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders Jenbo 355d78fb84 C declaration (#500)
* Convert monster.cpp to C

* Convert automap.cpp to C

* Convert codec.cpp to C
2018-12-14 13:36:39 +01:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo c46d92be7a Format save game related files 2018-10-22 01:49:43 +02:00
Anders Jenbo 9c85b3f0eb clean up codec_init_key 2018-10-21 14:31:20 +02:00
nomdenom 4bb6bde99b Use sizeof() for memset()
I checked that the sizes do match. (+1 squashed commits)
2018-09-27 19:23:21 -07:00
galaxyhaxz 49a6f4f9fc Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz bb01c6f084 Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00