Gleb Mazovetskiy
afef72f916
🎉 New map renderer
...
Uses integer math only: This speeds up the rendering and eliminates some
zoom artifacts.
Improves player indicator look -- it's now symmetric and more legible.
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
Anders Jenbo
bfc510fb23
Clean up automap.cpp
5 years ago
Anders Jenbo
654a2b8834
♻️ Clean up automap code
...
Use Point for x,y pairs. Make helpers for drawing door and squares
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
48dbb47d70
🌐 Apply static translations
5 years ago
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
5 years ago
John Törnblom
e0dddf508a
Add automatically translated string literals ( #1694 )
5 years ago
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
5 years ago
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
5 years ago
Anders Jenbo
433fc9fa8d
💚 Packport std::clamp for pre GCC 7.1
5 years ago
Anders Jenbo
72ad648e9a
♻️ Cleanup some min/max/clamp logic
...
Apply suggestions from code review
Co-authored-by: Gleb Mazovetskiy <glex.spb@gmail.com>
Co-authored-by: thebigMuh <81810641+thebigMuh@users.noreply.github.com>
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
5 years ago
Anders Jenbo
a8d6ec29b7
🎨 Correct name of intermidiat variable
5 years ago
Anders Jenbo
0bf3516be2
🎨 Revert use of range loops on 2D arrays
5 years ago
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
660eeb19d2
🎨 Apply agreeable part of clang-tidy to appfat and automap
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
f04b5501ef
🚚 Desolve types.h
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
583b430ed7
🐛 Do not show other players on map while changing levels
...
Fixes #1276
5 years ago
Anders Jenbo
1d537e0a93
🚨 Add missing cases to most switches
5 years ago
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
5 years ago
Anders Jenbo
3077208b8b
♻️ Clean up automap.cpp
5 years ago
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
5 years ago
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
5 years ago
Gleb Mazovetskiy
83ce7c27af
Enginify `trans_rect`
...
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
5 years ago
Gleb Mazovetskiy
188d3d5ec0
automap: Migrate away from gpBuffer/gpBufEnd
5 years ago
Gleb Mazovetskiy
e5d7571ea7
Cleanup: Remove ENG_set_pixel function
...
Migrated to SetPixel
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
pionere
d5a0fa8e85
get rid of a few warnings
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Joerg Wissen
25a8d5be6b
Added feature to show all players on automap. ( #977 )
5 years ago
Anders Jenbo
c802cbdc4d
Merge more Hellfire code paths
5 years ago
Anders Jenbo
d20eddf48e
Unifcy a chunk of Hellfire's code pathts
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
Anders Jenbo
30e61ed9a0
Reorder automap.cpp
5 years ago
Anders Jenbo
b459c8254b
Correct search item panel offset
6 years ago
Anders Jenbo
e9de54fb5a
Calculate position of item highlighting
6 years ago
qndel
b81d2eb831
some cleanups ( #2099 )
6 years ago
pionere
fa718398a3
map type
6 years ago
Anders Jenbo
e6ac9d379d
Correct automap rendering for all resolutions dynamically
6 years ago
Anders Jenbo
8c2fb7605e
Use defines for tile and screen related magic numbers
6 years ago
Robin Eklind
452d6d25cc
docs: add function documentation to automap.cpp
6 years ago