Split game_0b0420.c to mpstats.c and game_0b0fd0.c and give mpstats functions consistent names

This commit is contained in:
Ryan Dwyer
2021-01-23 16:47:02 +10:00
parent 7e3f04114f
commit 2af20b8596
34 changed files with 464 additions and 427 deletions
+7 -7
View File
@@ -2846,13 +2846,13 @@
#define SCREENSPLIT_HORIZONTAL 0
#define SCREENSPLIT_VERTICAL 1
#define SHOTCOUNT_TOTAL 0
#define SHOTCOUNT_HEAD 1
#define SHOTCOUNT_BODY 2
#define SHOTCOUNT_LIMB 3
#define SHOTCOUNT_GUN 4
#define SHOTCOUNT_5 5 // hat?
#define SHOTCOUNT_OBJECT 6
#define SHOTREGION_TOTAL 0
#define SHOTREGION_HEAD 1
#define SHOTREGION_BODY 2
#define SHOTREGION_LIMB 3
#define SHOTREGION_GUN 4
#define SHOTREGION_5 5 // hat?
#define SHOTREGION_OBJECT 6
#define SIGHT_DEFAULT 0
#define SIGHT_CLASSIC 1
@@ -1,22 +1,8 @@
#ifndef IN_GAME_GAME_0B0420_H
#define IN_GAME_GAME_0B0420_H
#ifndef IN_GAME_GAME_0B0FD0_H
#define IN_GAME_GAME_0B0FD0_H
#include <ultra64.h>
#include "types.h"
void func0f0b0420(struct hand *hand, s32 index);
void func0f0b046c(struct hand *hand, s32 index);
void func0f0b0520(void);
s32 currentPlayerGetShotCount(u32 type);
void incrementKillCount(void);
void incrementKnockoutCount(void);
void decrementKnockoutCount(void);
u8 getKnockoutCount(void);
u32 getKillCount(void);
void mpstatsRecordKill(void);
s32 currentPlayerGetNumKills(void);
void currentPlayerIncrementDeathCount(void);
void currentPlayerRecordSuicide(void);
void mpstatsRecordDeath(s32 aplayernum, s32 vplayernum);
struct weapon *weaponFindById(s32 itemid);
struct weaponfunc *weaponGetFunctionById(u32 weaponnum, u32 which);
struct weaponfunc *handGetWeaponFunction2(struct hand *hand);
+21
View File
@@ -0,0 +1,21 @@
#ifndef IN_GAME_MPSTATS_H
#define IN_GAME_MPSTATS_H
#include <ultra64.h>
#include "types.h"
void mpstatsIncrementPlayerShotCount(struct hand *hand, s32 region);
void mpstatsIncrementPlayerShotCount2(struct hand *hand, s32 region);
void mpstats0f0b0520(void);
s32 mpstatsGetPlayerShotCountByRegion(u32 type);
void mpstatsIncrementTotalKillCount(void);
void mpstatsIncrementTotalKnockoutCount(void);
void mpstatsDecrementTotalKnockoutCount(void);
u8 mpstatsGetTotalKnockoutCount(void);
u32 mpstatsGetTotalKillCount(void);
void mpstatsRecordPlayerKill(void);
s32 mpstatsGetPlayerKillCount(void);
void mpstatsRecordPlayerDeath(void);
void mpstatsRecordPlayerSuicide(void);
void mpstatsRecordDeath(s32 aplayernum, s32 vplayernum);
#endif