SSBM Decomp
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/gm_1601.h>
5#include <melee/it/it_26B1.h>
6#include <melee/pl/player.h>
8#include <melee/pl/types.h>
9
10static inline bool pl_CheckIfSameTeam(int slotA, int slotB)
11{
12 int teamA;
13 int teamB;
14
15 if (gm_8016B168()) {
16 teamA = Player_GetTeam(slotA);
17 teamB = Player_GetTeam(slotB);
18 if (teamB == teamA) {
19 return true;
20 }
21 }
22 return false;
23}
24
25static inline bool pl_Verify_gm_8016AEDC(void)
26{
27 if ((gm_8016AEDC() != 0U) && (gm_8016AEDC() != -2U)) {
28 return true;
29 } else {
30 return false;
31 }
32}
33
34#endif
u32 gm_8016AEDC(void)
Definition gm_1601.c:664
bool gm_8016B168(void)
static bool pl_Verify_gm_8016AEDC(void)
Definition inlines.h:25
static bool pl_CheckIfSameTeam(int slotA, int slotB)
Definition inlines.h:10
int Player_GetTeam(int slot)
Definition player.c:758