Kelsidavis-WoWee/src/game
Pavel Okhlopkov 97106bd6ae fix(render): code quality cleanup
Magic number elimination:
- Create protocol_constants.hpp, warden_constants.hpp,
  render_constants.hpp, ui_constants.hpp
- Replace ~55 magic numbers across game_handler, warden_handler,
  m2_renderer_render

Reduce nesting depth:
- Extract 5 parseEffect* methods from handleSpellLogExecute
  (max indent 52 → 16 cols)
- Extract resolveSpellSchool/playSpellCastSound/playSpellImpactSound
  from 3× duplicate audio blocks in handleSpellGo
- Flatten SMSG_INVENTORY_CHANGE_FAILURE with early-return guards
- Extract drawScreenEdgeVignette() for 3 duplicate vignette blocks

DRY extract patterns:
- Replace 12 compound expansion checks with isPreWotlk() across
  movement_handler (9), chat_handler (1), social_handler (1)

const to constexpr:
- Promote 23+ static const arrays/scalars to static constexpr across
  12 source files

Error handling:
- Convert PIN auth from exceptions to std::optional<PinProof>
- Add [[nodiscard]] to 15+ initialize/parse methods
- Wrap ~20 unchecked initialize() calls with LOG_WARNING/LOG_ERROR

Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
2026-04-06 22:43:13 +03:00
..
character.cpp Add body type selection for nonbinary characters and reduce preview rotation sensitivity 2026-02-09 17:56:04 -08:00
chat_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
combat_handler.cpp refactor: remove debug diagnostics from combat and animation code 2026-04-05 19:10:42 -07:00
entity.cpp Fix transport/WMO diagnostics and terrain WMO dedup lifecycle 2026-02-18 22:36:34 -08:00
entity_controller.cpp fix(entities): add diagnostic for NPC death callback chain 2026-04-05 20:41:27 -07:00
expansion_profile.cpp refactor: name auth security flags, log JSON parse failures 2026-03-30 14:43:50 -07:00
game_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
game_handler_callbacks.cpp fix(parsing): bail on suspicious maskBlockCount in CREATE_OBJECT blocks 2026-04-05 20:12:17 -07:00
game_handler_packets.cpp fix(parsing): bail on suspicious maskBlockCount in CREATE_OBJECT blocks 2026-04-05 20:12:17 -07:00
inventory.cpp refactor: replace magic bag slot offset 19 with FIRST_BAG_EQUIP_SLOT 2026-03-30 14:20:39 -07:00
inventory_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
movement_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
opcode_table.cpp refactor: derive turtle opcodes from classic 2026-03-15 02:55:05 -07:00
opcodes.cpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
packet_parsers_classic.cpp fix(parsing): validate spline endPoint coords to reject false-positive format matches 2026-04-03 19:36:34 -07:00
packet_parsers_tbc.cpp docs: add why-comments to TBC parsers, bell audio, portrait preview 2026-03-30 17:26:13 -07:00
player.cpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
quest_handler.cpp chore(refactor): god-object decomposition and mega-file splits 2026-04-05 19:30:44 +03:00
social_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
spell_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
transport_manager.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
update_field_table.cpp feat(animation): 452 named constants, 30-phase character animation state machine 2026-04-04 23:02:53 +03:00
warden_crypto.cpp Fix CodeQL weak-crypto suppressions: switch lgtm to codeql inline format 2026-02-19 17:06:49 -08:00
warden_emulator.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
warden_handler.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
warden_memory.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
warden_module.cpp fix: warden mmap on macOS, add external listfile support to asset extractor 2026-04-04 00:22:07 -07:00
world.cpp Clarify World stub methods: terrain/entity state lives in subsystems 2026-03-09 15:54:43 -07:00
world_packets.cpp fix(render): code quality cleanup 2026-04-06 22:43:13 +03:00
world_packets_economy.cpp chore(refactor): god-object decomposition and mega-file splits 2026-04-05 19:30:44 +03:00
world_packets_entity.cpp Merge master into chore/god-object-decomposition-2nd 2026-04-05 19:42:25 -07:00
world_packets_social.cpp chore(refactor): god-object decomposition and mega-file splits 2026-04-05 19:30:44 +03:00
world_packets_world.cpp chore(refactor): god-object decomposition and mega-file splits 2026-04-05 19:30:44 +03:00
zone_manager.cpp refactor: add why-comments to zone tiles, audio cache, socket buffer 2026-03-30 14:52:51 -07:00