Commit Graph

58 Commits

Author SHA1 Message Date
scbroede
9fddd04a57
more trainer card documentation (#647) 2025-07-29 21:07:51 -07:00
Eduardo Quezada
278894baa5
Some documentation of BgLayer uses (#565)
Some checks are pending
build / build (push) Waiting to run
2025-06-22 15:15:05 -07:00
Rachel
3f95533254 Rename math -> math_util
This resolves an issue when compiling native utilities with older
versions of Clang (and maybe GCC?) where C++ tools would include this
project header instead of the C standard library's math.h.
2025-04-28 02:03:39 -07:00
Eduardo Quezada
e7d42fb976
Heap ID breadcrums: Revengeance (#463)
* Heap_AllocFromHeapAtEnd Heap ID breadcrums

* Consistent heapID capitalization

* More Heap IDs

* A little bit more Heap IDs

* More and more Heap IDs

* Stopping for today

* MOAR

* more and more

* Back from the Heap ID mines

* A couple more
2025-04-20 12:50:46 -07:00
Fexty12573
1d3f57b56e Format files 2025-04-06 12:27:54 +02:00
Fexty12573
3ce0fb2e5f Rename sound_playback file 2025-04-06 12:09:09 +02:00
Eduardo Quezada
f883bca9d5 Sound_PlayEffect literals to constants 2025-03-12 22:33:32 -03:00
Eduardo Quezada
ed703f6f07 graphics heap IDs 2025-03-06 16:53:23 -03:00
Eduardo Quezada
8542f781bc NARC_ctor heap IDs 2025-03-06 16:09:34 -03:00
Eduardo Quezada
96de367d39 Same-line var definitions 2025-03-05 10:19:40 -03:00
Rachel
41abbde3c6 Mass terminology update: CellActor -> Sprite, etc. 2025-02-13 18:43:23 -08:00
Rachel
129408a452 Decorate calls to SetAffineOverwriteMode with enum constants 2025-02-13 18:38:59 -08:00
Rachel
fefb1866d0 Identify functions in sprite_system.c 2025-02-13 18:37:10 -08:00
Rachel
02870538aa Identify unk_0200C6E4 -> sprite_system and document structs 2025-02-13 18:37:08 -08:00
Rachel
4be75d22fb Identify extern functions in char_transfer.c 2025-02-02 19:58:28 -08:00
Rachel
81cb1b2f27 Identify structs used in char_transfer + document templates 2025-02-02 19:55:58 -08:00
Rachel
14b7a95da0 Identify unk_0201E86C -> char_transfer 2025-02-02 19:55:58 -08:00
Rachel
5cb7907656 Document math.c 2024-11-18 20:00:38 -08:00
Rachel
0c0edafa26 Identify unk_0201D15C -> math 2024-11-18 20:00:38 -08:00
Rachel
fa194563da Identify extern functions in graphics.h 2024-10-23 16:42:39 -07:00
Rachel
a96c89a124 Identify unk_02006E3C -> graphics 2024-10-23 13:52:26 -07:00
Rachel
97d1986ee1 Collapse NARC struct decl into narc.h, clean up narc.c 2024-10-23 13:48:18 -07:00
Rachel
5f3e1eb7a0 Identify extern functions in palette.h 2024-10-23 13:27:54 -07:00
Rachel
75e11a716f Identify unk_02002F38 -> palette 2024-10-23 13:27:54 -07:00
Rachel
d07cc27eca Identify extern functions in bg_window.h 2024-10-22 10:37:09 -07:00
Rachel
8f6b317313 Identify UnkStruct_02018340_t -> BgConfig and document fields 2024-10-22 10:15:00 -07:00
Rachel
163050584a Identify unk_02018340 -> bg_window 2024-10-20 11:59:06 -07:00
Rachel
b6ff10c33f Decorate TextPrinters with consts and macros 2024-10-19 18:32:10 -07:00
Rachel
3c048b0fa7 Identify unk_0201D670 -> text 2024-10-13 02:43:49 -07:00
Rachel
fe4e23691c Identify remaining extern funcs in font.c 2024-10-13 00:54:39 -07:00
Rachel
f54b08150b Identify unk_02002B7C -> font 2024-10-12 15:49:24 -07:00
Rachel
36045f723b Format the source tree 2024-07-06 14:40:34 -07:00
Rachel
f77ba49579 Modify array-of-array/struct decls and BOOL funcptrs throughout ahead of clang-format run 2024-07-05 17:14:32 -07:00
Adrienn Tindall
0ca9748f22 Added some constants 2024-04-10 15:42:05 -04:00
Adrienn Tindall
a89a1a211b Nitpicks 2024-04-01 02:26:15 -04:00
Adrienn Tindall
6fe69ac182 requested changes 2024-04-01 01:42:36 -04:00
Adrienn Tindall
33b191ec3c communication information more documentation 2024-03-31 22:38:21 -04:00
Adrienn Tindall
cc888724be Identify communication_system.h 2024-03-31 19:02:36 -04:00
Rachel
ec274059e8 Label structs and functions used by Healthbar_DrawBattlerName
- UnkStruct_0200B358 → StringFormatter
- ov16_0223E0D0 → BattleSystem_StringFormatter
- sub_0200B5CC → StringFormatter_BufferNickname
- sub_0201D7E0 → PrintStringWithColorAndMargins
- sub_0201A870 → BGL_AddFramelessWindow
- sub_02021F98 → SpriteActor_ImageProxy
2024-02-11 12:18:32 -08:00
Rachel
751c1cd688 sub_0200D3F4 -> SpriteActor_EnableObject 2024-02-11 12:15:36 -08:00
Rachel
6a178edfe3 Document SpriteTemplate struct 2024-02-08 22:19:03 -08:00
Rachel
613541aaf9 Label sprite-drawing routines used by party gauge tasks 2024-02-08 22:19:03 -08:00
Rachel
3fdcf8791b Synchronize struct names for graphics rendering with pokeheartgold 2024-02-08 22:19:03 -08:00
Rachel
b7fffbfc76
Rebase + clean-up PR#115 with current project state (#134)
* improving readability

also seemingly located the party healing function

* readability

* clean it up

* Update pokemon.h

* add function names

Adds names to many unnamed functions for readability. Also adds names to a couple structs.

* add function names

* add struct names

* more functions with human names

* rename chatotcrydata

* doxygen documentation

* update box mon function

ProcessBoxPokemonWithTrainerInfo is now UpdateBoxMonStatusAndTrainerInfo and all params are labeled

* fixing formatting

---------

Co-authored-by: Jack <schoenjack98@gmail.com>
2024-01-28 19:05:12 -08:00
Kurausukun
4045bb1578 start matching functions 2023-11-09 15:57:05 -05:00
lhearachel
57a0b5fcc4 [Mass Rename] Structs and subroutines for GiveExp task func
Functions:
- ov16_0223E05C -> BattleSystem_MessageLoader
- ov16_02259B38 -> BattleSystem_PokemonIsOT
- ov16_022499C0 -> BattleScript_CalcEffortValues
- ov16_0223EDF0 -> BattleSystem_TextSpeed
- ov16_0223FB24 -> BattleMessage_Print
- sub_0201D724  -> Message_Printing
- ov16_02265D14 -> BattleIO_UpdateExpGauge
- sub_02076B14  -> Pokemon_ShouldLevelUp
- ov16_02265FF8 -> BattleIO_PlayStatusEffect
- ov16_0226614C -> BattleIO_PlayLevelUpAnimation
- ov16_02251C94 -> BattleSystem_ReloadPokemon
- ov16_0224B520 -> BattleScript_LoadPartyLevelUpIcon
- ov16_0223DF00 -> BattleSystem_BGL
- ov16_0223DF04 -> BattleSystem_Window
- ov16_0223E064 -> BattleSystem_PaletteSys
- sub_02019060  -> BGL_SetPriority
- ov16_0223F8DC -> BattleSystem_SetGaugePriority
- sub_0200DA60  -> Window_SetFrame
- sub_0200DAA0  -> Window_FramePalette
- sub_02003050  -> PaletteSys_LoadPalette
- sub_0201A7E8  -> BGL_AddWindow
- sub_0201ADA4  -> BGL_FillWindow
- sub_0200DC48  -> Window_Show
- ov16_0223FB78 -> BattleMessage_PrintToWindow
- sub_0201AE78  -> BGL_WindowColor
- sub_02005748  -> Sound_PlayEffect
- sub_0200DC9C  -> Window_Clear
- sub_0201A8FC  -> BGL_DeleteWindow
- ov16_0224B7CC -> BattleScript_FreePartyLevelUpIcon
- sub_0207727C  -> Pokemon_LevelUpMove
- ov16_022664C4 -> BattleIO_ForgetMove
- sub_0200DA58  -> SysTask_Done

Structs:
- UnkStruct_02002F38 -> PaletteSys
- UnkStruct_02018340 -> BGL
- UnkStruct_0205AA50 -> Window
- UnkStruct_ov16_02248E74 -> PokemonStats
2023-10-13 10:03:01 -07:00
lhearachel
39c137a334 Label struct + member fields for BattleScriptTaskData 2023-10-13 09:57:38 -07:00
wildfire
10275fd56e Document RNG Functions 2023-09-13 23:23:32 +01:00
lhearachel
bc6823087d Rename files: unk_0200AC5C -> message 2023-09-09 10:38:29 -07:00
lhearachel
8090149c08 Label function names in unk_0200AC5C.h + make structs transparent 2023-09-09 10:30:40 -07:00