mirror of https://github.com/nmlgc/ReC98.git
[Maintenance] [th03/th04/th05] Rename `playchars_t` to `playchar_t`
Part of P0172, funded by [Anonymous] and Blue Bolt.
This commit is contained in:
parent
5fac2006ff
commit
4d8392ce9c
|
@ -2,7 +2,7 @@ extern "C" {
|
|||
#include "platform.h"
|
||||
#include "master.hpp"
|
||||
#include "th03/common.h"
|
||||
#include "th03/chars.hpp"
|
||||
#include "th03/playchar.hpp"
|
||||
#include "th03/score.h"
|
||||
#include "th03/resident.hpp"
|
||||
#include "th03/formats/cfg.hpp"
|
||||
|
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
#include "platform.h"
|
||||
#include "master.hpp"
|
||||
#include "th03/common.h"
|
||||
#include "th03/chars.hpp"
|
||||
#include "th03/playchar.hpp"
|
||||
#include "th03/score.h"
|
||||
#include "th03/resident.hpp"
|
||||
#include "th03/formats/cfg.hpp"
|
||||
|
|
|
@ -9,9 +9,9 @@ typedef enum {
|
|||
PLAYCHAR_CHIYURI = 7,
|
||||
PLAYCHAR_YUMEMI = 8,
|
||||
PLAYCHAR_COUNT = 9,
|
||||
} playchars_t;
|
||||
} playchar_t;
|
||||
|
||||
// Encodes a playchars_t together with its alternate palette flag.
|
||||
// Encodes a playchar_t together with its alternate palette flag.
|
||||
struct playchar_paletted_t {
|
||||
unsigned char v;
|
||||
|
||||
|
@ -19,8 +19,8 @@ struct playchar_paletted_t {
|
|||
return (v - 1);
|
||||
}
|
||||
|
||||
playchars_t char_id() const {
|
||||
return static_cast<playchars_t>(filename_id() / 2);
|
||||
playchar_t char_id() const {
|
||||
return static_cast<playchar_t>(filename_id() / 2);
|
||||
}
|
||||
};
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#include "th02/snd/snd.h"
|
||||
#include "th03/common.h"
|
||||
#include "th03/score.h"
|
||||
#include "th03/chars.hpp"
|
||||
#include "th03/playchar.hpp"
|
||||
#include "th03/resident.hpp"
|
||||
#include "th03/formats/cfg.hpp"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
#include "th02/hardware/frmdelay.h"
|
||||
#include "th03/formats/pi.hpp"
|
||||
#include "th04/common.h"
|
||||
#include "th04/chars.h"
|
||||
#include "th04/playchar.h"
|
||||
#include "th04/formats/scoredat.h"
|
||||
#include "th04/resident.hpp"
|
||||
#include "th04/hardware/input.h"
|
||||
|
@ -205,7 +205,7 @@ void near raise_bg_allocate_and_snap(void)
|
|||
}
|
||||
}
|
||||
|
||||
void near pascal raise_bg_put(playchars_t playchar_lowered)
|
||||
void near pascal raise_bg_put(playchar_t playchar_lowered)
|
||||
{
|
||||
vram_byte_amount_t x;
|
||||
pixel_t y;
|
||||
|
@ -246,7 +246,7 @@ void near raise_bg_free(void)
|
|||
|
||||
#include "th04/op/darken.cpp"
|
||||
|
||||
void near pascal pic_darken(playchars_t playchar)
|
||||
void near pascal pic_darken(playchar_t playchar)
|
||||
{
|
||||
vram_offset_t vo;
|
||||
vram_byte_amount_t x;
|
||||
|
@ -315,7 +315,7 @@ void near pascal playchar_title_box_put(int playchar)
|
|||
}
|
||||
|
||||
inline void pic_put_for(
|
||||
playchars_t playchar_sel,
|
||||
playchar_t playchar_sel,
|
||||
screen_x_t sel_left,
|
||||
vram_y_t sel_top,
|
||||
screen_x_t other_left,
|
||||
|
|
|
@ -13,7 +13,7 @@ extern "C" {
|
|||
#include "th04/sprites/main_cdg.h"
|
||||
}
|
||||
#include "th04/shiftjis/fns.hpp"
|
||||
#include "th04/chars.h"
|
||||
#include "th04/playchar.h"
|
||||
#include "th04/main/ems.hpp"
|
||||
#include "th04/main/dialog/dialog.hpp"
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@ extern "C" {
|
|||
}
|
||||
#if (GAME == 5)
|
||||
#include "th05/resident.hpp"
|
||||
#include "th05/chars.h"
|
||||
#include "th05/playchar.h"
|
||||
#include "th05/shiftjis/fns.hpp"
|
||||
#else
|
||||
#include "th04/resident.hpp"
|
||||
#include "th04/chars.h"
|
||||
#include "th04/playchar.h"
|
||||
#include "th04/shiftjis/fns.hpp"
|
||||
#endif
|
||||
#include "th04/main/ems.hpp"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "th04/main/item/item.hpp"
|
||||
|
||||
#if (GAME == 4)
|
||||
#include "th04/chars.h"
|
||||
#include "th04/playchar.h"
|
||||
#endif
|
||||
|
||||
// See tile.hpp for the reason this declaration is necessary
|
||||
|
|
|
@ -12,6 +12,6 @@ struct bomb_star_t {
|
|||
|
||||
extern bomb_star_t bomb_stars[BOMB_STAR_COUNT];
|
||||
|
||||
void pascal near bomb_stars_update_and_render_for(playchars_t playchar)
|
||||
void pascal near bomb_stars_update_and_render_for(playchar_t playchar)
|
||||
;
|
||||
// --------------
|
||||
|
|
|
@ -2,7 +2,7 @@ typedef enum {
|
|||
PLAYCHAR_REIMU = 0,
|
||||
PLAYCHAR_MARISA = 1,
|
||||
PLAYCHAR_COUNT = 2
|
||||
} playchars_t;
|
||||
} playchar_t;
|
||||
|
||||
typedef enum {
|
||||
SHOTTYPE_A = 0,
|
||||
|
@ -11,8 +11,8 @@ typedef enum {
|
|||
} shottype_t;
|
||||
|
||||
// Used way too often...
|
||||
inline playchars_t playchar_other(playchars_t playchar) {
|
||||
return static_cast<playchars_t>(PLAYCHAR_MARISA - playchar);
|
||||
inline playchar_t playchar_other(playchar_t playchar) {
|
||||
return static_cast<playchar_t>(PLAYCHAR_MARISA - playchar);
|
||||
}
|
||||
|
||||
extern playchars_t playchar;
|
||||
extern playchar_t playchar;
|
|
@ -17,7 +17,7 @@ extern "C" {
|
|||
#include "th04/hardware/bgimage.hpp"
|
||||
#include "th04/score.h"
|
||||
#include "th04/common.h"
|
||||
#include "th05/chars.h"
|
||||
#include "th05/playchar.h"
|
||||
#include "th05/resident.hpp"
|
||||
#include "th05/op/op.h"
|
||||
#include "th05/sprites/op_cdg.h"
|
||||
|
|
|
@ -13,7 +13,7 @@ extern "C" {
|
|||
#include "th04/main/stage/stage.hpp"
|
||||
#include "th04/sprites/main_cdg.h"
|
||||
#include "th04/main/ems.hpp"
|
||||
#include "th05/chars.h"
|
||||
#include "th05/playchar.h"
|
||||
#include "th05/formats/tx2.hpp"
|
||||
#include "th05/shiftjis/fns.hpp"
|
||||
#include "th05/main/dialog/dialog.hpp"
|
||||
|
|
|
@ -15,7 +15,7 @@ extern "C" {
|
|||
#include "th04/common.h"
|
||||
#include "th04/score.h"
|
||||
#include "th04/end/end.h"
|
||||
#include "th05/chars.h"
|
||||
#include "th05/playchar.h"
|
||||
#include "th05/op/op.h"
|
||||
#include "th05/snd/snd.h"
|
||||
#include "th05/resident.hpp"
|
||||
|
|
|
@ -11,7 +11,7 @@ extern "C" {
|
|||
#include "th01/rank.h"
|
||||
#include "th04/common.h"
|
||||
#include "th04/formats/scoredat.h"
|
||||
#include "th05/chars.h"
|
||||
#include "th05/playchar.h"
|
||||
#include "th05/resident.hpp"
|
||||
#include "th05/op/op.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ typedef enum {
|
|||
PLAYCHAR_YUUKA = 3,
|
||||
PLAYCHAR_COUNT = 4,
|
||||
|
||||
_playchars_t_FORCE_UINT8 = 0xFF
|
||||
} playchars_t;
|
||||
_playchar_t_FORCE_UINT8 = 0xFF
|
||||
} playchar_t;
|
||||
|
||||
extern playchars_t playchar;
|
||||
extern playchar_t playchar;
|
Loading…
Reference in New Issue