~ubuntu-branches/ubuntu/utopic/rlvm/utopic-proposed

« back to all changes in this revision

Viewing changes to src/libReallive/scenario.h

  • Committer: Bazaar Package Importer
  • Author(s): Ying-Chun Liu (PaulLiu), Ying-Chun Liu (PaulLiu), Elliot Glaysher
  • Date: 2011-05-19 00:28:44 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110519002844-qszwmj7oiixww0eg
Tags: 0.12-1
[ Ying-Chun Liu (PaulLiu) <paulliu@debian.org> ]
* New upstream release

[ Elliot Glaysher <glaysher@umich.edu> ]
* New GTK+ interface with desktop integration and UI refinements
* Partial Japanese localizations
* Fix graphics corruption in in-game dialogs when a dialog is brought
  up, and then fullscreen mode activated
* Smooth the output of text in rlBabel using games
* Don't play voice samples while fast forwarding

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
  int scenarioNum;
52
52
public:
53
53
  Scenario(const char* data, const size_t length, int scenarioNum,
 
54
           const std::string& regname,
54
55
           const Compression::XorKey* second_level_xor_key);
55
56
  Scenario(const FilePos& fp, int scenarioNum,
 
57
           const std::string& regname,
56
58
           const Compression::XorKey* second_level_xor_key);
57
59
 
58
60
  // Get the scenario number
100
102
 
101
103
inline
102
104
Scenario::Scenario(const char* data, const size_t length, int sn,
 
105
                   const std::string& regname,
103
106
                   const Compression::XorKey* second_level_xor_key)
104
107
  : header(data, length),
105
 
    script(header, data, length,
106
 
           header.use_xor_2 ? second_level_xor_key : NULL),
 
108
    script(header, data, length, regname,
 
109
           header.use_xor_2, second_level_xor_key),
107
110
    scenarioNum(sn)
108
111
{
109
112
}
110
113
 
111
114
inline
112
115
Scenario::Scenario(const FilePos& fp, int sn,
 
116
                   const std::string& regname,
113
117
                   const Compression::XorKey* second_level_xor_key)
114
118
  : header(fp.data, fp.length),
115
 
    script(header, fp.data, fp.length,
116
 
           header.use_xor_2 ? second_level_xor_key : NULL),
 
119
    script(header, fp.data, fp.length, regname,
 
120
           header.use_xor_2, second_level_xor_key),
117
121
    scenarioNum(sn)
118
122
{
119
123
}