Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
2021-04-24 17:07:07 +02:00
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
2021-04-22 03:53:35 +02:00
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
2021-04-21 05:31:17 +02:00
Anders Jenbo
f8e3672469
♻️ Fully apply clang-tidy rules to a few files
2021-04-20 19:39:38 +02:00
Anders Jenbo
9e307a0d4a
🎨 Rename towner[] to towners[]
2021-04-19 22:42:19 +02:00
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
2021-04-19 22:42:19 +02:00
Anders Jenbo
b978d80119
🎨 llvm-include-order
2021-04-19 20:11:20 +02:00
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
2021-04-19 16:02:05 +02:00
thebigMuh
50dcf587f4
Adding fancier XP bar ( #1597 )
2021-04-19 02:59:20 +02:00
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
2021-04-19 02:44:39 +02:00
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
2021-04-18 18:15:47 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
2021-04-16 01:04:54 +02:00
Juliano Leal Goncalves
cc5f2a8f49
🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
...
Members were renamed as well for readability.
2021-04-13 03:02:14 +02:00
Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
2021-04-13 03:02:14 +02:00
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
2021-04-12 20:00:53 +02:00
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
2021-04-12 20:00:53 +02:00
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
2021-04-10 16:30:00 +02:00
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
2021-04-10 05:24:01 +02:00
Anders Jenbo
4f8b5e2f5f
🎨 Correct style of true comparisons
2021-04-09 15:13:02 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
2021-04-09 15:13:02 +02:00
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
2021-04-08 04:31:26 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Juliano Leal Goncalves
b9fdf02925
🐛 Spend only needed points when shift+clicking stats
...
When the stat points needed to reach a given attribute's cap is less
than the total amount of points remaining to distribute, only the
necessary points will be spent now, leaving the rest to be spent on
other attributes.
2021-04-04 01:55:44 +02:00
Juliano Leal Goncalves
bb2efe03e3
♻️ Use 'PlayerStruct' references in 'ReleaseChrBtns' function
2021-04-04 01:55:44 +02:00
qndel
3501af6647
fix spinner
2021-04-04 01:43:17 +02:00
Anders Jenbo
2362ff82f7
✨ Add black text color
2021-03-27 23:04:19 +01:00
Anders Jenbo
ac9ae2e062
🐛 Fix loading of sorceror graphics
...
This also detangles some of the hellfire wip classes and duplicate
tables
2021-03-21 13:13:22 +01:00
Anders Jenbo
38fdf34c14
💄 Apply code style
2021-03-20 20:39:28 +01:00
Anders Jenbo
a01cafbf69
🚨 Apply spell_id
2021-03-20 20:39:28 +01:00
Anders Jenbo
1d537e0a93
🚨 Add missing cases to most switches
2021-03-20 20:39:28 +01:00
Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
2021-03-20 20:39:28 +01:00
Gleb Mazovetskiy
70d1d633bd
Get rid of SCREEN_X / SCREEN_Y
...
GlobalOutputBuffer() now returns a clipped subregion
2021-03-17 23:37:58 +01:00
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
2021-03-14 15:38:23 +01:00
Gleb Mazovetskiy
cd59a1c323
Completely replace gpBuffer with CelOutputBuffer
...
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.
We now have access to SDL surface manipulation functions.
`gpBuffer` and `gpBufEnd` are completely gone 🧹
This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
2021-03-13 05:13:26 +01:00
Gleb Mazovetskiy
bafbad6b5b
Migrate RedBack away from gpBuffer
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
e7c9ba40f5
Migrate DrawLife/ManaFlask away from gpBuffer
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
ab6aa3f280
Migrate SetFlaskHeight away from gpBuffer
...
Also renames to `DrawFlaskTop` and makes it static.
2021-03-13 02:26:11 +01:00
Gleb Mazovetskiy
379b45e021
Migrate CelDrawLight to CelDrawLightTo
2021-03-06 09:55:14 +01:00
Gleb Mazovetskiy
b43325028f
Migrate CelDraw to CelDrawTo
2021-03-06 09:55:14 +01:00
Anders Jenbo
e280432b92
🚨 Fix all SDL1 warnings
2021-03-06 05:56:47 +01:00
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire ( #1104 )
2021-03-06 04:15:54 +01:00
Juliano Leal Goncalves
37466890e0
♻️ Extract 'ItemStruct.isEmpty()' function
2021-03-05 03:52:11 +01:00
Anders Jenbo
2923ad043a
🚸 Shift+click to clear the readied spell
2021-03-05 00:53:51 +01:00
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing ( #1095 )
...
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
2021-03-03 18:20:24 +01:00
Juliano Leal Goncalves
c81a1efb55
Standardize colon alignment on text ( #816 )
2021-02-27 23:03:41 +01:00
Gleb Mazovetskiy
8283f85e24
Engine: Functions to render to any buffer
...
Refactor the rendering functions to allow rendering to any output
buffer.
New functions that accept a buffer have the `To` suffix.
The functions that render to the global buffer now always accept
coordinates.
2021-02-27 17:49:39 +01:00