mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-08 14:58:13 +03:00
Refactoring: Move declaration of NACT_Sys* classes to cpp files
This commit is contained in:
@@ -21,6 +21,52 @@
|
||||
#include "encoding.h"
|
||||
#include "texthook.h"
|
||||
|
||||
namespace {
|
||||
|
||||
class NACT_Sys1 final : public NACT {
|
||||
public:
|
||||
NACT_Sys1(const Config& config, const GameId& game_id);
|
||||
|
||||
protected:
|
||||
void cmd_branch() override;
|
||||
void cmd_open_verb() override;
|
||||
void cmd_b() override;
|
||||
void cmd_d() override;
|
||||
void cmd_e() override;
|
||||
void cmd_g() override;
|
||||
void cmd_h() override;
|
||||
void cmd_i() override;
|
||||
void cmd_j() override;
|
||||
void cmd_k() override;
|
||||
void cmd_l() override;
|
||||
void cmd_m() override;
|
||||
void cmd_n() override;
|
||||
void cmd_o() override;
|
||||
void cmd_p() override;
|
||||
void cmd_q() override;
|
||||
void cmd_t() override;
|
||||
void cmd_u() override;
|
||||
void cmd_v() override;
|
||||
void cmd_w() override;
|
||||
void cmd_y() override;
|
||||
void cmd_z() override;
|
||||
void opening() override;
|
||||
uint16 cali() override;
|
||||
|
||||
private:
|
||||
void cmd_open_obj(int verb);
|
||||
|
||||
// Intruder Zコマンド
|
||||
int paint_x;
|
||||
int paint_y;
|
||||
int map_page;
|
||||
|
||||
// GAKUEN
|
||||
bool enable_graphics = true;
|
||||
// Rance 2
|
||||
int last_paint_x = -1, last_paint_y = -1;
|
||||
};
|
||||
|
||||
#define WAIT(tm) \
|
||||
{ \
|
||||
Uint32 dwTime = SDL_GetTicks() + (tm); \
|
||||
@@ -999,3 +1045,11 @@ uint16 NACT_Sys1::cali()
|
||||
}
|
||||
return (uint16)(cali[1] & 0xffff);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
NACT* NACT::create_system1(const Config& config, const GameId& game_id)
|
||||
{
|
||||
return new NACT_Sys1(config, game_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user