Commit graph

462 commits

Author SHA1 Message Date
Juliano Leal Goncalves
bb093ff3a2 ♻️ Leverage 'Point' in 'DrawItem' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
db3ec3f329 ♻️ Leverage 'Point' in 'DrawObject' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
0b2f443d97 ♻️ Leverage 'Point' in 'DrawMissile' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
e997a7ae08 ♻️ Leverage 'Point' in 'DrawDungeon' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
515b427f14 ♻️ Leverage 'Point' in 'DrawCell' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
7da37da8c9 ♻️ Leverage 'Point' in 'RenderTile' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
1552b0971b ♻️ Leverage 'Point' in 'DrawFloor(Surface, int, int, int, int)' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
b18ed891d0 ♻️ Leverage 'Point' in 'DrawFloor' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
072ca21405 ♻️ Replace 'tileOffsetX' and 'tileOffsetY' globals with single 'tileOffset' 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
7d62e80ca0 ♻️ Replace 'tileShiftX' and 'tileShiftY' globals with single 'tileShift' 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
17bab948c8 ♻️ Leverage 'Point' in 'DrawGame' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
a7c070c46a ♻️ Leverage 'Point' in 'DrawView' function 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
ba66a9dc87 ♻️ Replace 'dmaxx' and 'dmaxy' globals with single 'dmaxPosition' 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
6583410152 ♻️ Replace 'dminx' and 'dminy' globals with single 'dminPosition' 2021-09-06 00:31:25 +02:00
Juliano Leal Goncalves
940a120bf9 ♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition' 2021-09-04 18:06:28 -04:00
Juliano Leal Goncalves
6e1d05187e 🚚 Rename 'MissileStruct' to 'Missile' 2021-09-02 05:46:44 +02:00
Juliano Leal Goncalves
20db8d1a11 🚚 Rename 'MonsterStruct' to 'Monster' 2021-09-01 22:26:37 +02:00
Juliano Leal Goncalves
35854b4668 🔥 Remove defensive check around monster mode logging logic 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
1cd62bbc64 🚚 Rename 'MonsterMode' members for semantic and consistency 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
69a7cb66d4 ♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
cadf841e5f ♻️ Convert monster mode display name lookup to local lambda
This eliminates the array indexing using the enum directly, which is something we want to avoid going into enum classes for these enums.
2021-09-01 19:15:08 +02:00
qndel
a737d72dd9
Dynamic char panel 2021-08-30 20:33:55 +02:00
Juliano Leal Goncalves
01823e1324 ♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition' 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
a469f7906e ♻️ Replace 'cursW' and 'cursH' globals with single 'cursSize' 2021-08-30 06:45:51 +02:00
qndel
8436e1f641
Merge pull request #2711 from qndel/show_coords 2021-08-28 17:15:24 +02:00
Anders Jenbo
866bc56008 Clean up remaning usages of Missiles[] 2021-08-28 09:16:48 +02:00
obligaron
3c45149cef Introduce IsDiabloMsgAvailable and hide msgflag 2021-08-26 08:28:46 +02:00
BC Ko
4df798808e
2435 refactor global variable Items part 2 (#2673) 2021-08-26 08:06:48 +02:00
Anders Jenbo
4a1e4c599b Port debug vision to a command 2021-08-19 20:36:12 +02:00
Anders Jenbo
f289fbcec5 Remove dead missile code 2021-08-13 03:59:29 +02:00
Vladimir Olteanu
040ca7b1e9 Remove logic related to unused MFLAG_ALLOW_SPECIAL 2021-08-12 00:19:09 +02:00
Vladimir Olteanu
3364a4e00c Refactor MisFileData
MisFileData: make pinnedMem private
2021-08-12 00:19:09 +02:00
obligaron
82cea78def Apply clang-format 2021-08-11 20:52:32 +02:00
Aaron Sun
3ee90ca629 Add options for sub-panel alignment 2021-08-07 16:09:32 +02:00
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) (#2498) 2021-08-05 21:27:07 +02:00
Anders Jenbo
d523fc1e81 Cleanups 2021-08-02 10:12:40 +02:00
ephphatha
0575716eac Rename UiFlags members to group related options 2021-07-31 20:22:40 +02:00
ephphatha
4ad53232a0 Convert the UiFlags enum to a scoped enum type
Replace operator&& with named function
2021-07-31 20:22:40 +02:00
obligaron
7d9891b249 ADL GetOffsetForWalking: remove diagonal special 2021-07-25 21:23:32 +02:00
Anders Jenbo
a07b30a0c7 Get Towners by reference 2021-07-20 03:12:15 +02:00
Anders Jenbo
de0b3a38b8 Apply code style 2021-07-20 02:51:39 +02:00
Anders Jenbo
e5fc7fd17c Move remaning symbols in to anonymous namespaces 2021-07-20 02:51:39 +02:00
Anders Jenbo
9c4e34f988 Player by reference 2021-07-20 01:35:56 +02:00
Anders Jenbo
0889780923 Remove more usage of miniwin types 2021-07-18 02:11:58 +02:00
Anders Jenbo
9264ad4b89 Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]] 2021-07-17 03:57:26 +02:00
obligaron
5ed79c38ef Introduce MissilePosition.StopMissile 2021-07-16 02:15:36 +02:00
Anders Jenbo
77b72da276 ♻️Use monster by reference when possible 2021-07-14 20:22:35 -07:00
Anders Jenbo
ef6275caac Clean up private function names 2021-07-12 17:59:22 -07:00
obligaron
54d63e2edd Change AnimationInfo.pCelSprite to const 2021-07-12 07:40:38 -07:00
obligaron
72692028f7 Refurbish table in GetOffsetForWalking 2021-07-11 09:17:16 -07:00