Juliano Leal Goncalves
ba66a9dc87
♻️ Replace 'dmaxx' and 'dmaxy' globals with single 'dmaxPosition'
5 years ago
Juliano Leal Goncalves
6583410152
♻️ Replace 'dminx' and 'dminy' globals with single 'dminPosition'
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
Siddharth singh chouhan
03eb86b118
Move documentation from implementations to declarations #2735
5 years ago
Anders Jenbo
9b2cbbdb38
Clean up checks for open warp gates
5 years ago
Anders Jenbo
9c4e34f988
Player by reference
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
ee2e7518c4
Clang-tidy: FunctionCase part 2
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
8e07ef8fe5
Clang-tidy: misc-unused-parameters
5 years ago
ephphatha
357f6f1dc3
Move RNG functions to their own header/source files
5 years ago
Anders Jenbo
d8fa29c972
Clean up more implicit bool conversion
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
Anders Jenbo
05631eca36
🧹 Only load town TIL-file once
5 years ago
Anders Jenbo
875da955c0
🎨 Clean up name of town mega tile variable
5 years ago
Anders Jenbo
fa0b286693
♻️ Typed file loading
...
Tthis gives us the option to specify what type a file should be loaded
as, avoidng the need to case it and does some automatic checks on the
fitness of the data, while making the process simpler.
If no type is given then the type will be set to std::byte which limit
what operations can be performed on the data.
5 years ago
Gleb Mazovetskiy
052b4c12f5
♻️ LoadFileInMem: Remove `nullptr` at call sites
...
This is now the default argument, no need to provide it explicitly.
5 years ago
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.
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
593c6a6f17
🎨 Drop unused param and rename random_ to GenerateRnd
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6530780980
🎨 Apply enums to towners
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
5 years ago
Anders Jenbo
60d3e9ceb1
Clean up rendering
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
adf5f8f504
Clean up hellfire related code
5 years ago
Anders Jenbo
3d93478a6c
Some additional clean up
5 years ago
Anders Jenbo
01590d3757
Merge a section of the Hellfire item and quest code
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
Anders Jenbo
6580222d1c
Add enums for level entrances
5 years ago
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.
5 years ago
Anders Jenbo
3157885502
Correct shareware ifdefs
6 years ago
Anders Jenbo
490bdef778
Fix updating town when opening the hive/crypt
6 years ago
Anders Jenbo
1ba96a6777
Add doxygen description to remaining engine files
6 years ago
Anders Jenbo
8c2fb7605e
Use defines for tile and screen related magic numbers
6 years ago
Anders Jenbo
3b8bcf98bf
Enable assertions
6 years ago
galaxyhaxz
c632e2d1d0
Names and bug fixes ( #1974 )
6 years ago
galaxyhaxz
71565b9c02
Several updates [enums+names] ( #2002 )
...
* Several updates
* Correct msg_get_next_packet
* Update enums.h
Co-Authored-By: Robin Eklind <mewmew@users.noreply.github.com>
Co-authored-by: Robin Eklind <mewmew@users.noreply.github.com>
6 years ago
Anders Jenbo
e7e51abd13
Document remaning functions in render related files
6 years ago
Anders Jenbo
dd64f18a49
Merge SetDungeonMicros and SetTownMicros
6 years ago
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).
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
galaxyhaxz
94a2f1e181
Nice huge commit
6 years ago
Anders Jenbo
92ab05ea13
Decompose more magic numbers
6 years ago
Anders Jenbo
86bf1fe0d5
Correct spelling
6 years ago
Anders Jenbo
2348c3a8fd
Documentations, enums and clean ups
6 years ago