SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
inlines.h
Go to the documentation of this file.
1
#ifndef MELEE_PL_INLINES_H
2
#define MELEE_PL_INLINES_H
3
4
#include <
melee/gm/gmvs.h
>
5
#include <
melee/pl/player.h
>
6
7
static
inline
bool
pl_CheckIfSameTeam
(
int
slotA,
int
slotB)
8
{
9
int
teamA;
10
int
teamB;
11
12
if
(
gm_8016B168
()) {
13
teamA =
Player_GetTeam
(slotA);
14
teamB =
Player_GetTeam
(slotB);
15
if
(teamB == teamA) {
16
return
true
;
17
}
18
}
19
return
false
;
20
}
21
22
static
inline
bool
pl_Verify_gm_8016AEDC
(
void
)
23
{
24
if
((
gm_GetFrameCount
() != 0U) && (
gm_GetFrameCount
() != -2U)) {
25
return
true
;
26
}
else
{
27
return
false
;
28
}
29
}
30
31
#endif
gm_8016B168
bool gm_8016B168(void)
Definition
gmvs.c:216
gm_GetFrameCount
u32 gm_GetFrameCount(void)
Definition
gmvs.c:108
gmvs.h
pl_Verify_gm_8016AEDC
static bool pl_Verify_gm_8016AEDC(void)
Definition
inlines.h:22
pl_CheckIfSameTeam
static bool pl_CheckIfSameTeam(int slotA, int slotB)
Definition
inlines.h:7
Player_GetTeam
int Player_GetTeam(int slot)
Definition
player.c:753
player.h
src
melee
pl
inlines.h
Generated by
1.17.0