mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
Removing lots of superfluous semicola (see mail by David Weinehall on scummvm-devel)
svn-id: r26594
This commit is contained in:
parent
8306e0ebe5
commit
00b9bc7b36
@ -117,7 +117,7 @@ public:
|
||||
void disableCursorPalette(bool disable) {
|
||||
_cursorPaletteDisabled = disable;
|
||||
blitCursor();
|
||||
};
|
||||
}
|
||||
|
||||
// Shaking is used in SCUMM. Set current shake position.
|
||||
void setShakePos(int shake_pos);
|
||||
|
@ -352,14 +352,14 @@ public:
|
||||
* of the relevant methods simply do nothing.
|
||||
* @see endGFXTransaction
|
||||
*/
|
||||
virtual void beginGFXTransaction() {};
|
||||
virtual void beginGFXTransaction() {}
|
||||
|
||||
|
||||
/**
|
||||
* End (and thereby commit) the current GFX transaction.
|
||||
* @see beginGFXTransaction
|
||||
*/
|
||||
virtual void endGFXTransaction() {};
|
||||
virtual void endGFXTransaction() {}
|
||||
|
||||
|
||||
/**
|
||||
@ -656,7 +656,7 @@ public:
|
||||
* @see setPalette
|
||||
* @see kFeatureCursorHasPalette
|
||||
*/
|
||||
virtual void setCursorPalette(const byte *colors, uint start, uint num) {};
|
||||
virtual void setCursorPalette(const byte *colors, uint start, uint num) {}
|
||||
|
||||
/**
|
||||
* Disable or enable cursor palette.
|
||||
@ -668,7 +668,7 @@ public:
|
||||
* @see setPalette
|
||||
* @see kFeatureCursorHasPalette
|
||||
*/
|
||||
virtual void disableCursorPalette(bool disable) {};
|
||||
virtual void disableCursorPalette(bool disable) {}
|
||||
|
||||
//@}
|
||||
|
||||
|
@ -154,7 +154,7 @@ public:
|
||||
virtual void spriteOperation(int16 operation) = 0;
|
||||
|
||||
Draw(GobEngine *vm);
|
||||
virtual ~Draw() {};
|
||||
virtual ~Draw() {}
|
||||
|
||||
protected:
|
||||
GobEngine *_vm;
|
||||
@ -170,7 +170,7 @@ public:
|
||||
virtual void spriteOperation(int16 operation);
|
||||
|
||||
Draw_v1(GobEngine *vm);
|
||||
virtual ~Draw_v1() {};
|
||||
virtual ~Draw_v1() {}
|
||||
};
|
||||
|
||||
class Draw_v2 : public Draw_v1 {
|
||||
@ -183,7 +183,7 @@ public:
|
||||
virtual void spriteOperation(int16 operation);
|
||||
|
||||
Draw_v2(GobEngine *vm);
|
||||
virtual ~Draw_v2() {};
|
||||
virtual ~Draw_v2() {}
|
||||
};
|
||||
|
||||
class Draw_Bargon: public Draw_v2 {
|
||||
|
@ -248,7 +248,7 @@ public:
|
||||
virtual void prepareStart(void);
|
||||
|
||||
Game_v1(GobEngine *vm);
|
||||
virtual ~Game_v1() {};
|
||||
virtual ~Game_v1() {}
|
||||
|
||||
protected:
|
||||
virtual void pushCollisions(char all);
|
||||
@ -276,7 +276,7 @@ public:
|
||||
virtual void prepareStart(void);
|
||||
|
||||
Game_v2(GobEngine *vm);
|
||||
virtual ~Game_v2() {};
|
||||
virtual ~Game_v2() {}
|
||||
|
||||
protected:
|
||||
struct CollLast {
|
||||
|
@ -271,7 +271,7 @@ public:
|
||||
int16 nextAct, int16 framesCount);
|
||||
|
||||
Goblin_v1(GobEngine *vm);
|
||||
virtual ~Goblin_v1() {};
|
||||
virtual ~Goblin_v1() {}
|
||||
|
||||
protected:
|
||||
virtual bool isMovement(int8 state) { return false; }
|
||||
@ -291,7 +291,7 @@ public:
|
||||
int16 nextAct, int16 framesCount);
|
||||
|
||||
Goblin_v2(GobEngine *vm);
|
||||
virtual ~Goblin_v2() {};
|
||||
virtual ~Goblin_v2() {}
|
||||
|
||||
protected:
|
||||
virtual bool isMovement(int8 state);
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
virtual void initVideo() = 0;
|
||||
|
||||
Init(GobEngine *vm);
|
||||
virtual ~Init() {};
|
||||
virtual ~Init() {}
|
||||
|
||||
protected:
|
||||
Video::PalDesc *_palDesc;
|
||||
@ -50,7 +50,7 @@ public:
|
||||
virtual void initVideo();
|
||||
|
||||
Init_v1(GobEngine *vm);
|
||||
virtual ~Init_v1() {};
|
||||
virtual ~Init_v1() {}
|
||||
};
|
||||
|
||||
class Init_v2 : public Init_v1 {
|
||||
@ -58,7 +58,7 @@ public:
|
||||
virtual void initVideo();
|
||||
|
||||
Init_v2(GobEngine *vm);
|
||||
virtual ~Init_v2() {};
|
||||
virtual ~Init_v2() {}
|
||||
};
|
||||
|
||||
class Init_v3 : public Init_v2 {
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
virtual void animPalette() = 0;
|
||||
|
||||
Inter(GobEngine *vm);
|
||||
virtual ~Inter() {};
|
||||
virtual ~Inter() {}
|
||||
|
||||
protected:
|
||||
struct OpFuncParams {
|
||||
|
@ -293,7 +293,7 @@ protected:
|
||||
class Mult_v1 : public Mult {
|
||||
public:
|
||||
Mult_v1(GobEngine *vm);
|
||||
virtual ~Mult_v1() {};
|
||||
virtual ~Mult_v1() {}
|
||||
|
||||
virtual void loadMult(int16 resId);
|
||||
virtual void freeMultKeys();
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
virtual int16 parseExpr(byte stopToken, byte *resultPtr) = 0;
|
||||
|
||||
Parse(GobEngine *vm);
|
||||
virtual ~Parse() {};
|
||||
virtual ~Parse() {}
|
||||
|
||||
protected:
|
||||
enum PointerType {
|
||||
@ -56,7 +56,7 @@ protected:
|
||||
class Parse_v1 : public Parse {
|
||||
public:
|
||||
Parse_v1(GobEngine *vm);
|
||||
virtual ~Parse_v1() {};
|
||||
virtual ~Parse_v1() {}
|
||||
|
||||
virtual int16 parseVarIndex(void);
|
||||
virtual int16 parseValExpr(byte stopToken = 99);
|
||||
@ -66,7 +66,7 @@ public:
|
||||
class Parse_v2 : public Parse_v1 {
|
||||
public:
|
||||
Parse_v2(GobEngine *vm);
|
||||
virtual ~Parse_v2() {};
|
||||
virtual ~Parse_v2() {}
|
||||
|
||||
virtual int16 parseVarIndex(void);
|
||||
virtual int16 parseValExpr(byte stopToken = 99);
|
||||
|
@ -156,7 +156,7 @@ public:
|
||||
virtual int16 loadAnim(char search);
|
||||
|
||||
Scenery_v1(GobEngine *vm);
|
||||
virtual ~Scenery_v1() {};
|
||||
virtual ~Scenery_v1() {}
|
||||
};
|
||||
|
||||
class Scenery_v2 : public Scenery_v1 {
|
||||
@ -164,7 +164,7 @@ public:
|
||||
virtual int16 loadAnim(char search);
|
||||
|
||||
Scenery_v2(GobEngine *vm);
|
||||
virtual ~Scenery_v2() {};
|
||||
virtual ~Scenery_v2() {}
|
||||
};
|
||||
|
||||
} // End of namespace Gob
|
||||
|
@ -168,7 +168,7 @@ public:
|
||||
int16 x, int16 y, int16 transp, SurfaceDesc *destDesc);
|
||||
|
||||
Video_v1(GobEngine *vm);
|
||||
virtual ~Video_v1() {};
|
||||
virtual ~Video_v1() {}
|
||||
};
|
||||
|
||||
class Video_v2 : public Video_v1 {
|
||||
@ -177,7 +177,7 @@ public:
|
||||
int16 x, int16 y, int16 transp, SurfaceDesc *destDesc);
|
||||
|
||||
Video_v2(GobEngine *vm);
|
||||
virtual ~Video_v2() {};
|
||||
virtual ~Video_v2() {}
|
||||
};
|
||||
|
||||
class VideoDriver {
|
||||
|
@ -185,7 +185,7 @@ private:
|
||||
void lookForCurrentIcon(int16 cx, int16 cy);
|
||||
|
||||
//! returns true if the verb is an action verb
|
||||
bool isVerbAction(Verb v) const { return (v >= VERB_PANEL_COMMAND_FIRST && v <= VERB_PANEL_COMMAND_LAST) || (v == VERB_WALK_TO); };
|
||||
bool isVerbAction(Verb v) const { return (v >= VERB_PANEL_COMMAND_FIRST && v <= VERB_PANEL_COMMAND_LAST) || (v == VERB_WALK_TO); }
|
||||
|
||||
//! return true if the verb is an inventory item
|
||||
bool isVerbInv(Verb v) const { return v >= VERB_INV_FIRST && v <= VERB_INV_LAST; }
|
||||
|
@ -40,11 +40,11 @@ public:
|
||||
int getFromArray(int arg0, int idx2, int idx1);
|
||||
void putInArray(int arg0, int idx2, int idx1, int val);
|
||||
|
||||
void beforeBootScript(void) {};
|
||||
void initOnce() {};
|
||||
void startOfFrame() {};
|
||||
void endOfFrame() {};
|
||||
void processKeyStroke(int keyPressed) {};
|
||||
void beforeBootScript(void) {}
|
||||
void initOnce() {}
|
||||
void startOfFrame() {}
|
||||
void endOfFrame() {}
|
||||
void processKeyStroke(int keyPressed) {}
|
||||
|
||||
virtual int versionID();
|
||||
virtual int32 dispatch(int op, int numArgs, int32 *args);
|
||||
|
@ -118,10 +118,10 @@ public:
|
||||
|
||||
void setCursor(int id);
|
||||
|
||||
virtual int extractResource(int id, byte **buf) { return 0; };
|
||||
virtual int extractResource(int id, byte **buf) { return 0; }
|
||||
virtual int convertIcons(byte *data, int datasize, byte **cursor, int *w, int *h,
|
||||
int *hotspot_x, int *hotspot_y, int *keycolor,
|
||||
byte **palette, int *palSize) { return 0; };
|
||||
byte **palette, int *palSize) { return 0; }
|
||||
|
||||
enum {
|
||||
MAX_CACHED_CURSORS = 10
|
||||
@ -154,7 +154,7 @@ public:
|
||||
class Win32ResExtractor : public ResExtractor {
|
||||
public:
|
||||
Win32ResExtractor(ScummEngine_v70he *scumm);
|
||||
~Win32ResExtractor() {};
|
||||
~Win32ResExtractor() {}
|
||||
int extractResource(int id, byte **data);
|
||||
void setCursor(int id);
|
||||
int convertIcons(byte *data, int datasize, byte **cursor, int *w, int *h,
|
||||
|
@ -63,7 +63,7 @@ static uint32 GetCRC (byte *data, int len)
|
||||
class V2A_Sound {
|
||||
public:
|
||||
V2A_Sound() : _id(0), _mod(NULL) { }
|
||||
virtual ~V2A_Sound() {};
|
||||
virtual ~V2A_Sound() {}
|
||||
virtual void start(Player_MOD *mod, int id, const byte *data) = 0;
|
||||
virtual bool update() = 0;
|
||||
virtual void stop() = 0;
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
StringResource() :
|
||||
_nbStrings(0),
|
||||
_lastId(-1) {
|
||||
};
|
||||
}
|
||||
~StringResource() {
|
||||
for (int32 i = 0; i < _nbStrings; i++) {
|
||||
delete []_strings[i].string;
|
||||
|
@ -133,10 +133,10 @@ struct AllocedMem {
|
||||
class ConResource {
|
||||
public:
|
||||
ConResource(void *pSpData, uint32 pNSprites, uint32 pCurSprite, uint16 pX, uint16 pY, uint32 pText, uint8 pOnClick, OSystem *system, uint8 *screen);
|
||||
virtual ~ConResource(void) {};
|
||||
void setSprite(void *pSpData) { _spriteData = (dataFileHeader*)pSpData; };
|
||||
void setText(uint32 pText) { if (pText) _text = pText + 0x7000; else _text = 0; };
|
||||
void setXY(uint16 x, uint16 y) { _x = x; _y = y; };
|
||||
virtual ~ConResource(void) {}
|
||||
void setSprite(void *pSpData) { _spriteData = (dataFileHeader*)pSpData; }
|
||||
void setText(uint32 pText) { if (pText) _text = pText + 0x7000; else _text = 0; }
|
||||
void setXY(uint16 x, uint16 y) { _x = x; _y = y; }
|
||||
bool isMouseOver(uint32 mouseX, uint32 mouseY);
|
||||
virtual void drawToScreen(bool doMask);
|
||||
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
void fnCacheChip(uint16 *fList);
|
||||
void fnCacheFiles(void);
|
||||
void fnFlushBuffers(void);
|
||||
uint32 *giveLoadedFilesList(void) { return _loadedFilesList; };
|
||||
uint32 *giveLoadedFilesList(void) { return _loadedFilesList; }
|
||||
void refreshFilesList(uint32 *list);
|
||||
|
||||
protected:
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
Sound *skySound);
|
||||
~Logic(void);
|
||||
void engine();
|
||||
void useControlInstance(Control *control) { _skyControl = control; };
|
||||
void useControlInstance(Control *control) { _skyControl = control; }
|
||||
|
||||
uint16 mouseScript(uint32 scrNum, Compact *scriptComp);
|
||||
|
||||
|
@ -71,14 +71,14 @@ public:
|
||||
void startSequence(uint16 fileNum);
|
||||
void startSequenceItem(uint16 itemNum);
|
||||
void stopSequence(void);
|
||||
bool sequenceRunning(void) { return _seqInfo.running; };
|
||||
bool sequenceRunning(void) { return _seqInfo.running; }
|
||||
void waitForSequence(void);
|
||||
uint32 seqFramesLeft(void) { return _seqInfo.framesLeft; };
|
||||
uint8 *giveCurrent(void) { return _currentScreen; };
|
||||
uint32 seqFramesLeft(void) { return _seqInfo.framesLeft; }
|
||||
uint8 *giveCurrent(void) { return _currentScreen; }
|
||||
void halvePalette(void);
|
||||
|
||||
//- regular screen.asm routines
|
||||
void forceRefresh(void) { memset(_gameGrid, 0x80, GRID_X * GRID_Y); };
|
||||
void forceRefresh(void) { memset(_gameGrid, 0x80, GRID_X * GRID_Y); }
|
||||
void fnFadeUp(uint32 palNum, uint32 scroll);
|
||||
void fnFadeDown(uint32 scroll);
|
||||
void fnDrawScreen(uint32 palette, uint32 scroll);
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
void playSound(uint16 sound, uint16 volume, uint8 channel);
|
||||
void fnStartFx(uint32 sound, uint8 channel);
|
||||
bool startSpeech(uint16 textNum);
|
||||
bool speechFinished(void) { return !_mixer->isSoundHandleActive(_ingameSpeech); };
|
||||
bool speechFinished(void) { return !_mixer->isSoundHandleActive(_ingameSpeech); }
|
||||
void fnPauseFx(void);
|
||||
void fnUnPauseFx(void);
|
||||
void fnStopFx(void);
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
uint8 *fetchFile(uint32 fileId, uint32 *size = NULL);
|
||||
uint8 *decompressFile(uint32 fileId);
|
||||
void enterPath(uint32 id);
|
||||
void backToRoot(void) { _bufPos = _buf; };
|
||||
void backToRoot(void) { _bufPos = _buf; }
|
||||
private:
|
||||
uint8 *_bufPos;
|
||||
uint8 *_buf;
|
||||
|
@ -72,10 +72,10 @@ class Sound {
|
||||
public:
|
||||
Sound(const char *searchPath, Audio::Mixer *mixer, ResMan *pResMan);
|
||||
~Sound(void);
|
||||
void setSpeechVol(uint8 volL, uint8 volR) { _speechVolL = volL; _speechVolR = volR; };
|
||||
void setSfxVol(uint8 volL, uint8 volR) { _sfxVolL = volL; _sfxVolR = volR; };
|
||||
void giveSpeechVol(uint8 *volL, uint8 *volR) { *volL = _speechVolL; *volR = _speechVolR; };
|
||||
void giveSfxVol(uint8 *volL, uint8 *volR) { *volL = _sfxVolL; *volR = _sfxVolR; };
|
||||
void setSpeechVol(uint8 volL, uint8 volR) { _speechVolL = volL; _speechVolR = volR; }
|
||||
void setSfxVol(uint8 volL, uint8 volR) { _sfxVolL = volL; _sfxVolR = volR; }
|
||||
void giveSpeechVol(uint8 *volL, uint8 *volR) { *volL = _speechVolL; *volR = _speechVolR; }
|
||||
void giveSfxVol(uint8 *volL, uint8 *volR) { *volL = _sfxVolL; *volR = _sfxVolR; }
|
||||
void newScreen(uint32 screen);
|
||||
void quitScreen(void);
|
||||
void closeCowSystem(void);
|
||||
|
@ -798,7 +798,7 @@ struct CreditsLine {
|
||||
CreditsLine() {
|
||||
str = NULL;
|
||||
sprite = NULL;
|
||||
};
|
||||
}
|
||||
|
||||
~CreditsLine() {
|
||||
free(str);
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
class ScummFont : public Font {
|
||||
public:
|
||||
virtual int getFontHeight() const { return 8; }
|
||||
virtual int getMaxCharWidth() const { return 8; };
|
||||
virtual int getMaxCharWidth() const { return 8; }
|
||||
|
||||
virtual int getCharWidth(byte chr) const;
|
||||
virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const;
|
||||
@ -126,7 +126,7 @@ public:
|
||||
~NewFont();
|
||||
|
||||
virtual int getFontHeight() const { return desc.height; }
|
||||
virtual int getMaxCharWidth() const { return desc.maxwidth; };
|
||||
virtual int getMaxCharWidth() const { return desc.maxwidth; }
|
||||
|
||||
virtual int getCharWidth(byte chr) const;
|
||||
virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const;
|
||||
|
@ -183,7 +183,7 @@ public:
|
||||
break;
|
||||
};
|
||||
return Graphics::kTextAlignCenter;
|
||||
};
|
||||
}
|
||||
|
||||
TextAlign convertAligment(Graphics::TextAlignment align) const {
|
||||
switch (align) {
|
||||
|
@ -69,7 +69,7 @@ private:
|
||||
|
||||
public:
|
||||
ADPCMInputStream(Common::SeekableReadStream *stream, uint32 size, typesADPCM type, int rate, int channels = 2, uint32 blockAlign = 0);
|
||||
~ADPCMInputStream() {};
|
||||
~ADPCMInputStream() {}
|
||||
|
||||
int readBuffer(int16 *buffer, const int numSamples);
|
||||
int readBufferOKI(int16 *buffer, const int numSamples);
|
||||
|
@ -132,7 +132,7 @@ public:
|
||||
*
|
||||
* @return whether the mixer is ready and setup
|
||||
*/
|
||||
bool isReady() const { return _mixerReady; };
|
||||
bool isReady() const { return _mixerReady; }
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user