Revision: 273
http://dunelegacy.svn.sourceforge.net/dunelegacy/?rev=273&view=rev
Author: dvalin
Date: 2008-05-04 12:25:27 -0700 (Sun, 04 May 2008)
Log Message:
-----------
move...
Added Paths:
-----------
branches/dunks/include/pakfile/sound/IntegratedLibSampleRate/
Removed Paths:
-------------
branches/dunks/include/pakfile/IntegratedLibSampleRate/
branches/dunks/include/pakfile/StringFile.h
branches/dunks/include/pakfile/Vocfile.h
Deleted: branches/dunks/include/pakfile/StringFile.h
===================================================================
--- branches/dunks/include/pakfile/StringFile.h 2008-05-04 19:24:47 UTC (rev 272)
+++ branches/dunks/include/pakfile/StringFile.h 2008-05-04 19:25:27 UTC (rev 273)
@@ -1,50 +0,0 @@
-#ifndef STRINGFILE_H_INCLUDED
-#define STRINGFILE_H_INCLUDED
-
-#include <string>
-
-
-#define MISSION_DESCRIPTION 0
-#define MISSION_WIN 1
-#define MISSION_LOSE 2
-#define MISSION_ADVICE 3
-
-
-/// A class for loading a encoded textfiles.
-/**
- This class can read encoded textfiles and return their content in decoded ANSI Code.
-*/
-class StringFile
-{
-public:
- StringFile(std::string stringFileName);
- ~StringFile();
-
- /// This method returns the briefing/debriefing text.
- /**
- This method returns the briefing/debriefing text for the mission specified by the parameter mission. The second
- parameter specifies the kind of briefing/debriefing.
- \param mission the mission number (0=House description; 1,2,...,9 = mission description).
- \param texttype one of MISSION_DESCRIPTION, MISSION_WIN, MISSION_LOSE, MISSION_ADVICE
- \return the text for this mission and of this type.
- */
- std::string getString(unsigned int mission, unsigned int texttype) {
- int index = mission*4+texttype;
-
- if(index < numStrings) {
- return stringArray[index];
- } else {
- return "StringFile::getString(): mission number or text type is invalid!\n";
- }
- }
- std::string getString(int i){
- return stringArray[i];
- }
-
-private:
- std::string decodeString(std::string text);
- std::string *stringArray;
- int numStrings;
-};
-
-#endif // STRINGFILE_H_INCLUDED
Deleted: branches/dunks/include/pakfile/Vocfile.h
===================================================================
--- branches/dunks/include/pakfile/Vocfile.h 2008-05-04 19:24:47 UTC (rev 272)
+++ branches/dunks/include/pakfile/Vocfile.h 2008-05-04 19:25:27 UTC (rev 273)
@@ -1,19 +0,0 @@
-#ifndef VOCFILE_H_INCLUDED
-#define VOCFILE_H_INCLUDED
-
-#include <SDL.h>
-#include <SDL_rwops.h>
-#include <SDL_mixer.h>
-
-/**
- Try to load a VOC from the RWop. Returns a pointer to Mix_Chunk.
- It is the callers responsibility to deallocate that data again later on
- with Mix_FreeChunk()!
- \param rwop The source SDL_RWops as a pointer. The sample is loaded from this VOC-File.
- \param freesrc A non-zero value mean it will automatically close/free the src for you.
- \return a pointer to the sample as a Mix_Chunk. NULL is returned on errors.
- */
-extern Mix_Chunk* LoadVOC_RW(SDL_RWops* rwop, int freesrc);
-
-#endif // VOCFILE_H_INCLUDED
-
Copied: branches/dunks/include/pakfile/sound/IntegratedLibSampleRate (from rev 272, branches/dunks/include/pakfile/IntegratedLibSampleRate)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|