Commit Graph
41 Commits
Author SHA1 Message Date
Anders JenboandGitHub 187a021b30 More documentation from sanctuary/notes (#2026) 2020-03-30 11:31:36 +02:00
galaxyhaxz f89204e7dd Fix function/var names (effects/sound) 2020-03-24 00:22:36 -05: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 JenboandGitHub 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
Anders Jenbo 0c90ad0527 Set bool values TRUE/FALSE 2019-12-22 23:57:10 +01:00
Robin EklindandAnders Jenbo e155a9423e rename random to random_ to avoid collision with random in stdlib.h
Fixes #1813.
2019-10-21 09:56:36 +02:00
Anders Jenbo 10c33575ac Clean ups from hellfire branch 2019-08-31 07:35:04 +02:00
Robin EklindandAnders Jenbo fab7f1b5fa effects: rename monster_action_sounds to MonstSndChar
Rationale described in https://github.com/sanctuary/notes/commit/f609ea371d0768a6927d5e8ef931d23243d73387:
as included below:

Note, the PSX sym file does not seem to include the
original name for monster_action_sounds. However, it
does include the names for very similar global
variables used for players rather than monsters, so
from these we may infer a similar name for
monster_action_sounds.

In particular, ArmourChar, WepChar and CharChar are
used for player graphics. So, following the same naming
convention we arrive at MonstSndChar.
2019-08-18 07:44:22 +02:00
Anders Jenbo 68d51e7d27 Implementing Spawned Shareware version 2019-08-12 16:04:20 +02:00
Anders Jenbo aa50489569 Clean up generated comments 2019-07-21 00:57:53 +02:00
Anders Jenbo 32a51d17ca Align function signatures with PSX symbols
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
2019-07-08 04:12:12 +02:00
Anders Jenbo a7788ccddf Format bin exact code 2019-06-17 04:55:41 +02:00
Anders JenboandGitHub 26d7327b1f Cleanup (#1200)
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
2019-05-21 00:34:42 +01:00
Anders Jenbo f006952465 Apply sfx_flag to sgSFX 2019-05-13 18:55:04 +01:00
qndelandAnders Jenbo d2f12de6b8 sound_stop bin exact (#1172) 2019-05-13 02:12:29 +01:00
qndelandAnders Jenbo b94b79f8e2 RndSFX bin exact 2019-05-13 02:06:41 +01:00
galaxyhaxzandAnders Jenbo 7fcbc7319c Fix merged function sound_update 2019-05-12 22:37:11 +01:00
galaxyhaxzandAnders Jenbo 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
galaxyhaxzandAnders Jenbo 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxzandGitHub 5238265702 Implement assert support (#791) 2019-03-29 21:26:37 -05:00
Anders JenboandRobin Eklind fda317a24e Clean up storm/sound_update (#663) 2019-03-18 11:23:24 +09:00
Max DesiatovandAnders Jenbo 269aa345bd Fix downstream 64-bit builds 2019-03-08 03:07:21 +01:00
Anders JenboandRobin Eklind 841f5af199 Compile effects.cpp and wave.cpp as C (#530)
* Correct SFileReadFile signature

* Compile as C

Source/effects.cpp
Source/wave.cpp

* Make diabloui.h C frindly
2018-12-30 19:22:40 +01:00
Anders JenboandRobin Eklind b5f69dccdc C compatability from d-p (#519) 2018-12-29 17:54:22 +01:00
galaxyhaxzandGitHub 24285a220f WinMain+Direct file access from HDD (#456) 2018-11-09 16:22:56 -06:00
Anders Jenbo 0fb5c0bf9c Additional tab indentation 2018-10-27 17:38:40 +02:00
Anders Jenbo b1f6d3698f Update style to use tabs 2018-10-25 22:53:04 +02:00
Anders Jenbo 596f244f50 Align structured data tables 2018-10-23 19:28:22 +02:00
Anders Jenbo 87ef2f91e7 Format mostly cleaned files 2018-10-22 01:56:10 +02:00
Anders Jenbo 8e2d0df643 Clean up some bools 2018-10-18 20:32:44 +02:00
Anders JenboandRobin Eklind 46897e9c6e Correct a couple of values (#389) 2018-10-06 16:46:52 +02:00
Anders JenboandRobin Eklind 226fbc68b0 effects_cleanup_sfx & stream_update (#375)
* effects_cleanup_sfx & stream_update

* effects_play_sound

* effect_is_playing, PlaySFX, PlaySfxLoc & effects_play_sound
2018-10-06 14:28:04 +02:00
Anders JenboandRobin Eklind f269f4561b PlaySFX_priv, stream_play (#371)
* PlaySFX_priv, stream_play

* Fix build warnings in player.cpp

* Clean up FreeMonsterSnd

* Added more enums and defines for sound and effects.
2018-10-02 00:02:12 +02:00
Anders JenboandGitHub 5df6a0d771 Sound.cpp (#353)
* Clean up of sound.cpp
* Fix builds that don't support max()
2018-10-01 03:31:39 +02:00
Anders Jenbo afbe7a5ffa sfx_stop, InitMonsterSND, FreeEffects, PlayEffect and calc_snd_position 2018-10-01 01:03:17 +02:00
galaxyhaxzandGitHub 38b498ac4b Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
galaxyhaxzandGitHub fa64b2148d Add defines [W.I.P] (#160) 2018-08-15 22:13:15 -05:00
galaxyhaxzandGitHub a336c38226 Fix random(idx,v) calls (#157) 2018-08-10 22:45:32 -05:00
galaxyhaxzandGitHub 49a6f4f9fc Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxzandGitHub bb01c6f084 Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxzandGitHub dde68ff89e Add files via upload 2018-06-06 21:25:54 -05:00