Commit Graph

69 Commits

Author SHA1 Message Date
LagoLunatic f064e064eb d_cam_style: Fix excessive float precision 2025-05-07 01:47:44 -04:00
LagoLunatic f690b92d28 Add camera mWork union; also fix clang union handling
Union members with non-trivial ctors/dtors is undefined behavior and clangd normally throws a fit and refuses to parse the whole union, but it seems to be possible to ifdef the problematic ctors out for non-mwerks compilers and explicitly tell modern compilers to use the defaults instead. Thanks to encounter for this fix.
2025-05-07 01:19:23 -04:00
LagoLunatic c4eb26b2a1 d_attention cleanup, add mDoCPd inlines 2025-04-27 16:38:29 -04:00
Mm2PL 4d1cb33cd8 d_attention 100% (#701)
* Add helper functions for d_attention

* Copy and adapt code from TP

* Move for better matching layout

* Clean up includes for d_attention.cpp

* Give dAttention_c::nextAttention a return

* Use enums in dAttention_c::getActionBtnB and slight reformat

* Change return types for comparison code to match
I don't love this

* Implement dAttList_c::calcWeight

* Implement dAttention_c::sortList

* Implement dAttDraw_c::draw

* Implement dAttDraw_c::setAnm

* Implement dAttention_c::chaseAttention

* Implement judgement related functions

* Implement dAttention_c::Run and runDrawProc

* Implement dAttention_c::Draw

Actually finish Draw

* Looks like dAttention_c::stockAttention had an unused return value

* Give d_Attention_c::mLockOnState an enum

* Rename field_0x02c to mDrawAttnPos based on TP

* Add comments for fields of d_attention

* Give d_attention's flags an enum (although without names)

* Undo type change for dAttention_c::{chk,set,clr}Flag

Co-Authored-By: LagoLunatic <LagoLunatic@users.noreply.github.com>

* Do not spell the `this` pointer

Co-Authored-By: LagoLunatic <LagoLunatic@users.noreply.github.com>

* Deal with resource enums and inlines

* Move PLAYER_STATUS_FLAG_MAGIC_JUDGEMENT to daPy__PlayerStatus0 enum

* Use inlines and macros

* Add mDoCPd_L_LOCK_BUTTON inline, debug maps claim it exists

Nothing else uses it

* Update TODO comments

* Debug maps claim runXyCheckCB was used but it only makes sense if modified

* Use dComIfGp_getPlayer instead of directly indexing the array

* Locate a few more inlines

* Do not cast to AttentionFlags enum type

* Update configure script

---------

Co-authored-by: LagoLunatic <LagoLunatic@users.noreply.github.com>
2025-04-27 15:12:46 -04:00
LagoLunatic 309158e274 J3DModel inlines cleanup, procBottleSwing_init match, etc 2025-04-10 19:30:51 -04:00
LagoLunatic 5dff645173 Cleanup
0.0099999998f -> 0.01f
4 space indents
Unnecessary parentheses from Ghidra
etc
2025-04-01 15:26:16 -04:00
123456789758 340a15feb3 d_a_player_grab.inc - Almost all matching except a few with minor issues. (#719)
Co-authored-by: ‎ ‎ ‎ <‎ ‎ ‎>
2025-04-01 14:31:00 -04:00
LagoLunatic 37dbfd75de Add item button enum and talk button enum 2025-01-06 00:23:55 -05:00
LagoLunatic 34afbd84db clangd: Started fixing warnings and errors, code cleanup 2024-10-17 21:35:18 -04:00
Jasper St. Pierre 00eb28e903 d_a_obj_vmc match
fixes #448
2024-09-02 11:47:52 -07:00
LagoLunatic 2def735282 Add fpc_ProcID type and use it for all process IDs
See https://github.com/zeldaret/tp/pull/2173
2024-07-12 21:14:13 -04:00
LagoLunatic 61d9f474a5 Add extern declarations to headers for all global variables 2024-07-12 19:19:30 -04:00
LagoLunatic 2b71216c8b Add enum for attention types 2024-04-17 00:15:24 -04:00
LagoLunatic 0dd3f6e47c Standardize process ID type to be uint 2024-03-11 19:03:47 -04:00
LagoLunatic 443691603d rename fopAc_ac_c member vars to match TP decomp 2024-03-08 21:31:41 -05:00
LagoLunatic e47938b60d d_a_bk work 2024-02-29 16:28:38 -05:00
LagoLunatic 4054dc3fba d_a_bk work 2024-02-09 13:55:31 -05:00
LagoLunatic b6c878a652 d_event OK 2024-02-02 20:05:03 -05:00
LagoLunatic 59c571a4b3 Clean up inlines for f_op_actor_mng 2024-01-23 22:49:15 -05:00
LagoLunatic 25e69da75e d_cc_uty OK 2024-01-20 19:27:19 -05:00
LagoLunatic 4463680333 Rename actor orig->home and next->old 2024-01-16 18:30:05 -05:00
LagoLunatic 2a27075530 d_a_player_main 2024-01-16 14:44:21 -05:00
LagoLunatic 8485e571b4 d_a_player_main work 2024-01-15 04:47:27 -05:00
Jasper St. Pierre 463852850f d_event_manager work 2023-12-29 00:12:31 -08:00
Jasper St. Pierre cfcb384bf4 d_event work 2023-12-28 22:54:14 -08:00
LagoLunatic ee8c09de92 d_a_bk work 2023-12-24 23:54:12 -05:00
Jcw87 3e007c7ea9 Make some more TUs compile 2023-12-15 00:01:49 -08:00
LagoLunatic a7aef34839 start d_a_bk 2023-12-02 01:28:24 -05:00
LagoLunatic 97eb1fb31f Remove fake inlines from fopAc_ac_c, add real inlines 2023-11-24 18:06:07 -05:00
Jasper St. Pierre e4d59662ba d_a_obj_monument 2023-11-10 22:08:03 -08:00
LagoLunatic 4186e645d2 d_a_rd start 2023-11-09 16:52:38 -05:00
LagoLunatic 5b7cd2e1b2 d_a_hookshot 33% 2023-11-08 04:02:20 -05:00
LagoLunatic f3055e96e8 Fix some roomno related inlines 2023-11-02 05:31:02 -04:00
LagoLunatic cac834d67f fix daPy_npc_c::setRestart regression 2023-11-01 01:14:16 -04:00
LagoLunatic 2c907c8a21 Clean up code for various actors 2023-10-29 02:07:52 -04:00
LagoLunatic febaa8ff15 Get d_a_npc_md set up 2023-10-26 04:01:04 -04:00
LagoLunatic 2bd38293a8 d_a_bg match + fix link's actor profile 2023-10-22 03:33:14 -04:00
LagoLunatic 20b9c088a4 Fix intellisense error 2023-10-21 01:09:27 -04:00
Jasper St. Pierre f890e8b293 d_a_swtdoor 90% 2023-10-20 21:14:10 -07:00
LagoLunatic 94777d2c0c Actor attention flag enum cleanup 2023-10-19 15:37:23 -04:00
LagoLunatic 0ca314c746 Add attention flags enum, use enums in more places 2023-10-15 00:45:59 -04:00
Jasper St. Pierre 405dd30174 d_path match, d_a_boko_static 99% 2023-10-12 16:53:51 -07:00
Kristopher Early 4ce51c0de6 100% 2023-10-11 16:42:05 +01:00
LagoLunatic 7e226cc930 c_damagereaction 20% 2023-10-10 17:26:00 -04:00
LagoLunatic 2e70dd019b d_bg_s_acch 70% 2023-10-09 15:45:46 -04:00
LagoLunatic 4bd49693ae f_op_actor OK 2023-10-08 19:53:04 -04:00
LagoLunatic 58de079efd d_a_player_npc 98% 2023-10-08 19:47:32 -04:00
LagoLunatic 8d4a9545e1 Use fopAcStts enum everywhere 2023-10-07 02:26:59 -04:00
LagoLunatic 7767b9544c f_op_actor_mng progress 2023-10-07 01:41:57 -04:00
LagoLunatic 7372aa189b d_a_am 100%, no match 2023-10-06 00:07:15 -04:00