Gleb Mazovetskiy
62e9aa0448
`MissilePosition`: Use `WorldTilePosition`
...
Reduces struct size and makes the types of coordinates more obvious.
3 years ago
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
3 years ago
obligaron
b87711bc08
Reintroduce Player::spellFrom to seperate teleport cursor from queued spell
3 years ago
KPhoenix
d813f13700
`enum spell_id` -> `enum class SpellID`
3 years ago
Eric Robinson
ef3a57b7d9
`enum spell_type` -> `enum class SpellType` ( #5674 )
3 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
obligaron
439a9926e5
Clean up spell usage function names
...
Rename UseMana -> ConsumeSpell
Rename RemoveCurrentSpellScroll -> ConsumeScroll and remove unused return value
Rename UseStaffCharge -> ConsumeStaffCharge
Rename UseScroll -> CanUseScroll
4 years ago
Anders Jenbo
56915974d6
Minimize passing of player indexes
4 years ago
Anders Jenbo
6a8fd04067
Use player by references ( #4938 )
4 years ago
staphen
cab75ded6b
Check both SPL_NULL and SPL_INVALID to determine spell validity
4 years ago
Anders Jenbo
ab55877adc
Take player by reference in UseMana
4 years ago
staphen
e6182709d1
Allow casting Town Portal, Teleport, and Guardian scrolls from inventory
4 years ago
ephphatha
92fcdda3a7
Refactor OnHealOther to operate on Player references
4 years ago
qndel
be0b79f9f5
Add IsWallSpell helper
4 years ago
Siddharth singh chouhan
18125aac6a
Move documentation from implementations to declarations #2735 ( #2782 )
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
qndel
bb4d087d60
fix resurrect ( #2577 )
5 years ago
vladtepesch
0e56e52c75
fixes casting level 0 spell says "not enough mana" ( #2568 )
5 years ago
Anders Jenbo
35b2aa4947
♻️ Unfold a few functions
5 years ago
Anders Jenbo
ee7b32d8f6
Player by reference part 3
5 years ago
Vladimir Olteanu
e9a773f487
Make GetSpellBitmask constexpr
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
5 years ago
Anders Jenbo
fdf5d514b6
Remove redundant code from CastSpell
5 years ago
Juliano Goncalves
00f3b753ee
Extract valid readied spell logic
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
1ba96a6777
Add doxygen description to remaining engine files
6 years ago
Joel Falcou
c4223d4c29
Per file basis use of extern C
6 years ago
Joel Falcou
64d26a7934
Sanitize use of namespace
...
Wrap individual headers in dvl namespace to prevent
including standard header in another namespace.
6 years ago
galaxyhaxz
3bd28cc0c1
Fix function order [spells+pack.cpp]
6 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
66438890aa
Clean up spells.cpp
7 years ago
galaxyhaxz
610580625e
Split data from files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
Anders Jenbo
db77557dce
ValidatePlayer ( #318 )
...
* ValidatePlayer
* Add MAX_SPELLS define
8 years ago
Dennis Duda
84120afd83
Cleaned up CheckSpell and CastSpell, now both binary exact!
8 years ago
Dennis Duda
0200a2abba
Refactored spells.cpp ( #147 )
...
Finished refactoring spells.cpp, modifying other files only as needed.
Some functions are 99% binary exact now, like PlacePlayer, for example.
Added notes/TODOs for places with remaining discrepancies.
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago
galaxyhaxz
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
8 years ago
galaxyhaxz
bcb3abe96b
Add files via upload
8 years ago
galaxyhaxz
dde68ff89e
Add files via upload
8 years ago