Commit Graph

22 Commits

Author SHA1 Message Date
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 6e83a87f42 Implement dCom attention inlines 2025-03-01 00:54:52 -05: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 0dd3f6e47c Standardize process ID type to be uint 2024-03-11 19:03:47 -04:00
LagoLunatic d0e8844b4b Add uint typedef 2024-03-11 18:23:44 -04:00
SuperDude88 d627dd6a0a Start Orca 2024-02-25 00:06:20 -05:00
LagoLunatic 823fc34f15 misc cleanup 2024-02-05 19:35:40 -05:00
Jcw87 ec16c2acac d_att_dist 2024-01-20 00:23:34 -08:00
LagoLunatic 2a27075530 d_a_player_main 2024-01-16 14:44:21 -05:00
Jasper St. Pierre f5773a44d1 d_attention work 2024-01-14 22:10:48 -08:00
LagoLunatic bcfdfbadc7 d_detect 60% 2023-12-29 17:17:18 -05:00
Jasper St. Pierre cfcb384bf4 d_event work 2023-12-28 22:54:14 -08:00
LagoLunatic bc42db3897 d_a_npc_md work 2023-12-20 15:42:07 -05:00
LagoLunatic ec3f7f0198 misc minor cleanup (indentation, offset comments, etc) 2023-12-19 21:29:37 -05:00
Jasper St. Pierre 3327711006 d_attention work 2023-12-02 15:53:02 -08:00
LagoLunatic 1c473f796d d_a_npc_md progress 2023-11-27 16:08:31 -05:00
Jasper St. Pierre 6ea08a5c37 remove address markers from tp headers 2023-10-02 22:26:24 -07:00
Jasper St. Pierre d330552361 d_attention work 2023-09-23 03:40:46 -07:00
LagoLunatic 01f2fc433f d_a_nh done (no match) (#55)
* Fix sin and cos

* Fix dCcD_GObjInf JP inlining difference

* Improvements to dDlst_alphaModel_c

* d_a_nh done (no match)
2023-09-18 12:29:40 -07:00
TakaRikka f1d8c41c38 work on d_s_play (#31)
* work on d_s_play

* some fixes
2023-09-14 12:45:49 -07:00
TakaRikka 0f3b98fdca more of d_com_inf_game setup 2023-09-10 16:02:21 -07:00