mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-02 20:08:10 +03:00
AGS: Refactor Box struct
This commit is contained in:
+20
-1
@@ -19,7 +19,7 @@ namespace {
|
||||
|
||||
class NACT_Sys2 : public NACT {
|
||||
public:
|
||||
NACT_Sys2(const Config& config, const GameId& game_id) : NACT(config, game_id) {}
|
||||
NACT_Sys2(const Config& config, const GameId& game_id);
|
||||
|
||||
protected:
|
||||
void cmd_branch() override;
|
||||
@@ -82,6 +82,25 @@ private:
|
||||
#define WAIT(tm) do { wait_impl(tm); if (terminate) return; } while(0)
|
||||
#define WAIT_KEYQUIT(tm) do { wait_keyquit_impl(tm); if (terminate) return; } while(0)
|
||||
|
||||
NACT_Sys2::NACT_Sys2(const Config& config, const GameId& game_id)
|
||||
: NACT(config, game_id)
|
||||
{
|
||||
if (game_id.is(GameId::SDPS_TONO) || game_id.is(GameId::SDPS_KAIZOKU)) {
|
||||
ags->set_box(0, 0, 40, 8, 598, 271);
|
||||
} else if (game_id.is(GameId::PROG_FD)) {
|
||||
ags->set_box(0, 0, 64, 13, 407, 289);
|
||||
ags->set_box(1, 0, 24, 298, 111, 390);
|
||||
ags->set_box(2, 0, 0, 0, 639, 307);
|
||||
ags->set_box(3, 0, 0, 0, 319, 399);
|
||||
ags->set_box(4, 0, (16*8), 310, ((77*8)-1), 390);
|
||||
ags->set_box(5, 0, (4*8), 310, ((76*8)-1), 390);
|
||||
ags->set_box(6, 0, (2*8), 317, ((56*8)-1), 389);
|
||||
ags->set_box(7, 15, 64, 13, 407, 289);
|
||||
ags->set_box(8, 0, 0, 0, 319, 399);
|
||||
ags->set_box(9, 0, 320, 0, 639, 40);
|
||||
}
|
||||
}
|
||||
|
||||
void NACT_Sys2::cmd_branch()
|
||||
{
|
||||
int condition = cali();
|
||||
|
||||
Reference in New Issue
Block a user