Robin Eklind
27b40436a9
Use pointers instead of references for Devilution exported API
...
With this change, all exported declarations of Devilution are now
compatible with the C-ABI; that is, all declarations of Source/*.h.
This makes it possible to link against DevilutionX from mods written in
other languages than C++, for instance Rust, Go or Python.
Updates #612 .
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
09c41c666f
Update monster.cpp
6 years ago
Anders Jenbo
08aa6a860a
Move generic helpers out of miniwin
6 years ago
Samuel-DEVULDER
29881d2b73
Fixed endianess issue in SetMapMonsters
6 years ago
Marco
29b9c99e5a
added some more values from enums ( #1955 )
6 years ago
Marco
4626450e11
some more item based enum consts
6 years ago
Anders Jenbo
0c90ad0527
Set bool values TRUE/FALSE
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
galaxyhaxz
9c98c1e43d
Fix all "pass by ref" functions
6 years ago
Mathieu Maret
982b1148d8
monster: use some enums
6 years ago
Anders Jenbo
c34d3e7177
Update bugfix note
6 years ago
Anders Jenbo
e396aafa3b
Add bugfix note
6 years ago
Gleb Mazovetskiy
be0f092ff7
Fix OOB in M_CheckEFlag
6 years ago
Xadhoom
a1b7b8522a
Bugfixes
6 years ago
Anders Jenbo
195ac2a4a7
Apply music enums
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
6 years ago
Anders Jenbo
3e7d352fde
Format files
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
galaxyhaxz
80840b4d69
PlrHasItem: change pointer to reference
7 years ago
qndel
06e7b4dbdb
more enums
7 years ago
Anders Jenbo
683a50527d
Correct missmatched bool types
7 years ago
qndel
7665acfaf1
encode_enemy cleanup
7 years ago
Anders Jenbo
d2b1f0cfc8
Apply the Cel helper functions in a few more places
7 years ago
qndel
a994a5cd0f
MAI_Zhar cleanup
7 years ago
qndel
5a9aee7b92
PreSpawnSkeleton cleanup
7 years ago
qndel
d0421621c4
InitMonsterGFX cleanup
7 years ago
qndel
f6ae3e7489
M_GetKnockback cleanup ( #1579 )
7 years ago
Anders Jenbo
f331d3b5a4
Backport Hellfire cleanups
7 years ago
Robin Eklind
9291827eaa
monster: add BUGFIX comment for monstkills
...
The size of the monstkills array is unnecessarily large,
as it maps from monster type to number of kills, and the
monster type enum goes from 0 to NUM_MTYPES-1.
7 years ago
Anders Jenbo
68d51e7d27
Implementing Spawned Shareware version
7 years ago
Anders Jenbo
b023104434
Remove u from values
7 years ago
Anders Jenbo
aa50489569
Clean up generated comments
7 years ago
Xadhoom
3b203f7c50
BUGFIX comments for drlg_l?.cpp, gendung.cpp, monster.cpp
7 years ago
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
7 years ago
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Anders Jenbo
334c06c6d3
Correct type in calls to AddPanelString
7 years ago
Manuel K
ce1f397658
Use MAX_PLRS
7 years ago
Sergey Semushin
ffa3d7d69d
Fix M_Enemy. Incorrect index.
7 years ago
Anders Jenbo
565bb5aa7d
Adust dFlag enums
7 years ago
Sergey Semushin
f7a4f0e909
Make MAI_Lachdanan bin exact.
7 years ago
Sergey Semushin
9d0e90d26b
Make MAI_SnotSpil bin exact.
7 years ago
Sergey Semushin
3ce2a6a8c2
Make NewMonsterAnim bin exact.
7 years ago
Anders Jenbo
26d7327b1f
Cleanup ( #1200 )
...
* Clean up effects.cpp
* Clean up monster.cpp
* Clean up codec.cpp
7 years ago
Anders Jenbo
4898803982
Clean up monster.cpp
7 years ago
Anders Jenbo
adc338b579
Clean up MissToMonst
7 years ago
Anders Jenbo
758c6ac377
Fix save games
7 years ago
Sergey Semushin
0549fc189e
Clean up SyncMonsterAnim.
7 years ago
Sergey Semushin
0f992e1c84
Clean up LineClearF1.
7 years ago
Sergey Semushin
80939a9527
Clean up LineClearF.
7 years ago