Commit Graph
34 Commits
Author SHA1 Message Date
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 c2587d9786 use enums (#1997) 2020-01-28 17:33:34 +01:00
Robin Eklind c583d82a1c pack: use IDI_GOLD enum instead of boolean operation for is->IDidx 2019-11-13 13:55:22 -06:00
galaxyhaxz 3bd28cc0c1 Fix function order [spells+pack.cpp] 2019-11-03 14:45:32 +01:00
qndel 7129558d0b apply enums 2019-10-05 15:24:44 +02:00
qndel c26ec70434 VerifyGoldSeeds cleanup 2019-09-12 11:39:44 +02:00
Anders Jenbo 0022702c38 Clean up CalcPlrInv calls 2019-06-09 19:42:10 +02: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
Anders Jenbo 4c497e1775 Use values from defs.h 2019-03-27 18:02:01 +01:00
Anders Jenbo 614ebe2e5c Make pack.cpp bin exact 2019-03-27 02:30:22 +01:00
qndel 3573a086e3 UnPackPlayer bin exact (#745) 2019-03-27 02:00:09 +01:00
qndel c5c3564b42 UnPackItem bin exact 2019-03-25 18:57:07 +01:00
qndel 991727882a PackPlayer bin exact 2019-03-25 15:23:15 +01:00
Anders Jenbo 9358465bb5 AddMissile bin exact (#621)
* AddMissile bin exact

* Clean up bools
2019-03-11 23:59:26 +01:00
Anders Jenbo efec32bcd5 Compile files as C (#527)
* Compile files as C

* Provide fallback for qmemcpy

Enable C compilation for:
Source/gendung.cpp
Source/inv.cpp
Source/minitext.cpp
Source/pack.cpp
2018-12-30 13:16:11 +01:00
Anders Jenbo b5f69dccdc C compatability from d-p (#519) 2018-12-29 17:54:22 +01:00
Anders Jenbo ab3a6208d2 Use "BOOLEAN" instead of "bool"
bool is not defined in C
2018-11-26 12:35:03 +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 48a1035d4a Remove unused varialbes 2018-10-12 11:04:23 +02:00
Anders Jenbo 83e52d47e1 Clean up MaxSpellsCheat and SetSpellLevelCheat 2018-10-11 16:05:12 +02:00
Anders Jenbo 4d8ceea32d Types (#395)
* Apply plr_class

* Apply attribute_id

* NetSendCmd*(BOOL)
2018-10-08 14:17:05 +02:00
squidcc e2adda15ff fix function declarations (and some cosmetic changes) in preparation for pfile cleanup (#351) 2018-09-27 16:30:33 +02:00
Andrew Dunstan 71cae5f8c2 add enums for known actions (to be performed in response to commands) 2018-09-25 10:14:12 +10:00
Anders Jenbo d8c4bcab5c Clean up DropHalfPlayersGold (#330) 2018-09-24 16:50:45 +02:00
Anders Jenbo db77557dce ValidatePlayer (#318)
* ValidatePlayer

* Add MAX_SPELLS define
2018-09-23 09:40:05 +02:00
Anders Jenbo 3a0e40597b Clean up InitPlayer 2018-09-13 00:28:57 +02:00
galaxyhaxz 38b498ac4b Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
galaxyhaxz fa64b2148d Add defines [W.I.P] (#160) 2018-08-15 22:13:15 -05: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