aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordi Vilalta Prat2010-10-19 22:34:26 +0000
committerJordi Vilalta Prat2010-10-19 22:34:26 +0000
commit59c054938a7fd2036badbecfbb3b72ad55b0e820 (patch)
tree3fbc8ec383c10ba88ca88b44c875e479386e7cd4
parente4029f6f0e5aa9dc679ce875fb7625c564c69144 (diff)
downloadscummvm-rg350-59c054938a7fd2036badbecfbb3b72ad55b0e820.tar.gz
scummvm-rg350-59c054938a7fd2036badbecfbb3b72ad55b0e820.tar.bz2
scummvm-rg350-59c054938a7fd2036badbecfbb3b72ad55b0e820.zip
LASTEXPRESS: Fix some space formatting.
svn-id: r53629
-rw-r--r--engines/lastexpress/data/scene.cpp4
-rw-r--r--engines/lastexpress/data/subtitle.cpp3
-rw-r--r--engines/lastexpress/entities/abbot.h14
-rw-r--r--engines/lastexpress/entities/alexei.cpp2
-rw-r--r--engines/lastexpress/entities/alexei.h12
-rw-r--r--engines/lastexpress/entities/alouan.h4
-rw-r--r--engines/lastexpress/entities/anna.cpp2
-rw-r--r--engines/lastexpress/entities/anna.h12
-rw-r--r--engines/lastexpress/entities/august.h20
-rw-r--r--engines/lastexpress/entities/boutarel.h10
-rw-r--r--engines/lastexpress/entities/chapters.cpp2
-rw-r--r--engines/lastexpress/entities/cooks.h4
-rw-r--r--engines/lastexpress/entities/coudert.cpp2
-rw-r--r--engines/lastexpress/entities/coudert.h8
-rw-r--r--engines/lastexpress/entities/entity_intern.h30
-rw-r--r--engines/lastexpress/entities/francois.cpp2
-rw-r--r--engines/lastexpress/entities/francois.h10
-rw-r--r--engines/lastexpress/entities/hadija.h4
-rw-r--r--engines/lastexpress/entities/ivo.h4
-rw-r--r--engines/lastexpress/entities/kahina.cpp2
-rw-r--r--engines/lastexpress/entities/kahina.h4
-rw-r--r--engines/lastexpress/entities/kronos.cpp2
-rw-r--r--engines/lastexpress/entities/mahmud.h8
-rw-r--r--engines/lastexpress/entities/max.h4
-rw-r--r--engines/lastexpress/entities/mertens.h10
-rw-r--r--engines/lastexpress/entities/milos.h10
-rw-r--r--engines/lastexpress/entities/mmeboutarel.h8
-rw-r--r--engines/lastexpress/entities/pascale.h4
-rw-r--r--engines/lastexpress/entities/rebecca.h18
-rw-r--r--engines/lastexpress/entities/salko.h2
-rw-r--r--engines/lastexpress/entities/servers0.cpp4
-rw-r--r--engines/lastexpress/entities/servers0.h12
-rw-r--r--engines/lastexpress/entities/servers1.cpp4
-rw-r--r--engines/lastexpress/entities/servers1.h10
-rw-r--r--engines/lastexpress/entities/tatiana.h12
-rw-r--r--engines/lastexpress/entities/vassili.h2
-rw-r--r--engines/lastexpress/entities/verges.h6
-rw-r--r--engines/lastexpress/entities/vesna.h6
-rw-r--r--engines/lastexpress/entities/yasmin.h4
-rw-r--r--engines/lastexpress/game/action.cpp4
-rw-r--r--engines/lastexpress/game/action.h2
-rw-r--r--engines/lastexpress/game/beetle.h4
-rw-r--r--engines/lastexpress/game/entities.cpp8
-rw-r--r--engines/lastexpress/game/entities.h10
-rw-r--r--engines/lastexpress/game/fight.h4
-rw-r--r--engines/lastexpress/game/menu.h20
-rw-r--r--engines/lastexpress/game/object.h2
-rw-r--r--engines/lastexpress/game/savegame.cpp2
-rw-r--r--engines/lastexpress/game/savegame.h4
-rw-r--r--engines/lastexpress/game/savepoint.cpp4
-rw-r--r--engines/lastexpress/game/savepoint.h6
-rw-r--r--engines/lastexpress/game/sound.cpp6
-rw-r--r--engines/lastexpress/game/sound.h4
53 files changed, 180 insertions, 181 deletions
diff --git a/engines/lastexpress/data/scene.cpp b/engines/lastexpress/data/scene.cpp
index e1be515bbc..a48bbc9de5 100644
--- a/engines/lastexpress/data/scene.cpp
+++ b/engines/lastexpress/data/scene.cpp
@@ -51,7 +51,7 @@ SceneHotspot *SceneHotspot::load(Common::SeekableReadStream *stream) {
hs->cursor = stream->readByte();
hs->next = stream->readUint32LE();
- debugC(10, kLastExpressDebugScenes, "\thotspot: scene=%d location=%02d action=%d param1=%02d param2=%02d param3=%02d cursor=%02d rect=(%d, %d)x(%d,%d)",
+ debugC(10, kLastExpressDebugScenes, "\thotspot: scene=%d location=%02d action=%d param1=%02d param2=%02d param3=%02d cursor=%02d rect=(%d, %d)x(%d, %d)",
hs->scene, hs->location, hs->action, hs->param1, hs->param2, hs->param3, hs->cursor, hs->rect.left, hs->rect.top, hs->rect.right, hs->rect.bottom);
debugC(10, kLastExpressDebugScenes, "\t coords=%d next=%d ", hs->coordsOffset, hs->next);
@@ -79,7 +79,7 @@ SceneHotspot *SceneHotspot::load(Common::SeekableReadStream *stream) {
Common::String SceneHotspot::toString() const {
Common::String output = "";
- output += Common::String::printf(" hotspot: scene=%d location=%02d action=%d param1=%02d param2=%02d param3=%02d cursor=%02d rect=(%d, %d)x(%d,%d)",
+ output += Common::String::printf(" hotspot: scene=%d location=%02d action=%d param1=%02d param2=%02d param3=%02d cursor=%02d rect=(%d, %d)x(%d, %d)",
scene, location, action, param1, param2, param3, cursor, rect.left, rect.top, rect.right, rect.bottom);
return output;
diff --git a/engines/lastexpress/data/subtitle.cpp b/engines/lastexpress/data/subtitle.cpp
index fb7d4ec6fa..08652a293d 100644
--- a/engines/lastexpress/data/subtitle.cpp
+++ b/engines/lastexpress/data/subtitle.cpp
@@ -72,8 +72,7 @@ void Subtitle::reset() {
}
template<typename T>
-T *newArray(size_t n)
-{
+T *newArray(size_t n) {
if (n <= (size_t)-1 / sizeof(T))
return new T[n];
diff --git a/engines/lastexpress/entities/abbot.h b/engines/lastexpress/entities/abbot.h
index ac4d260311..7e7b78b3be 100644
--- a/engines/lastexpress/entities/abbot.h
+++ b/engines/lastexpress/entities/abbot.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Handles entering/exiting a compartment.
@@ -56,7 +56,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -64,7 +64,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -78,7 +78,7 @@ public:
* @param sequence2 The sequence to draw for the second entity
* @param entity The EntityIndex of the second entity
*/
- DECLARE_FUNCTION_3(draw2, const char* sequence1, const char* sequence2, EntityIndex entity)
+ DECLARE_FUNCTION_3(draw2, const char *sequence1, const char *sequence2, EntityIndex entity)
/**
* Updates parameter 2 using time value
@@ -99,7 +99,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Saves the game
@@ -125,7 +125,7 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Updates the position
@@ -134,7 +134,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Process callback action when somebody is standing in the restaurant or salon.
diff --git a/engines/lastexpress/entities/alexei.cpp b/engines/lastexpress/entities/alexei.cpp
index 974025ec14..dc6d5f0729 100644
--- a/engines/lastexpress/entities/alexei.cpp
+++ b/engines/lastexpress/entities/alexei.cpp
@@ -555,7 +555,7 @@ IMPLEMENT_FUNCTION(18, Alexei, chapter1Handler)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION(19 ,Alexei, function19)
+IMPLEMENT_FUNCTION(19, Alexei, function19)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/alexei.h b/engines/lastexpress/entities/alexei.h
index 28e1466e91..420e6e87fc 100644
--- a/engines/lastexpress/entities/alexei.h
+++ b/engines/lastexpress/entities/alexei.h
@@ -48,7 +48,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Updates parameter 2 using ticks value
@@ -62,7 +62,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -71,7 +71,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Handles entering/exiting a compartment.
@@ -79,7 +79,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -94,7 +94,7 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Saves the game
@@ -137,7 +137,7 @@ public:
* @param timeValue The time value
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_2(function16, TimeValue timeValue, const char* sequence)
+ DECLARE_FUNCTION_2(function16, TimeValue timeValue, const char *sequence)
/**
* Setup Chapter 1
diff --git a/engines/lastexpress/entities/alouan.h b/engines/lastexpress/entities/alouan.h
index d663b0b624..33d5e2f23d 100644
--- a/engines/lastexpress/entities/alouan.h
+++ b/engines/lastexpress/entities/alouan.h
@@ -49,14 +49,14 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Updates parameter 2 using time value
diff --git a/engines/lastexpress/entities/anna.cpp b/engines/lastexpress/entities/anna.cpp
index f81d95754e..e04ff1d1b8 100644
--- a/engines/lastexpress/entities/anna.cpp
+++ b/engines/lastexpress/entities/anna.cpp
@@ -1794,7 +1794,7 @@ IMPLEMENT_FUNCTION(42, Anna, chapter2)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION(43 ,Anna, chapter2Handler)
+IMPLEMENT_FUNCTION(43, Anna, chapter2Handler)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/anna.h b/engines/lastexpress/entities/anna.h
index 6085bf1089..5297d6f745 100644
--- a/engines/lastexpress/entities/anna.h
+++ b/engines/lastexpress/entities/anna.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -57,7 +57,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Handles entering/exiting a compartment.
@@ -65,7 +65,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -80,14 +80,14 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Process callback action when somebody is standing in the restaurant or salon.
@@ -126,7 +126,7 @@ public:
* @param sequence2 The sequence to draw for the second entity
* @param entity The EntityIndex of the second entity
*/
- DECLARE_FUNCTION_3(draw2, const char* sequence1, const char* sequence2, EntityIndex entity)
+ DECLARE_FUNCTION_3(draw2, const char *sequence1, const char *sequence2, EntityIndex entity)
/**
* Updates parameter 2 using ticks value
diff --git a/engines/lastexpress/entities/august.h b/engines/lastexpress/entities/august.h
index e7c0d62ed4..1a883a0ed5 100644
--- a/engines/lastexpress/entities/august.h
+++ b/engines/lastexpress/entities/august.h
@@ -55,7 +55,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -64,7 +64,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Handles entering/exiting a compartment.
@@ -72,7 +72,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -80,7 +80,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment.
@@ -88,7 +88,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment3, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment3, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -103,7 +103,7 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Call a savepoint
@@ -112,7 +112,7 @@ public:
* @param param2 The action
* @param seq The sequence name for the savepoint
*/
- DECLARE_FUNCTION_3(callSavepointNoDrawing, EntityIndex entity, ActionIndex action, const char* sequence)
+ DECLARE_FUNCTION_3(callSavepointNoDrawing, EntityIndex entity, ActionIndex action, const char *sequence)
/**
* Draws the entity along with another one
@@ -121,21 +121,21 @@ public:
* @param sequence2 The sequence to draw for the second entity
* @param entity The EntityIndex of the second entity
*/
- DECLARE_FUNCTION_3(draw2, const char* sequence1, const char* sequence2, EntityIndex entity)
+ DECLARE_FUNCTION_3(draw2, const char *sequence1, const char *sequence2, EntityIndex entity)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound16, const char* filename)
+ DECLARE_FUNCTION_1(playSound16, const char *filename)
/**
* Process callback action when somebody is standing in the restaurant or salon.
diff --git a/engines/lastexpress/entities/boutarel.h b/engines/lastexpress/entities/boutarel.h
index aeac23b359..0ac051df77 100644
--- a/engines/lastexpress/entities/boutarel.h
+++ b/engines/lastexpress/entities/boutarel.h
@@ -48,14 +48,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Draws the entity
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates parameter 2 using time value
@@ -71,7 +71,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Handles entering/exiting a compartment.
@@ -79,7 +79,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -87,7 +87,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
diff --git a/engines/lastexpress/entities/chapters.cpp b/engines/lastexpress/entities/chapters.cpp
index 1bf3ee3f71..31b4dbd654 100644
--- a/engines/lastexpress/entities/chapters.cpp
+++ b/engines/lastexpress/entities/chapters.cpp
@@ -156,7 +156,7 @@ IMPLEMENT_FUNCTION(5, Chapters, resetMainEntities)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION(6,Chapters, chapter1End)
+IMPLEMENT_FUNCTION(6, Chapters, chapter1End)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/cooks.h b/engines/lastexpress/entities/cooks.h
index 2904d2c66b..fc3a0cb78c 100644
--- a/engines/lastexpress/entities/cooks.h
+++ b/engines/lastexpress/entities/cooks.h
@@ -43,14 +43,14 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
DECLARE_FUNCTION(function3)
diff --git a/engines/lastexpress/entities/coudert.cpp b/engines/lastexpress/entities/coudert.cpp
index 6249ea5487..edf3e9ccf7 100644
--- a/engines/lastexpress/entities/coudert.cpp
+++ b/engines/lastexpress/entities/coudert.cpp
@@ -3550,7 +3550,7 @@ IMPLEMENT_NULL_FUNCTION(63, Coudert)
//////////////////////////////////////////////////////////////////////////
// Private functions
//////////////////////////////////////////////////////////////////////////
-void Coudert::visitCompartment(const SavePoint &savepoint, EntityPosition position, const char* seq1, ObjectIndex compartment, const char* seq2, const char* seq3, EntityPosition sittingPosition, ObjectIndex object, const char* seq4) {
+void Coudert::visitCompartment(const SavePoint &savepoint, EntityPosition position, const char *seq1, ObjectIndex compartment, const char *seq2, const char *seq3, EntityPosition sittingPosition, ObjectIndex object, const char *seq4) {
EXPOSE_PARAMS(EntityData::EntityParametersIIII)
switch (savepoint.action) {
diff --git a/engines/lastexpress/entities/coudert.h b/engines/lastexpress/entities/coudert.h
index 1c2d340718..13dad6f122 100644
--- a/engines/lastexpress/entities/coudert.h
+++ b/engines/lastexpress/entities/coudert.h
@@ -56,7 +56,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -71,14 +71,14 @@ public:
* @param entityPosition1 The entity position 1
* @param entityPosition2 The entity position 2
*/
- DECLARE_FUNCTION_4(enterExitCompartment2, const char* sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
+ DECLARE_FUNCTION_4(enterExitCompartment2, const char *sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
@@ -221,7 +221,7 @@ public:
DECLARE_NULL_FUNCTION()
private:
- void visitCompartment(const SavePoint &savepoint, EntityPosition position, const char* seq1, ObjectIndex compartment, const char* seq2, const char* seq3, EntityPosition sittingPosition, ObjectIndex object, const char* seq4);
+ void visitCompartment(const SavePoint &savepoint, EntityPosition position, const char *seq1, ObjectIndex compartment, const char *seq2, const char *seq3, EntityPosition sittingPosition, ObjectIndex object, const char *seq4);
};
} // End of namespace LastExpress
diff --git a/engines/lastexpress/entities/entity_intern.h b/engines/lastexpress/entities/entity_intern.h
index 6442f76b3c..3f8c6e7c76 100644
--- a/engines/lastexpress/entities/entity_intern.h
+++ b/engines/lastexpress/entities/entity_intern.h
@@ -157,9 +157,9 @@ void class::setup_##name() { \
EXPOSE_PARAMS(EntityData::EntityParametersIIII) \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%d, %d, %d) - action: %s", params->param1, params->param2, params->param3, ACTION_NAME(savepoint.action));
-// setup with on char* parameter
+// setup with one char *parameter
#define IMPLEMENT_FUNCTION_S(index, class, name) \
- void class::setup_##name(const char* seq1) { \
+ void class::setup_##name(const char *seq1) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSIIS) \
EntityData::EntityParametersSIIS *params = (EntityData::EntityParametersSIIS*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -169,9 +169,9 @@ void class::setup_##name() { \
EXPOSE_PARAMS(EntityData::EntityParametersSIIS) \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s) - action: %s", (char *)&params->seq1, ACTION_NAME(savepoint.action));
-// setup with on char* parameter and one uint
+// setup with one char *parameter and one uint
#define IMPLEMENT_FUNCTION_SI(index, class, name, paramType2) \
- void class::setup_##name(const char* seq1, paramType2 param4) { \
+ void class::setup_##name(const char *seq1, paramType2 param4) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSIIS) \
EntityData::EntityParametersSIIS *params = (EntityData::EntityParametersSIIS*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -182,9 +182,9 @@ void class::setup_##name() { \
EXPOSE_PARAMS(EntityData::EntityParametersSIIS) \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %d) - action: %s", (char *)&params->seq1, params->param4, ACTION_NAME(savepoint.action));
-// setup with on char* parameter and two uints
+// setup with one char *parameter and two uints
#define IMPLEMENT_FUNCTION_SII(index, class, name, paramType2, paramType3) \
- void class::setup_##name(const char* seq1, paramType2 param4, paramType3 param5) { \
+ void class::setup_##name(const char *seq1, paramType2 param4, paramType3 param5) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSIIS) \
EntityData::EntityParametersSIIS *params = (EntityData::EntityParametersSIIS*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -196,9 +196,9 @@ void class::setup_##name() { \
EXPOSE_PARAMS(EntityData::EntityParametersSIIS) \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %d, %d) - action: %s", (char *)&params->seq1, params->param4, params->param5, ACTION_NAME(savepoint.action));
-// setup with on char* parameter and three uints
+// setup with one char *parameter and three uints
#define IMPLEMENT_FUNCTION_SIII(index, class, name, paramType2, paramType3, paramType4) \
- void class::setup_##name(const char* seq, paramType2 param4, paramType3 param5, paramType4 param6) { \
+ void class::setup_##name(const char *seq, paramType2 param4, paramType3 param5, paramType4 param6) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSIII) \
EntityData::EntityParametersSIII *params = (EntityData::EntityParametersSIII*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq, seq, 12); \
@@ -212,7 +212,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %d, %d, %d) - action: %s", (char *)&params->seq, params->param4, params->param5, params->param6, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_SIIS(index, class, name, paramType2, paramType3) \
- void class::setup_##name(const char* seq1, paramType2 param4, paramType3 param5, const char* seq2) { \
+ void class::setup_##name(const char *seq1, paramType2 param4, paramType3 param5, const char *seq2) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSIIS) \
EntityData::EntityParametersSIIS *params = (EntityData::EntityParametersSIIS*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -226,7 +226,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %d, %d, %s) - action: %s", (char *)&params->seq1, params->param4, params->param5, (char *)&params->seq2, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_SS(index, class, name) \
- void class::setup_##name(const char* seq1, const char* seq2) { \
+ void class::setup_##name(const char *seq1, const char *seq2) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSSII) \
EntityData::EntityParametersSSII *params = (EntityData::EntityParametersSSII*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -238,7 +238,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %s) - action: %s", (char *)&params->seq1, (char *)&params->seq2, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_SSI(index, class, name, paramType3) \
- void class::setup_##name(const char* seq1, const char* seq2, paramType3 param7) { \
+ void class::setup_##name(const char *seq1, const char *seq2, paramType3 param7) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersSSII) \
EntityData::EntityParametersSSII *params = (EntityData::EntityParametersSSII*)_data->getCurrentParameters(); \
strncpy((char *)&params->seq1, seq1, 12); \
@@ -251,7 +251,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%s, %s, %d) - action: %s", (char *)&params->seq1, (char *)&params->seq2, params->param7, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_IS(index, class, name, paramType) \
- void class::setup_##name(paramType param1, const char* seq) { \
+ void class::setup_##name(paramType param1, const char *seq) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersISII) \
EntityData::EntityParametersISII *params = (EntityData::EntityParametersISII*)_data->getCurrentParameters(); \
params->param1 = (unsigned int)param1; \
@@ -263,7 +263,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%d, %s) - action: %s", params->param1, (char *)&params->seq, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_ISS(index, class, name, paramType) \
- void class::setup_##name(paramType param1, const char* seq1, const char* seq2) { \
+ void class::setup_##name(paramType param1, const char *seq1, const char *seq2) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersISSI) \
EntityData::EntityParametersISSI *params = (EntityData::EntityParametersISSI*)_data->getCurrentParameters(); \
params->param1 = param1; \
@@ -276,7 +276,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%d, %s, %s) - action: %s", params->param1, (char *)&params->seq1, (char *)&params->seq2, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_IIS(index, class, name, paramType1, paramType2) \
- void class::setup_##name(paramType1 param1, paramType2 param2, const char* seq) { \
+ void class::setup_##name(paramType1 param1, paramType2 param2, const char *seq) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersIISI) \
EntityData::EntityParametersIISI *params = (EntityData::EntityParametersIISI*)_data->getCurrentParameters(); \
params->param1 = param1; \
@@ -289,7 +289,7 @@ void class::setup_##name() { \
debugC(6, kLastExpressDebugLogic, "Entity: " #class "::" #name "(%d, %d, %s) - action: %s", params->param1, params->param2, (char *)&params->seq, ACTION_NAME(savepoint.action));
#define IMPLEMENT_FUNCTION_IISS(index, class, name, paramType1, paramType2) \
- void class::setup_##name(paramType1 param1, paramType2 param2, const char* seq1, const char* seq2) { \
+ void class::setup_##name(paramType1 param1, paramType2 param2, const char *seq1, const char *seq2) { \
BEGIN_SETUP(class, name, index, EntityData::EntityParametersIISS) \
EntityData::EntityParametersIISS *params = (EntityData::EntityParametersIISS*)_data->getCurrentParameters(); \
params->param1 = param1; \
diff --git a/engines/lastexpress/entities/francois.cpp b/engines/lastexpress/entities/francois.cpp
index fd1237f8a3..3bd95ca92b 100644
--- a/engines/lastexpress/entities/francois.cpp
+++ b/engines/lastexpress/entities/francois.cpp
@@ -733,7 +733,7 @@ IMPLEMENT_FUNCTION(20, Francois, function20)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION(21 ,Francois, chapter2)
+IMPLEMENT_FUNCTION(21, Francois, chapter2)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/francois.h b/engines/lastexpress/entities/francois.h
index f14ddf0ffb..c924cf677b 100644
--- a/engines/lastexpress/entities/francois.h
+++ b/engines/lastexpress/entities/francois.h
@@ -55,7 +55,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Handles entering/exiting a compartment.
@@ -63,7 +63,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -71,14 +71,14 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
- * Plays sound
+ Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Saves the game
diff --git a/engines/lastexpress/entities/hadija.h b/engines/lastexpress/entities/hadija.h
index 2467440170..bd37a205d9 100644
--- a/engines/lastexpress/entities/hadija.h
+++ b/engines/lastexpress/entities/hadija.h
@@ -49,14 +49,14 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Updates parameter 2 using time value
diff --git a/engines/lastexpress/entities/ivo.h b/engines/lastexpress/entities/ivo.h
index f8a7cc7a80..e726c95af0 100644
--- a/engines/lastexpress/entities/ivo.h
+++ b/engines/lastexpress/entities/ivo.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Handles entering/exiting a compartment.
@@ -56,7 +56,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Updates parameter 2 using time value
diff --git a/engines/lastexpress/entities/kahina.cpp b/engines/lastexpress/entities/kahina.cpp
index 574d34b667..2a5a96be48 100644
--- a/engines/lastexpress/entities/kahina.cpp
+++ b/engines/lastexpress/entities/kahina.cpp
@@ -192,7 +192,7 @@ IMPLEMENT_FUNCTION_I(6, Kahina, function6, TimeValue)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION_II(7 ,Kahina, updateEntity2, CarIndex, EntityPosition)
+IMPLEMENT_FUNCTION_II(7, Kahina, updateEntity2, CarIndex, EntityPosition)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/kahina.h b/engines/lastexpress/entities/kahina.h
index 03f66160a0..4be9d9fb27 100644
--- a/engines/lastexpress/entities/kahina.h
+++ b/engines/lastexpress/entities/kahina.h
@@ -48,7 +48,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Saves the game
@@ -97,7 +97,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Setup Chapter 1
diff --git a/engines/lastexpress/entities/kronos.cpp b/engines/lastexpress/entities/kronos.cpp
index a7d6f5236f..c73cac3fbc 100644
--- a/engines/lastexpress/entities/kronos.cpp
+++ b/engines/lastexpress/entities/kronos.cpp
@@ -330,7 +330,7 @@ IMPLEMENT_FUNCTION(15, Kronos, function15)
}
//////////////////////////////////////////////////////////////////////////
-IMPLEMENT_FUNCTION(16 ,Kronos, function16)
+IMPLEMENT_FUNCTION(16, Kronos, function16)
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/mahmud.h b/engines/lastexpress/entities/mahmud.h
index a0d339cb60..647d48b8ed 100644
--- a/engines/lastexpress/entities/mahmud.h
+++ b/engines/lastexpress/entities/mahmud.h
@@ -57,7 +57,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment.
@@ -67,21 +67,21 @@ public:
* @param ticks The time ticks
* @param object The object for loading the scene
*/
- DECLARE_FUNCTION_4(enterExitCompartment2, const char* sequence, ObjectIndex compartment, uint32 ticks, ObjectIndex object)
+ DECLARE_FUNCTION_4(enterExitCompartment2, const char *sequence, ObjectIndex compartment, uint32 ticks, ObjectIndex object)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSoundMertens, const char* filename)
+ DECLARE_FUNCTION_1(playSoundMertens, const char *filename)
/**
* Updates parameter 2 using time value
diff --git a/engines/lastexpress/entities/max.h b/engines/lastexpress/entities/max.h
index d9e570df3e..93eb165a0f 100644
--- a/engines/lastexpress/entities/max.h
+++ b/engines/lastexpress/entities/max.h
@@ -48,7 +48,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Draws the entity
@@ -64,7 +64,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Saves the game
diff --git a/engines/lastexpress/entities/mertens.h b/engines/lastexpress/entities/mertens.h
index f720dce0e0..ccce17795c 100644
--- a/engines/lastexpress/entities/mertens.h
+++ b/engines/lastexpress/entities/mertens.h
@@ -65,7 +65,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -73,7 +73,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment.
@@ -85,7 +85,7 @@ public:
*
* @note We are not using the shared function due to too many differences
*/
- DECLARE_FUNCTION_4(enterExitCompartment3, const char* sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
+ DECLARE_FUNCTION_4(enterExitCompartment3, const char *sequence, ObjectIndex compartment, EntityPosition entityPosition1, EntityPosition entityPosition2)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -97,14 +97,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound16, const char* filename)
+ DECLARE_FUNCTION_1(playSound16, const char *filename)
/**
* Saves the game
diff --git a/engines/lastexpress/entities/milos.h b/engines/lastexpress/entities/milos.h
index a6977e58d6..6d44d1c4d9 100644
--- a/engines/lastexpress/entities/milos.h
+++ b/engines/lastexpress/entities/milos.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Handles entering/exiting a compartment.
@@ -56,7 +56,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -64,7 +64,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -76,14 +76,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound16, const char* filename)
+ DECLARE_FUNCTION_1(playSound16, const char *filename)
/**
* Saves the game
diff --git a/engines/lastexpress/entities/mmeboutarel.h b/engines/lastexpress/entities/mmeboutarel.h
index 0d18a990fa..1f1d762dd9 100644
--- a/engines/lastexpress/entities/mmeboutarel.h
+++ b/engines/lastexpress/entities/mmeboutarel.h
@@ -48,14 +48,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Draws the entity
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates parameter 2 using time value
@@ -70,7 +70,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -78,7 +78,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Updates the entity
diff --git a/engines/lastexpress/entities/pascale.h b/engines/lastexpress/entities/pascale.h
index e19c175800..d0098dcf0b 100644
--- a/engines/lastexpress/entities/pascale.h
+++ b/engines/lastexpress/entities/pascale.h
@@ -43,7 +43,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Process callback action when somebody is standing in the restaurant or salon.
@@ -77,7 +77,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Draws the entity along with another one
diff --git a/engines/lastexpress/entities/rebecca.h b/engines/lastexpress/entities/rebecca.h
index 399bad5020..bdc9fe1d3b 100644
--- a/engines/lastexpress/entities/rebecca.h
+++ b/engines/lastexpress/entities/rebecca.h
@@ -55,14 +55,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound16, const char* filename)
+ DECLARE_FUNCTION_1(playSound16, const char *filename)
/**
* Call a savepoint (or draw sequence in default case)
@@ -72,14 +72,14 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Draws the entity
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Handles entering/exiting a compartment.
@@ -87,7 +87,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -95,7 +95,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment.
@@ -103,7 +103,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment3, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment3, const char *sequence, ObjectIndex compartment)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -131,7 +131,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Draws the entity along with another one
@@ -140,7 +140,7 @@ public:
* @param sequence2 The sequence to draw for the second entity
* @param entity The EntityIndex of the second entity
*/
- DECLARE_FUNCTION_3(draw2, const char* sequence1, const char* sequence2, EntityIndex entity)
+ DECLARE_FUNCTION_3(draw2, const char *sequence1, const char *sequence2, EntityIndex entity)
DECLARE_FUNCTION(function15)
DECLARE_FUNCTION_1(function16, bool)
diff --git a/engines/lastexpress/entities/salko.h b/engines/lastexpress/entities/salko.h
index 3555bfc329..f21724d88a 100644
--- a/engines/lastexpress/entities/salko.h
+++ b/engines/lastexpress/entities/salko.h
@@ -49,7 +49,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Draws the entity
diff --git a/engines/lastexpress/entities/servers0.cpp b/engines/lastexpress/entities/servers0.cpp
index 33f2943c43..1f3f85bb8f 100644
--- a/engines/lastexpress/entities/servers0.cpp
+++ b/engines/lastexpress/entities/servers0.cpp
@@ -950,7 +950,7 @@ IMPLEMENT_NULL_FUNCTION(38, Servers0)
//////////////////////////////////////////////////////////////////////////
// Private functions
//////////////////////////////////////////////////////////////////////////
-void Servers0::handleServer(const SavePoint &savepoint, const char* name, EntityIndex entity, ActionIndex action, uint *parameter, const char* name2) {
+void Servers0::handleServer(const SavePoint &savepoint, const char *name, EntityIndex entity, ActionIndex action, uint *parameter, const char *name2) {
switch (savepoint.action) {
default:
break;
@@ -981,7 +981,7 @@ void Servers0::handleServer(const SavePoint &savepoint, const char* name, Entity
}
//////////////////////////////////////////////////////////////////////////
-void Servers0::serveTable(const SavePoint &savepoint, const char* seq1, EntityIndex entity, const char* seq2, const char* seq3, const char* seq4, uint *parameter, bool shouldUpdatePosition, bool pushSavepoint, Position position) {
+void Servers0::serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, bool shouldUpdatePosition, bool pushSavepoint, Position position) {
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/servers0.h b/engines/lastexpress/entities/servers0.h
index d32d0be7b3..3e1bd21e0d 100644
--- a/engines/lastexpress/entities/servers0.h
+++ b/engines/lastexpress/entities/servers0.h
@@ -46,7 +46,7 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Updates parameter 2 using time value
@@ -61,7 +61,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -70,7 +70,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -82,7 +82,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
DECLARE_FUNCTION(function7)
DECLARE_FUNCTION(function8)
@@ -163,8 +163,8 @@ public:
DECLARE_NULL_FUNCTION()
private:
- void handleServer(const SavePoint &savepoint, const char* name, EntityIndex entity, ActionIndex action, uint *parameter, const char* name2 = "");
- void serveTable(const SavePoint &savepoint, const char* seq1, EntityIndex entity, const char* seq2, const char* seq3, const char* seq4, uint *parameter, bool shouldUpdatePosition = true, bool pushSavepoint = false, Position position = 0);
+ void handleServer(const SavePoint &savepoint, const char *name, EntityIndex entity, ActionIndex action, uint *parameter, const char *name2 = "");
+ void serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, bool shouldUpdatePosition = true, bool pushSavepoint = false, Position position = 0);
};
} // End of namespace LastExpress
diff --git a/engines/lastexpress/entities/servers1.cpp b/engines/lastexpress/entities/servers1.cpp
index ea383dbacb..1afeeab894 100644
--- a/engines/lastexpress/entities/servers1.cpp
+++ b/engines/lastexpress/entities/servers1.cpp
@@ -661,7 +661,7 @@ IMPLEMENT_NULL_FUNCTION(32, Servers1)
//////////////////////////////////////////////////////////////////////////
// Private functions
//////////////////////////////////////////////////////////////////////////
-void Servers1::serveTable(const SavePoint &savepoint, const char* seq1, EntityIndex entity, const char* seq2, const char* seq3, const char* seq4, uint *parameter, Position position, bool shouldUpdatePosition, uint* parameter2) {
+void Servers1::serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, Position position, bool shouldUpdatePosition, uint *parameter2) {
switch (savepoint.action) {
default:
break;
@@ -715,7 +715,7 @@ void Servers1::serveTable(const SavePoint &savepoint, const char* seq1, EntityIn
}
//////////////////////////////////////////////////////////////////////////
-void Servers1::serveSalon(const SavePoint &savepoint, const char* seq1, const char* snd1, EntityIndex entity, const char* snd2, const char* seq2, ActionIndex action, const char* seq3, uint *parameter) {
+void Servers1::serveSalon(const SavePoint &savepoint, const char *seq1, const char *snd1, EntityIndex entity, const char *snd2, const char *seq2, ActionIndex action, const char *seq3, uint *parameter) {
switch (savepoint.action) {
default:
break;
diff --git a/engines/lastexpress/entities/servers1.h b/engines/lastexpress/entities/servers1.h
index deceac6176..14a6bf09a6 100644
--- a/engines/lastexpress/entities/servers1.h
+++ b/engines/lastexpress/entities/servers1.h
@@ -51,7 +51,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -75,14 +75,14 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
DECLARE_FUNCTION(function7)
@@ -158,8 +158,8 @@ public:
DECLARE_NULL_FUNCTION()
private:
- void serveTable(const SavePoint &savepoint, const char* seq1, EntityIndex entity, const char* seq2, const char* seq3, const char* seq4, uint *parameter, Position position = 0, bool updatePosition = true, uint *parameter2 = NULL);
- void serveSalon(const SavePoint &savepoint, const char* seq1, const char* snd1, EntityIndex entity, const char* snd2, const char* seq2, ActionIndex action, const char* seq3, uint *parameter);
+ void serveTable(const SavePoint &savepoint, const char *seq1, EntityIndex entity, const char *seq2, const char *seq3, const char *seq4, uint *parameter, Position position = 0, bool updatePosition = true, uint *parameter2 = NULL);
+ void serveSalon(const SavePoint &savepoint, const char *seq1, const char *snd1, EntityIndex entity, const char *snd2, const char *seq2, ActionIndex action, const char *seq3, uint *parameter);
};
} // End of namespace LastExpress
diff --git a/engines/lastexpress/entities/tatiana.h b/engines/lastexpress/entities/tatiana.h
index 5cba7e8268..171f7d62d3 100644
--- a/engines/lastexpress/entities/tatiana.h
+++ b/engines/lastexpress/entities/tatiana.h
@@ -48,14 +48,14 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Draws the entity
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the position
@@ -64,7 +64,7 @@ public:
* @param car The car
* @param position The position
*/
- DECLARE_FUNCTION_3(updatePosition, const char* sequence1, CarIndex car, Position position)
+ DECLARE_FUNCTION_3(updatePosition, const char *sequence1, CarIndex car, Position position)
/**
* Handles entering/exiting a compartment.
@@ -72,7 +72,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Handles entering/exiting a compartment and updates position/play animation
@@ -80,7 +80,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment2, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment2, const char *sequence, ObjectIndex compartment)
/**
* Call a savepoint (or draw sequence in default case)
@@ -90,7 +90,7 @@ public:
* @param action The action
* @param sequence2 The sequence name for the savepoint
*/
- DECLARE_FUNCTION_4(callSavepoint, const char* sequence1, EntityIndex entity, ActionIndex action, const char* sequence2)
+ DECLARE_FUNCTION_4(callSavepoint, const char *sequence1, EntityIndex entity, ActionIndex action, const char *sequence2)
/**
* Process callback action when the entity direction is not kDirectionRight
diff --git a/engines/lastexpress/entities/vassili.h b/engines/lastexpress/entities/vassili.h
index dc3631dd03..1862069e25 100644
--- a/engines/lastexpress/entities/vassili.h
+++ b/engines/lastexpress/entities/vassili.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Saves the game
diff --git a/engines/lastexpress/entities/verges.h b/engines/lastexpress/entities/verges.h
index 83c44fcc7c..40a43eac9d 100644
--- a/engines/lastexpress/entities/verges.h
+++ b/engines/lastexpress/entities/verges.h
@@ -48,7 +48,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Process callback action when the entity direction is not kDirectionRight
@@ -60,7 +60,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Plays sound
@@ -174,7 +174,7 @@ public:
DECLARE_FUNCTION(function42)
private:
- void talk(const SavePoint &savepoint, const char* sound1, const char* sound2);
+ void talk(const SavePoint &savepoint, const char *sound1, const char *sound2);
};
} // End of namespace LastExpress
diff --git a/engines/lastexpress/entities/vesna.h b/engines/lastexpress/entities/vesna.h
index 74a1c0b6e9..55a9a989c5 100644
--- a/engines/lastexpress/entities/vesna.h
+++ b/engines/lastexpress/entities/vesna.h
@@ -48,7 +48,7 @@ public:
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Handles entering/exiting a compartment.
@@ -56,7 +56,7 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
@@ -64,7 +64,7 @@ public:
*
* @param sequence The sequence to draw
*/
- DECLARE_FUNCTION_1(draw, const char* sequence)
+ DECLARE_FUNCTION_1(draw, const char *sequence)
/**
* Updates the entity
diff --git a/engines/lastexpress/entities/yasmin.h b/engines/lastexpress/entities/yasmin.h
index 50a19c535f..b35c713f8b 100644
--- a/engines/lastexpress/entities/yasmin.h
+++ b/engines/lastexpress/entities/yasmin.h
@@ -49,14 +49,14 @@ public:
* @param sequence The sequence to draw
* @param compartment The compartment
*/
- DECLARE_FUNCTION_2(enterExitCompartment, const char* sequence, ObjectIndex compartment)
+ DECLARE_FUNCTION_2(enterExitCompartment, const char *sequence, ObjectIndex compartment)
/**
* Plays sound
*
* @param filename The sound filename
*/
- DECLARE_FUNCTION_1(playSound, const char* filename)
+ DECLARE_FUNCTION_1(playSound, const char *filename)
/**
* Updates parameter 2 using time value
diff --git a/engines/lastexpress/game/action.cpp b/engines/lastexpress/game/action.cpp
index b90ee40c6a..0c478ed9b4 100644
--- a/engines/lastexpress/game/action.cpp
+++ b/engines/lastexpress/game/action.cpp
@@ -637,7 +637,7 @@ IMPLEMENT_ACTION(setItemLocation)
if (item >= kPortraitOriginal)
return kSceneInvalid;
- Inventory::InventoryEntry* entry = getInventory()->get(item);
+ Inventory::InventoryEntry *entry = getInventory()->get(item);
if (entry->isPresent)
return kSceneInvalid;
@@ -675,7 +675,7 @@ IMPLEMENT_ACTION(pickItem)
if (item >= kPortraitOriginal)
return kSceneInvalid;
- Inventory::InventoryEntry* entry = getInventory()->get(item);
+ Inventory::InventoryEntry *entry = getInventory()->get(item);
if (!entry->location)
return kSceneInvalid;
diff --git a/engines/lastexpress/game/action.h b/engines/lastexpress/game/action.h
index d8f81abfde..6a2e3eb597 100644
--- a/engines/lastexpress/game/action.h
+++ b/engines/lastexpress/game/action.h
@@ -67,7 +67,7 @@ public:
private:
typedef Common::Functor1<const SceneHotspot &, SceneIndex> ActionFunctor;
- LastExpressEngine* _engine;
+ LastExpressEngine *_engine;
Common::Array<ActionFunctor *> _actions;
// Each action is of the form action_<name>(SceneHotspot *hotspot)
diff --git a/engines/lastexpress/game/beetle.h b/engines/lastexpress/game/beetle.h
index ece5866b85..3341e92270 100644
--- a/engines/lastexpress/game/beetle.h
+++ b/engines/lastexpress/game/beetle.h
@@ -68,7 +68,7 @@ private:
uint32 indexes[16];
uint32 offset;
- SequenceFrame* frame;
+ SequenceFrame *frame;
bool isLoaded;
uint32 field_D5;
uint32 field_D9;
@@ -103,7 +103,7 @@ private:
}
};
- LastExpressEngine* _engine;
+ LastExpressEngine *_engine;
BeetleData *_data;
diff --git a/engines/lastexpress/game/entities.cpp b/engines/lastexpress/game/entities.cpp
index 0ef5b1b740..9d5315671a 100644
--- a/engines/lastexpress/game/entities.cpp
+++ b/engines/lastexpress/game/entities.cpp
@@ -1280,11 +1280,11 @@ void Entities::copySequenceData(EntityIndex entityIndex) const {
//////////////////////////////////////////////////////////////////////////
// Drawing
//////////////////////////////////////////////////////////////////////////
-void Entities::drawSequenceLeft(EntityIndex index, const char* sequence) const {
+void Entities::drawSequenceLeft(EntityIndex index, const char *sequence) const {
drawSequence(index, sequence, kDirectionLeft);
}
-void Entities::drawSequenceRight(EntityIndex index, const char* sequence) const {
+void Entities::drawSequenceRight(EntityIndex index, const char *sequence) const {
drawSequence(index, sequence, kDirectionRight);
}
@@ -1315,7 +1315,7 @@ void Entities::clearSequences(EntityIndex entityIndex) const {
data->doProcessEntity = true;
}
-void Entities::drawSequence(EntityIndex index, const char* sequence, EntityDirection direction) const {
+void Entities::drawSequence(EntityIndex index, const char *sequence, EntityDirection direction) const {
debugC(8, kLastExpressDebugLogic, "Drawing sequence %s for entity %s with direction %s", sequence, ENTITY_NAME(index), DIRECTION_NAME(direction));
// Copy sequence name
@@ -2329,7 +2329,7 @@ label_process_entity:
return true;
}
-bool Entities::changeCar(EntityData::EntityCallData * data, EntityIndex entity, CarIndex car, EntityPosition position, bool increment, EntityPosition newPosition, CarIndex newCar) const {
+bool Entities::changeCar(EntityData::EntityCallData *data, EntityIndex entity, CarIndex car, EntityPosition position, bool increment, EntityPosition newPosition, CarIndex newCar) const {
if (getData(kEntityPlayer)->car == data->car) {
getSound()->playSoundEvent(entity, 36);
getSound()->playSoundEvent(entity, 37, 30);
diff --git a/engines/lastexpress/game/entities.h b/engines/lastexpress/game/entities.h
index 40d7025b85..980e26a6e8 100644
--- a/engines/lastexpress/game/entities.h
+++ b/engines/lastexpress/game/entities.h
@@ -86,8 +86,8 @@ public:
void exitCompartment(EntityIndex entity, ObjectIndex compartment, bool useCompartment1 = false);
// Sequences
- void drawSequenceLeft(EntityIndex index, const char* sequence) const;
- void drawSequenceRight(EntityIndex index, const char* sequence) const;
+ void drawSequenceLeft(EntityIndex index, const char *sequence) const;
+ void drawSequenceRight(EntityIndex index, const char *sequence) const;
void clearSequences(EntityIndex index) const;
bool updateEntity(EntityIndex entity, CarIndex car, EntityPosition position);
@@ -347,11 +347,11 @@ private:
void executeCallbacks();
void processEntity(EntityIndex entity);
- void drawSequence(EntityIndex entity, const char* sequence, EntityDirection direction) const;
+ void drawSequence(EntityIndex entity, const char *sequence, EntityDirection direction) const;
void drawSequences(EntityIndex entity, EntityDirection direction, bool loadSequence) const;
void loadSequence2(EntityIndex entity, Common::String sequenceName, Common::String sequenceName2, byte field30, bool loadSequence) const;
- void clearEntitySequenceData(EntityData::EntityCallData * data, EntityDirection direction) const;
+ void clearEntitySequenceData(EntityData::EntityCallData *data, EntityDirection direction) const;
void computeCurrentFrame(EntityIndex entity) const;
int16 getCurrentFrame(EntityIndex entity, Sequence *sequence, EntityPosition position, bool doProcessing) const;
void processFrame(EntityIndex entity, bool keepPreviousFrame, bool dontPlaySound);
@@ -359,7 +359,7 @@ private:
void updateEntityPosition(EntityIndex entity) const;
void copySequenceData(EntityIndex entity) const;
- bool changeCar(EntityData::EntityCallData * data, EntityIndex entity, CarIndex car, EntityPosition position, bool increment, EntityPosition newPosition, CarIndex newCar) const;
+ bool changeCar(EntityData::EntityCallData *data, EntityIndex entity, CarIndex car, EntityPosition position, bool increment, EntityPosition newPosition, CarIndex newCar) const;
void getSequenceName(EntityIndex entity, EntityDirection direction, Common::String &sequence1, Common::String &sequence2) const;
diff --git a/engines/lastexpress/game/fight.h b/engines/lastexpress/game/fight.h
index 32d734d57c..4484017184 100644
--- a/engines/lastexpress/game/fight.h
+++ b/engines/lastexpress/game/fight.h
@@ -118,7 +118,7 @@ private:
Common::Functor2<Fighter *, FightAction, void> *handleAction;
Common::Functor1<Fighter *, void> *update;
Common::Functor2<Fighter const *, FightAction, bool> *canInteract;
- Fighter* opponent;
+ Fighter *opponent;
Common::Array<Sequence *> sequences;
uint32 sequenceIndex;
Sequence *sequence;
@@ -186,7 +186,7 @@ private:
}
};
- LastExpressEngine* _engine;
+ LastExpressEngine *_engine;
FightData *_data;
FightEndType _endType;
int _state;
diff --git a/engines/lastexpress/game/menu.h b/engines/lastexpress/game/menu.h
index 54d1eb65ec..006aecc5ef 100644
--- a/engines/lastexpress/game/menu.h
+++ b/engines/lastexpress/game/menu.h
@@ -107,14 +107,14 @@ private:
LastExpressEngine *_engine;
// Sequences
- Sequence* _seqTooltips;
- Sequence* _seqEggButtons;
- Sequence* _seqButtons;
- Sequence* _seqAcorn;
- Sequence* _seqCity1;
- Sequence* _seqCity2;
- Sequence* _seqCity3;
- Sequence* _seqCredits;
+ Sequence *_seqTooltips;
+ Sequence *_seqEggButtons;
+ Sequence *_seqButtons;
+ Sequence *_seqAcorn;
+ Sequence *_seqCity1;
+ Sequence *_seqCity2;
+ Sequence *_seqCity3;
+ Sequence *_seqCredits;
GameId _gameId;
@@ -153,11 +153,11 @@ private:
TrainLine *_trainLine;
struct MenuOverlays_EqualTo {
- bool operator()(const StartMenuOverlay& x, const StartMenuOverlay& y) const { return x == y; }
+ bool operator()(const StartMenuOverlay &x, const StartMenuOverlay &y) const { return x == y; }
};
struct MenuOverlays_Hash {
- uint operator()(const StartMenuOverlay& x) const { return x; }
+ uint operator()(const StartMenuOverlay &x) const { return x; }
};
typedef Common::HashMap<StartMenuOverlay, SequenceFrame *, MenuOverlays_Hash, MenuOverlays_EqualTo> MenuFrames;
diff --git a/engines/lastexpress/game/object.h b/engines/lastexpress/game/object.h
index 3417e9bfcf..70eb69446e 100644
--- a/engines/lastexpress/game/object.h
+++ b/engines/lastexpress/game/object.h
@@ -73,7 +73,7 @@ public:
Common::String toString();
private:
- LastExpressEngine* _engine;
+ LastExpressEngine *_engine;
Object _objects[kObjectMax];
};
diff --git a/engines/lastexpress/game/savegame.cpp b/engines/lastexpress/game/savegame.cpp
index 1bd3d8239b..6ba54fbe45 100644
--- a/engines/lastexpress/game/savegame.cpp
+++ b/engines/lastexpress/game/savegame.cpp
@@ -131,7 +131,7 @@ bool SaveLoad::isSavegameValid(GameId id) {
//////////////////////////////////////////////////////////////////////////
// Headers
//////////////////////////////////////////////////////////////////////////
-bool SaveLoad::loadMainHeader(GameId id, SavegameMainHeader* header) {
+bool SaveLoad::loadMainHeader(GameId id, SavegameMainHeader *header) {
// Read first 32 bytes of savegame
Common::InSaveFile *save = openForLoading(id);
if (!save) {
diff --git a/engines/lastexpress/game/savegame.h b/engines/lastexpress/game/savegame.h
index 739e6a1798..a5af760846 100644
--- a/engines/lastexpress/game/savegame.h
+++ b/engines/lastexpress/game/savegame.h
@@ -148,7 +148,7 @@ public:
static Common::OutSaveFile *openForSaving(GameId id);
// Headers
- static bool loadMainHeader(GameId id, SavegameMainHeader* header);
+ static bool loadMainHeader(GameId id, SavegameMainHeader *header);
SavegameEntryHeader *getEntry(uint32 index);
void clearEntries();
@@ -162,7 +162,7 @@ private:
static Common::String getSavegameName(GameId id);
- static void loadEntryHeader(Common::InSaveFile *save, SavegameEntryHeader* header);
+ static void loadEntryHeader(Common::InSaveFile *save, SavegameEntryHeader *header);
static bool validateMainHeader(const SavegameMainHeader &header);
static bool validateEntryHeader(const SavegameEntryHeader &header);
diff --git a/engines/lastexpress/game/savepoint.cpp b/engines/lastexpress/game/savepoint.cpp
index e7bae494ed..9a93c975ba 100644
--- a/engines/lastexpress/game/savepoint.cpp
+++ b/engines/lastexpress/game/savepoint.cpp
@@ -61,7 +61,7 @@ void SavePoints::push(EntityIndex entity2, EntityIndex entity1, ActionIndex acti
_savepoints.push_back(point);
}
-void SavePoints::push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, const char* param) {
+void SavePoints::push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, const char *param) {
if (_savepoints.size() >= _savePointsMaxSize)
return;
@@ -129,7 +129,7 @@ void SavePoints::addData(EntityIndex entity, ActionIndex action, uint32 param) {
//////////////////////////////////////////////////////////////////////////
// Callbacks
//////////////////////////////////////////////////////////////////////////
-void SavePoints::setCallback(EntityIndex index, Entity::Callback* callback) {
+void SavePoints::setCallback(EntityIndex index, Entity::Callback *callback) {
if (index >= 40)
error("SavePoints::setCallback - attempting to use an invalid entity index. Valid values 0-39, was %d", index);
diff --git a/engines/lastexpress/game/savepoint.h b/engines/lastexpress/game/savepoint.h
index da1c9b8ed1..83fe2a6517 100644
--- a/engines/lastexpress/game/savepoint.h
+++ b/engines/lastexpress/game/savepoint.h
@@ -106,7 +106,7 @@ public:
// Savepoints
void push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, uint32 param = 0);
- void push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, const char* param);
+ void push(EntityIndex entity2, EntityIndex entity1, ActionIndex action, const char *param);
void pushAll(EntityIndex entity, ActionIndex action, uint32 param = 0);
void process();
void reset();
@@ -115,7 +115,7 @@ public:
void addData(EntityIndex entity, ActionIndex action, uint32 param);
// Callbacks
- void setCallback(EntityIndex index, Entity::Callback* callback);
+ void setCallback(EntityIndex index, Entity::Callback *callback);
Callback *getCallback(EntityIndex entity) const;
void call(EntityIndex entity2, EntityIndex entity1, ActionIndex action, uint32 param = 0) const;
void call(EntityIndex entity2, EntityIndex entity1, ActionIndex action, const char *param) const;
@@ -138,7 +138,7 @@ private:
Common::List<SavePoint> _savepoints; ///< could be a queue, but we need to be able to iterate on the items
Common::Array<SavePointData> _data;
- Callback* _callbacks[40];
+ Callback *_callbacks[40];
SavePoint pop();
bool updateEntityFromData(const SavePoint &point);
diff --git a/engines/lastexpress/game/sound.cpp b/engines/lastexpress/game/sound.cpp
index c8d8809bc3..f082c5f636 100644
--- a/engines/lastexpress/game/sound.cpp
+++ b/engines/lastexpress/game/sound.cpp
@@ -337,7 +337,7 @@ void SoundManager::loadSoundData(SoundEntry *entry, Common::String name) {
}
}
-void SoundManager::resetEntry(SoundEntry * entry) const {
+void SoundManager::resetEntry(SoundEntry *entry) const {
entry->status.status |= kSoundStatusRemoved;
entry->entity = kEntityPlayer;
@@ -517,7 +517,7 @@ void SoundManager::playSound(EntityIndex entity, Common::String filename, FlagTy
}
SoundManager::SoundType SoundManager::playSoundWithSubtitles(Common::String filename, FlagType flag, EntityIndex entity, byte a4) {
- SoundEntry* entry = new SoundEntry();
+ SoundEntry *entry = new SoundEntry();
setupEntry(entry, filename, flag, 30);
entry->entity = entity;
@@ -1051,7 +1051,7 @@ void SoundManager::readText(int id){
error("Sound::readText - attempting to use invalid id. Valid values [1;8] - [50;64], was %d", id);
// Get proper message file (names are stored in sequence in the array but id is [1;8] - [50;64])
- const char* text = messages[id <= 8 ? id : id - 41];
+ const char *text = messages[id <= 8 ? id : id - 41];
// Check if file is in cache for id [1;8]
if (id <= 8)
diff --git a/engines/lastexpress/game/sound.h b/engines/lastexpress/game/sound.h
index 3f3941f207..85dfcc2e66 100644
--- a/engines/lastexpress/game/sound.h
+++ b/engines/lastexpress/game/sound.h
@@ -197,7 +197,7 @@ public:
void saveLoadWithSerializer(Common::Serializer &ser);
private:
- typedef int32* SoundBuffer;
+ typedef int32 *SoundBuffer;
enum SoundStatus {
kSoundStatus_20 = 0x20,
@@ -277,7 +277,7 @@ private:
};
// Engine
- LastExpressEngine* _engine;
+ LastExpressEngine *_engine;
// State flag
int _state;