view CShow.h @ 2451:0eb0826e18b3

Слияние
author Ritor1
date Fri, 25 Jul 2014 14:19:14 +0600
parents 90349b8048a5
children
line wrap: on
line source

#pragma once
#include "MediaPlayer.h"
#include "ErrorHandling.h"


/*  302 */
enum MovieType
{
  MOVIE_Invalid = 0x0,
  MOVIE_3DOLogo = 0x1,
  MOVIE_NWCLogo = 0x2,
  MOVIE_JVC = 0x3,
  MOVIE_Emerald = 0x4,
  MOVIE_Intro = 0x5,
  MOVIE_Death = 0x6,
  MOVIE_Outro = 0x7,
};

inline void PlayFullscreenMovie(MovieType movie_type, bool bShowMouseAfterPlayback = false)
{
  extern unsigned int bNoVideo;
  if (bNoVideo) return;

  switch (movie_type)
  {
    case MOVIE_3DOLogo: pMediaPlayer->GlobalMovieLoop("3dologo", 0);        break;
	case MOVIE_NWCLogo: pMediaPlayer->GlobalMovieLoop("new world logo", 0); break;
	case MOVIE_JVC:     pMediaPlayer->GlobalMovieLoop("jvc", 0);            break;
	case MOVIE_Intro:   pMediaPlayer->GlobalMovieLoop("Intro", 0);          break;
	case MOVIE_Emerald: pMediaPlayer->GlobalMovieLoop("Intro Post", 0);     break;
	case MOVIE_Death:   pMediaPlayer->GlobalMovieLoop("losegame", 2);       break;
	case MOVIE_Outro:   pMediaPlayer->GlobalMovieLoop("end_seq1", 20);      break;

    default:
      Error("Invalid movie requested: %u", movie_type);
      break;
  }
}

/*
#pragma pack(push, 1)
class CShow
{
public:
  //----- (004A9507) --------------------------------------------------------
  CShow() {}

  //----- (004A9510) --------------------------------------------------------
  virtual ~CShow() {}

  
  //----- (004A952D) --------------------------------------------------------
  void PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback);


  void ( ***vdestructor_ptr)(CShow *, bool);
};
#pragma pack(pop)*/