Commit Graph
40 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 0383f9abcd Add documentation to more files 2020-03-02 02:29:28 +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
galaxyhaxz 81ff8e6287 Metallic hydrogen neural array 2020-02-28 16:35:57 -06: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 cee06d07a7 Correct spelling of color 2020-01-10 11:13:47 +01:00
qndelandAnders Jenbo 6dd9e0dffd gamemenu_gamma cleanup 2020-01-02 15:31:18 +01:00
galaxyhaxzandAnders Jenbo 67fedd9e99 Fix unknown struct field and drawpanflag 2019-10-31 22:57:15 +01:00
Robin EklindandAnders Jenbo 2c18133c3d s/sp/sg/ 2019-08-18 07:46:30 +02:00
Robin EklindandAnders Jenbo bc93e9523a use names from assert for sgSingleMenu and sgMultiMenu
Infer name of spOptionsMenu from PSX debug data:

	struct OMENUITEM MemcardLoadOptionsMenu[4]
	struct OMENUITEM MemcardSaveOptionsMenu[4]

Use "sp" prefix for spOptionsMenu to conform with assert
information.
2019-08-18 07:46:30 +02:00
Robin EklindandAnders Jenbo 7ff591bd18 s/OptionMenu/OptionsMenu
As per the PSX debug info:

	struct OMENUITEM MemcardLoadOptionsMenu[4]
	struct OMENUITEM MemcardSaveOptionsMenu[4]
2019-08-18 07:46:30 +02:00
Robin EklindandAnders Jenbo 5e7abe4239 gamemenu: rename sgFooMenu to FooMenu
Rationale described in sanctuary/notes@c316cef7b7
as included below:

Note, the names of SingleMenu, MultiMenu and OptionsMenu
are inferred from the PSX debug names:

	struct OMENUITEM GameMenu[8]
	struct OMENUITEM GameOverMenu[3]
	struct OMENUITEM GameSpeedMenu[4]
	struct OMENUITEM InfoMenu[2]
	struct OMENUITEM MainMenu[9]
	struct OMENUITEM MemcardGameMenu[6]
	struct OMENUITEM MemcardLoadGameMenu[4]
	struct OMENUITEM MemcardLoadGameOverMenu[4]
	struct OMENUITEM MemcardLoadOptionsMenu[4]
	struct OMENUITEM MemcardSaveGameMenu[4]
	struct OMENUITEM MemcardSaveOptionsMenu[4]
	struct OMENUITEM MonstViewMenu[3]
	struct OMENUITEM QuitMenu[4]
	struct OMENUITEM SoundMenu[6]
2019-08-18 07:46:30 +02:00
Anders Jenbo 457b9186da Clean up gmenu_draw_menu_item 2019-06-22 14:28:13 +02:00
Anders Jenbo daec57bc38 More descriptive names for the menu slider functions 2019-05-13 20:47:39 +02:00
Anders Jenbo 7b2607c9f8 Clean up gamemenu.cpp 2019-05-02 00:16:46 +01:00
galaxyhaxzandAnders Jenbo 540892ff9d Preliminary support for fixed header files 2019-04-21 17:20:38 +02:00
Robin EklindandAnders Jenbo 5a82f6eb02 gamemenu_color_cycling bin exact (#900) 2019-04-10 16:30:56 +02:00
galaxyhaxzandAnders Jenbo 4e01e03711 Cleanup default calling conventions 2019-04-09 12:04:00 +02:00
galaxyhaxzandAnders Jenbo eb1758f86a Fix broken game menu 2019-04-09 03:30:22 +02:00
Anders JenboandRobin Eklind d0e3835ea1 Clean up gamemenu_enable_single (#526) 2018-12-30 13:17:08 +01:00
Robin EklindandAnders Jenbo e915623726 rename SetCursor to SetCursor_ to avoid collision with windows.h
Translation done automatically using:
	$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
	$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
2018-12-30 03:19:10 +01:00
Anders JenboandRobin Eklind 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 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 bde33d8fef Clean up gamemenu.cpp 2018-10-21 03:51:00 +02:00
Anders Jenbo 1806b0ff93 Format gamemenu.cpp 2018-10-21 03:50:57 +02:00
Anders Jenbo 456d651f55 Clean up more bools related to sound.cpp 2018-10-18 20:32:44 +02:00
Anders Jenbo 8e2d0df643 Clean up some bools 2018-10-18 20:32:44 +02:00
Anders JenboandRobin Eklind 4d8ceea32d Types (#395)
* Apply plr_class

* Apply attribute_id

* NetSendCmd*(BOOL)
2018-10-08 14:17:05 +02:00
Anders JenboandRobin Eklind 744e225618 Clean up player.cpp (#387) 2018-10-06 00:33:58 +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 JenboandDennis Duda 3a0e40597b Clean up InitPlayer 2018-09-13 00:28:57 +02:00
galaxyhaxzandGitHub 5ff8756116 Fix junk (#174) 2018-08-21 23:58:17 -05:00
galaxyhaxzandGitHub 775ae59e18 Fix function signatures and others (#158)
Fix InitObjects, themes.cpp, names
2018-08-12 18:32:48 -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