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
qndel
c2587d9786
use enums ( #1997 )
6 years ago
qndel
3008439bc7
enums and stuff
6 years ago
Marco
29b9c99e5a
added some more values from enums ( #1955 )
6 years ago
qndel
f9558c81c4
AddObject cleanup
6 years ago
qndel
59ccb89e12
ProcessObjects cleanup
6 years ago
Marco
a939a7f0be
Enum for object trap
6 years ago
qndel
6a8e2f0e25
SetupObject cleanup
6 years ago
qndel
b01f1907b5
Obj_Circle cleanup
6 years ago
qndel
1abb61cb64
OperateCauldron cleanup
6 years ago
qndel
3a66af638d
OperateTrapLvr cleanup
6 years ago
qndel
3f9398812a
SyncDoors cleanup
6 years ago
Marco
4626450e11
some more item based enum consts
6 years ago
Marco
d6d60f0109
OperateSkelBook const IMISC_SCROLL
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
qndel
1414b7e2aa
apply enum to max shrines
6 years ago
qndel
80ee6b2668
apply TRUE/FALSE
6 years ago
qndel
5cb4e9ad25
AddMagicCircle cleanup
6 years ago
qndel
dd7a8d7b2d
Obj_Trap cleanup
6 years ago
qndel
8ab71cb98b
AddL1Door cleanup
6 years ago
galaxyhaxz
67fedd9e99
Fix unknown struct field and drawpanflag
6 years ago
Anders Jenbo
0e578ffb11
Enable assertions
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
6 years ago
Anders Jenbo
2079b67475
Drop dpiece_defs_map_1 memory access optimization
...
This also gets rid of IsometricCoord. They where used to map tiles in a
way that had a simpler access pattern when rendering the screen in
visual oriented rows.
See
https://github.com/diasurgical/devilution/pull/544#issuecomment-450968761
7 years ago
Anders Jenbo
73a7a1ae6d
Remove unimplemented functions that aren't needed with SDL
7 years ago
arczi84
1ab2fb2666
Endian madness
7 years ago
qndel
06e7b4dbdb
more enums
7 years ago
qndel
7129558d0b
apply enums
7 years ago
qndel
93f7c5f935
AddWeaponRack cleanup
7 years ago
qndel
2cef74bd57
AddArmorStand cleanup
7 years ago
qndel
7daee74e3d
BreakCrux cleanup
7 years ago
Anders Jenbo
1f715f86f6
Clean up
7 years ago
Robin Eklind
f4e8860297
objects: use boolean values for fileload
7 years ago
Anders Jenbo
f605138c79
Strip ASM code
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
5ab9f4609a
Clean up signedness
7 years ago
Anders Jenbo
aa50489569
Clean up generated comments
7 years ago
Robin Eklind
7441f29867
Use TRUE value for _iIdentified.
7 years ago
Robin Eklind
105a583ce0
Use TRUE and FALSE enums for setlevel.
...
Also simplify if conditions to make
use of boolean values.
(If the cleanup4 PR ends up increasing
inserts/deletions, then this commit is
probably at fault.)
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
Joan Karadimov
fce804a09a
Use the dungeon_type enum for leveltype
7 years ago
Anders Jenbo
a7788ccddf
Format bin exact code
7 years ago
Manuel K
ce1f397658
Use MAX_PLRS
7 years ago
Anders Jenbo
58bbfcf8ad
Fix OperateLazStand
7 years ago
Anders Jenbo
635deebbd4
Apply enums to SpawnQuestItem
7 years ago