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/gmvs.h>
5#include <melee/pl/player.h>
6
7static 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
22static 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
bool gm_8016B168(void)
Definition gmvs.c:216
u32 gm_GetFrameCount(void)
Definition gmvs.c:108
static bool pl_Verify_gm_8016AEDC(void)
Definition inlines.h:22
static bool pl_CheckIfSameTeam(int slotA, int slotB)
Definition inlines.h:7
int Player_GetTeam(int slot)
Definition player.c:753