Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
partner.c File Reference
#include "engine/game.h"
Include dependency graph for partner.c:

Go to the source code of this file.

Functions

s32 findPartnerEntry (s32 partner, s32 id)
 The index of Digimon id among a partner's entries, or -1.
 
s32 getPartnerSlots (s32 partner, s16 *out)
 Copies the ids of the Digimon a partner takes to battle; returns how many there are.
 
void setPartnerSlots (s32 partner, s16 *ids)
 Picks the Digimon a partner takes to battle (-1 for ids it does not have)
 
s32 listPartnerEntries (s32 partner, u16 *out)
 Copies the ids of a partner's Digimon, zero-filled; returns how many there are.
 
s32 addPartnerEntry (s32 partner, s32 id)
 Gives a partner Digimon id at level 1; 0 if it has it already or has no room.
 
s32 getPartnerEntry (s32 partner, s32 id, PartnerEntry *out)
 Copies a partner's Digimon id; returns its index, or -1.
 
s32 setPartnerEntry (s32 partner, s32 id, PartnerEntry *in)
 Overwrites a partner's Digimon id; returns its index, or -1.
 
PartnerStats * getPartnerStats (s32 partner)
 A partner's name, stats and Digimon.
 

Function Documentation

◆ findPartnerEntry()

s32 findPartnerEntry ( s32  partner,
s32  id 
)

The index of Digimon id among a partner's entries, or -1.

Definition at line 4 of file partner.c.

Referenced by addPartnerEntry(), getPartnerEntry(), getPartnerSlots(), setPartnerEntry(), and setPartnerSlots().

Here is the caller graph for this function:

◆ getPartnerSlots()

s32 getPartnerSlots ( s32  partner,
s16 *  out 
)

Copies the ids of the Digimon a partner takes to battle; returns how many there are.

Definition at line 19 of file partner.c.

Here is the call graph for this function:

◆ setPartnerSlots()

void setPartnerSlots ( s32  partner,
s16 *  ids 
)

Picks the Digimon a partner takes to battle (-1 for ids it does not have)

Definition at line 40 of file partner.c.

Here is the call graph for this function:

◆ listPartnerEntries()

s32 listPartnerEntries ( s32  partner,
u16 *  out 
)

Copies the ids of a partner's Digimon, zero-filled; returns how many there are.

Definition at line 55 of file partner.c.

◆ addPartnerEntry()

s32 addPartnerEntry ( s32  partner,
s32  id 
)

Gives a partner Digimon id at level 1; 0 if it has it already or has no room.

Definition at line 74 of file partner.c.

Here is the call graph for this function:

◆ getPartnerEntry()

s32 getPartnerEntry ( s32  partner,
s32  id,
PartnerEntry *  out 
)

Copies a partner's Digimon id; returns its index, or -1.

Definition at line 97 of file partner.c.

Here is the call graph for this function:

◆ setPartnerEntry()

s32 setPartnerEntry ( s32  partner,
s32  id,
PartnerEntry *  in 
)

Overwrites a partner's Digimon id; returns its index, or -1.

Definition at line 107 of file partner.c.

Here is the call graph for this function:

◆ getPartnerStats()

PartnerStats * getPartnerStats ( s32  partner)

A partner's name, stats and Digimon.

Definition at line 117 of file partner.c.