/* ヤキトリマークの表示 */ void GameTableScreen::TrayReconst::ShowYakitori(const GameTable* gameStat) { for (PlayerID i = 0; i < Players; ++i) { if (!gameStat->Player[i].YakitoriFlag) continue; switch (playerRelative(i, gameStat->PlayerID)) { case sSelf: { RECT rect = { (PlateWidthH + PlatePadding * 2) * (PlateID_Yakitori ) + PlatePadding, (PlateHeightH + PlatePadding * 2) * (0 ) + PlatePadding, (PlateWidthH + PlatePadding * 2) * (PlateID_Yakitori + 1) - PlatePadding, (PlateHeightH + PlatePadding * 2) * (0 + 1) - PlatePadding, }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, YakitoriPosH, YakitoriPosV, PlateWidthH, PlateHeightH, 0xffffffff, &rect, PlateWidthH / 2, PlateHeightH / 2); } break; case sOpposite: { RECT rect = { (PlateWidthH + PlatePadding * 2) * (PlateID_Yakitori ) + PlatePadding, (PlateHeightH + PlatePadding * 2) * (1 ) + PlatePadding, (PlateWidthH + PlatePadding * 2) * (PlateID_Yakitori + 1) - PlatePadding, (PlateHeightH + PlatePadding * 2) * (1 + 1) - PlatePadding, }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, TableSize - YakitoriPosH, TableSize - YakitoriPosV, PlateWidthH, PlateHeightH, 0xffffffff, &rect, PlateWidthH / 2, PlateHeightH / 2); } break; case sRight: { RECT rect = { (PlateWidthV + PlatePadding * 2) * (PlateID_Yakitori ) + PlatePadding, (PlateHeightV + PlatePadding * 2) * (0 ) + PlatePadding + (PlateHeightH + PlatePadding * 2) * 2, (PlateWidthV + PlatePadding * 2) * (PlateID_Yakitori + 1) - PlatePadding, (PlateHeightV + PlatePadding * 2) * (0 + 1) - PlatePadding + (PlateHeightH + PlatePadding * 2) * 2, }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, YakitoriPosV, TableSize - YakitoriPosH, PlateWidthV, PlateHeightV, 0xffffffff, &rect, PlateWidthV / 2, PlateHeightV / 2); } break; case sLeft: { RECT rect = { (PlateWidthV + PlatePadding * 2) * (PlateID_Yakitori ) + PlatePadding, (PlateHeightV + PlatePadding * 2) * (1 ) + PlatePadding + (PlateHeightH + PlatePadding * 2) * 2, (PlateWidthV + PlatePadding * 2) * (PlateID_Yakitori + 1) - PlatePadding, (PlateHeightV + PlatePadding * 2) * (1 + 1) - PlatePadding + (PlateHeightH + PlatePadding * 2) * 2, }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, TableSize - YakitoriPosV, YakitoriPosH, PlateWidthV, PlateHeightV, 0xffffffff, &rect, PlateWidthV / 2, PlateHeightV / 2); } break; } } }
/* 起家マークの表示 */ void GameTableScreen::TrayReconst::ShowChiicha(const GameTable* gameStat) { switch (playerRelative(0, gameStat->PlayerID)) { case sSelf: { RECT rect = { static_cast<int32_t>((PlateWidthH + PlatePadding * 2) * (gameStat->GameRound / Players ) + PlatePadding), static_cast<int32_t>((PlateHeightH + PlatePadding * 2) * (0 ) + PlatePadding), static_cast<int32_t>((PlateWidthH + PlatePadding * 2) * (gameStat->GameRound / Players + 1) - PlatePadding), static_cast<int32_t>((PlateHeightH + PlatePadding * 2) * (0 + 1) - PlatePadding), }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, PlatePosH, PlatePosV, PlateWidthH, PlateHeightH, 0xffffffff, &rect, PlateWidthH / 2, PlateHeightH / 2); } break; case sOpposite: { RECT rect = { static_cast<int32_t>((PlateWidthH + PlatePadding * 2) * (gameStat->GameRound / Players ) + PlatePadding), static_cast<int32_t>((PlateHeightH + PlatePadding * 2) * (1 ) + PlatePadding), static_cast<int32_t>((PlateWidthH + PlatePadding * 2) * (gameStat->GameRound / Players + 1) - PlatePadding), static_cast<int32_t>((PlateHeightH + PlatePadding * 2) * (1 + 1) - PlatePadding), }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, TableSize - PlatePosH, TableSize - PlatePosV, PlateWidthH, PlateHeightH, 0xffffffff, &rect, PlateWidthH / 2, PlateHeightH / 2); } break; case sRight: { RECT rect = { static_cast<int32_t>((PlateWidthV + PlatePadding * 2) * (gameStat->GameRound / Players ) + PlatePadding), static_cast<int32_t>((PlateHeightV + PlatePadding * 2) * (0 ) + PlatePadding + (PlateHeightH + PlatePadding * 2) * 2), static_cast<int32_t>((PlateWidthV + PlatePadding * 2) * (gameStat->GameRound / Players + 1) - PlatePadding), static_cast<int32_t>((PlateHeightV + PlatePadding * 2) * (0 + 1) - PlatePadding + (PlateHeightH + PlatePadding * 2) * 2), }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, PlatePosV, TableSize - PlatePosH, PlateWidthV, PlateHeightV, 0xffffffff, &rect, PlateWidthV / 2, PlateHeightV / 2); } break; case sLeft: { RECT rect = { static_cast<int32_t>((PlateWidthV + PlatePadding * 2) * (gameStat->GameRound / Players ) + PlatePadding), static_cast<int32_t>((PlateHeightV + PlatePadding * 2) * (1 ) + PlatePadding + (PlateHeightH + PlatePadding * 2) * 2), static_cast<int32_t>((PlateWidthV + PlatePadding * 2) * (gameStat->GameRound / Players + 1) - PlatePadding), static_cast<int32_t>((PlateHeightV + PlatePadding * 2) * (1 + 1) - PlatePadding + (PlateHeightH + PlatePadding * 2) * 2), }; SpriteRenderer::instantiate(caller->caller->getDevice())->ShowSprite(tChiicha, TableSize - PlatePosV, PlatePosH, PlateWidthV, PlateHeightV, 0xffffffff, &rect, PlateWidthV / 2, PlateHeightV / 2); } break; } }