Anders Jenbo
5537fe748e
Clean up debug code
2021-06-27 16:16:39 -07:00
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract CelSprite and file loading
2021-06-21 01:36:20 -07:00
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract Point, Direction, clamp
...
`engine.h` is getting quite bloated. Moves this code to their own files.
2021-06-21 01:36:20 -07:00
Anders Jenbo
8a7ec56d3a
Player by reference part 2
...
This mostly change player to be by reference instead of by index.
But additionally it does stript checks for gold in the belt, move some
value types to the initialization and short circute a few functiongs.
2021-05-24 21:00:32 +02:00
Anders Jenbo
6321bf04d5
♻️ Pass player to towner by reference instead of index
2021-05-07 00:29:46 +02:00
Anders Jenbo
23cec61f15
🎨 Mark Points returned by GetTargetPosition as const
2021-05-02 15:41:25 +02:00
Anders Jenbo
654a2b8834
♻️ Clean up automap code
...
Use Point for x,y pairs. Make helpers for drawing door and squares
2021-05-02 15:27:38 +02:00
Gleb Mazovetskiy
1b8b62a8c2
♻️ Store CEL width with the sprite itself
...
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.
Implemented for most sprites except towners, missiles, or monsters.
2021-05-01 20:51:55 +02:00
Anders Jenbo
48dbb47d70
🌐 Apply static translations
2021-04-29 01:21:28 +02:00
Jmgr
ef0ca794bc
Use system libfmt by default if version >= 7.0.0
...
Allow non-strict ansi functions
Cleanup
2021-04-25 02:39:42 +02:00
Jmgr
f3a401b5f6
Add the fmt library as a dependency and add some examples
...
Attempt at fixing missing functions on some platforms
2021-04-25 02:39:42 +02:00
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
2021-04-25 01:25:48 +02:00
Anders Jenbo
efbe8a8338
♻️ add possition points to monsters
2021-04-24 20:29:52 +02:00
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
2021-04-24 17:07:07 +02:00
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
2021-04-24 04:46:08 +02:00
Anders Jenbo
97d7171123
🔥 Get rid of _ptargx/y
2021-04-21 03:55:27 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
2021-04-19 02:44:39 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
2021-04-01 14:52:44 +02:00
Anders Jenbo
d9c1bc4579
♻️ Clean up debug options
2021-03-23 20:33:22 +01:00
Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
2021-03-20 20:39:28 +01:00
Anders Jenbo
327042c2e5
Strip out debug features from the release builds
...
leveldebug and lightmax still remains
2021-02-19 22:04:11 +01:00
Anders Jenbo
60d3e9ceb1
Clean up rendering
2021-02-19 03:05:12 +01:00
Anders Jenbo
0c96e32f19
Unify all defines, enums and structs
2021-01-08 20:53:06 +01:00
Anders Jenbo
61b2d0de95
Merge branch 'master' of github.com:diasurgical/devilution
2020-12-16 02:24:39 +01:00
qndel
c4c2e0420c
spell defines and macros ( #2162 )
2020-12-04 19:18:22 +01:00
qndel
73dce4fa39
minor cleanup
2020-11-12 15:13:01 +01:00
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
2020-10-20 19:42:01 +02:00
Anders Jenbo
2d6c1efeab
Merge branch 'master' of github.com:diasurgical/devilution
2020-10-12 10:46:28 +02:00
Anders Jenbo
7108145a04
Merge branch 'master' of github.com:diasurgical/devilution
2020-04-14 15:30:49 +02:00
Anders Jenbo
e6e0ebe15a
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
2020-04-07 03:46:20 +02:00
Anders Jenbo
f1c216e688
Make player struct x/y fields match monster struct
2020-04-07 03:26:38 +02:00
Anders Jenbo
3c5982083f
Merge branch 'master' of github.com:diasurgical/devilution
2020-04-06 12:05:13 +02:00
Anders Jenbo
cc0f92d45b
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
2020-04-06 06:09:30 +02:00
Anders Jenbo
a02167a648
Use correct defines for variables
...
This also defines MAXRESIST and DEBUGSEEDS
2020-04-06 05:43:20 +02:00
Anders Jenbo
8f635b779c
Correct style of checks
2020-04-06 05:43:20 +02:00
Anders Jenbo
b040c04a18
Merge branch 'master' of github.com:diasurgical/devilution into hellfire
2020-04-04 07:56:06 +02:00
Anders Jenbo
776ab10476
Merge branch 'master' of github.com:diasurgical/devilution
2020-03-29 23:40:05 +02: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
25993b4043
Merge branch 'master' of github.com:diasurgical/devilution
2020-02-14 23:03:31 +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
Anders Jenbo
40ba1e7a6f
Merge branch 'master' of github.com:diasurgical/devilution
2020-02-01 14:48:39 +01:00
qndel
c2587d9786
use enums ( #1997 )
2020-01-28 17:33:34 +01:00
qndel
3008439bc7
enums and stuff
2020-01-15 15:46:21 +01:00
Anders Jenbo
5d57c3cb9c
[hellfire] SetupTownStores and SmithBuyPItem ( #1950 )
2020-01-12 23:44:28 +01:00