[Scummvm-git-logs] scummvm master -> ad2df7fa8c8be1571bb0120a97956097655d36a6
sev-
noreply at scummvm.org
Sun Oct 27 22:53:47 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ad2df7fa8c JANITORIAL: Whitespace fixes
Commit: ad2df7fa8c8be1571bb0120a97956097655d36a6
https://github.com/scummvm/scummvm/commit/ad2df7fa8c8be1571bb0120a97956097655d36a6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-10-27T23:53:19+01:00
Commit Message:
JANITORIAL: Whitespace fixes
Changed paths:
engines/qdengine/minigames/adv/ObjectContainer.h
engines/qdengine/minigames/adv/RunTime.h
engines/qdengine/minigames/adv/TextManager.cpp
engines/qdengine/minigames/adv/TextManager.h
diff --git a/engines/qdengine/minigames/adv/ObjectContainer.h b/engines/qdengine/minigames/adv/ObjectContainer.h
index e7e8b59f204..f4a11304591 100644
--- a/engines/qdengine/minigames/adv/ObjectContainer.h
+++ b/engines/qdengine/minigames/adv/ObjectContainer.h
@@ -38,7 +38,7 @@ public:
ObjectContainer();
void release();
- bool load(const char* _name, bool hide = true);
+ bool load(const char *_name, bool hide = true);
void hideAll();
const mgVect3f &coord() const {
diff --git a/engines/qdengine/minigames/adv/RunTime.h b/engines/qdengine/minigames/adv/RunTime.h
index 9f990f3d084..1bd5adc6900 100644
--- a/engines/qdengine/minigames/adv/RunTime.h
+++ b/engines/qdengine/minigames/adv/RunTime.h
@@ -98,13 +98,13 @@ public:
~MinigameManager();
// begin MiniGame virtual interface
- bool init(const qdEngineInterface* engine_interface);
+ bool init(const qdEngineInterface *engine_interface);
bool quant(float dt);
bool finit();
- bool new_game(const qdEngineInterface* engine);
- int save_game(const qdEngineInterface* engine, const qdMinigameSceneInterface* scene, char* buffer, int buffer_size);
- int load_game(const qdEngineInterface* engine, const qdMinigameSceneInterface* scene, const char* buffer, int buffer_size);
+ bool new_game(const qdEngineInterface *engine);
+ int save_game(const qdEngineInterface *engine, const qdMinigameSceneInterface *scene, char *buffer, int buffer_size);
+ int load_game(const qdEngineInterface *engine, const qdMinigameSceneInterface *scene, const char *buffer, int buffer_size);
// finish MiniGame virtual interface
// пÑи необÑ
одимоÑÑи заменÑÐµÑ Ð½Ð° неизмененнÑе пÑедÑдÑÑим пÑоÑ
ождением даннÑе
@@ -146,40 +146,40 @@ public:
void setGameHelpVariant(int idx);
// ÐозвÑаÑÐ°ÐµÑ Ð¿Ð°ÑамеÑÑ Ð¸Ð· пÑикÑепленного к игÑе ini Ñайла
- const char *parameter(const char* name, bool required = true) const;
- const char *parameter(const char* name, const char* def) const;
+ const char *parameter(const char *name, bool required = true) const;
+ const char *parameter(const char *name, const char *def) const;
// ÐеÑеÑÑиÑÑÐ²Ð°ÐµÑ Ð¸Ð· ÑкÑаннÑÑ
кооÑÐ´Ð¸Ð½Ð°Ñ UI игÑÑ Ð² 3D кооÑдинаÑÑ R() обÑекÑа на миÑе
- mgVect3f game2world(const mgVect3i& coord) const;
- mgVect3f game2world(const mgVect3f& coord) const;
- mgVect3f game2world(const mgVect2i& coord, int depth = 0) const;
- mgVect3f game2world(const mgVect2f& coord, int depth = 0) const;
+ mgVect3f game2world(const mgVect3i &coord) const;
+ mgVect3f game2world(const mgVect3f &coord) const;
+ mgVect3f game2world(const mgVect2i &coord, int depth = 0) const;
+ mgVect3f game2world(const mgVect2f &coord, int depth = 0) const;
// ÐеÑеÑÑиÑÑÐ²Ð°ÐµÑ Ð¸Ð· миÑовÑÑ
кооÑÐ´Ð¸Ð½Ð°Ñ R() в 2D UI кооÑдинаÑÑ Ð¸ глÑбинÑ
mgVect2f world2game(const mgVect3f& pos) const;
- mgVect3f world2game(qdMinigameObjectInterface* obj) const;
+ mgVect3f world2game(qdMinigameObjectInterface *obj) const;
// ÑÐ°Ð·Ð¼ÐµÑ Ð¾Ð±ÑекÑа
- mgVect2f getSize(qdMinigameObjectInterface* obj) const;
+ mgVect2f getSize(qdMinigameObjectInterface *obj) const;
// ÐенÑÐµÑ Ð³Ð»ÑÐ±Ð¸Ð½Ñ Ð¾Ð±ÑекÑа, не менÑÑ ÐµÐ³Ð¾ 2D Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð½Ð° ÑкÑане
- void setDepth(qdMinigameObjectInterface* obj, int depth) const;
+ void setDepth(qdMinigameObjectInterface *obj, int depth) const;
// ÐолÑÑÐ°ÐµÑ Ð³Ð»ÑÐ±Ð¸Ð½Ñ Ð¾Ð±ÑекÑа, Ñем менÑÑе, Ñем ближе к игÑокÑ
- float getDepth(qdMinigameObjectInterface* obj) const;
+ float getDepth(qdMinigameObjectInterface *obj) const;
// ÐолÑÑÐ°ÐµÑ Ð³Ð»ÑÐ±Ð¸Ð½Ñ ÑоÑки, Ñем менÑÑе, Ñем ближе к игÑокÑ
float getDepth(const mgVect3f& pos) const;
// полÑÑÐ°ÐµÑ Ð¸Ð½ÑеÑÑÐµÐ¹Ñ Ðº динамиÑеÑÐºÐ¾Ð¼Ñ Ð¸Ð³ÑÐ¾Ð²Ð¾Ð¼Ñ Ð¾Ð±ÑекÑÑ Ð¿Ð¾ имени
- QDObject getObject(const char* name) const;
+ QDObject getObject(const char *name) const;
// пÑовеÑÑÐµÑ ÑÑÑеÑÑвование динамиÑеÑкого обÑекÑа в ÑÑене
- bool testObject(const char* name) const;
+ bool testObject(const char *name) const;
// оÑÐ²Ð¾Ð±Ð¾Ð¶Ð´Ð°ÐµÑ Ð¸Ð½ÑеÑÑейÑ
void release(QDObject& obj);
// задаÑÑ ÑекÑÑ Ð´Ð»Ñ ÐºÐ¾Ð½ÑÑола
- void setText(const char* name, const char* text) const;
- void setText(const char* name, int toText, const char* format = "%d") const;
+ void setText(const char *name, const char *text) const;
+ void setText(const char *name, int toText, const char *format = "%d") const;
// ÑпÑÑÑаÑÑ Ð¾Ð±ÑÐµÐºÑ Ð·Ð° пÑеделами ÑкÑана
- void hide(qdMinigameObjectInterface* obj) const;
+ void hide(qdMinigameObjectInterface *obj) const;
// ÑлÑÑайное знаÑение в диапазоне [min, max]
float rnd(float min, float max) const;
@@ -296,7 +296,7 @@ private:
void saveState(bool force = false);
// ÐолÑиÑÑ Ð¾Ð±ÑекÑ-ÑÑеÑÑик
- QDCounter getCounter(const char* name);
+ QDCounter getCounter(const char *name);
// ÐÑвободиÑÑ ÑÑеÑÑик
void release(QDCounter& counter);
diff --git a/engines/qdengine/minigames/adv/TextManager.cpp b/engines/qdengine/minigames/adv/TextManager.cpp
index aee0c170cfc..509b5e527ad 100644
--- a/engines/qdengine/minigames/adv/TextManager.cpp
+++ b/engines/qdengine/minigames/adv/TextManager.cpp
@@ -34,7 +34,7 @@ TextManager::TextManager() {
for (int idx = 0;; ++idx) {
snprintf(str_cache, 127, "register_font_%d", idx);
- if (const char * descr = g_runtime->parameter(str_cache, false)) {
+ if (const char *descr = g_runtime->parameter(str_cache, false)) {
sscanf(descr, "%255s", str_cache);
Font digit;
if (!digit.pool.load(str_cache))
@@ -61,7 +61,7 @@ TextManager::TextManager() {
for (int idx = 0;; ++idx) {
snprintf(str_cache, 127, "register_particle_escape_%d", idx);
- if (const char * descr = g_runtime->parameter(str_cache, false)) {
+ if (const char *descr = g_runtime->parameter(str_cache, false)) {
Escape escape;
int read = sscanf(descr, "%d (%f><%f, %f><%f) (%f><%f, %f><%f) %f '%15s",
&escape.depth,
@@ -96,8 +96,8 @@ TextManager::TextManager() {
_scoreUpdateTime = getParameter("score_update_time", 0.1f);
}
-bool TextManager::getStaticPreset(StaticTextPreset& preset, const char* name) const {
- if (const char * descr = g_runtime->parameter(name, false)) {
+bool TextManager::getStaticPreset(StaticTextPreset& preset, const char *name) const {
+ if (const char *descr = g_runtime->parameter(name, false)) {
int align = 0;
char str[64];
str[63] = 0;
@@ -167,13 +167,13 @@ int TextManager::createStaticText(const mgVect3f& pos, int fontID, TextAlign ali
return (int)_staticMsgs.size() - 1;
}
-void TextManager::updateStaticText(int textID, const char* txt) {
+void TextManager::updateStaticText(int textID, const char *txt) {
assert(textID >= 0 && textID < (int)_staticMsgs.size());
_staticMsgs[textID].setText(txt);
}
-void TextManager::showText(const char* txt, const mgVect2f& pos, int fontID, int escapeID) {
+void TextManager::showText(const char *txt, const mgVect2f& pos, int fontID, int escapeID) {
assert(fontID >= 0 && fontID < (int)_fonts.size());
assert(escapeID >= 0 && escapeID < (int)_escapes.size());
@@ -222,7 +222,7 @@ TextManager::StaticTextPreset::StaticTextPreset() {
textID = 0;
}
-TextManager::StaticMessage::StaticMessage(Font* font, TextAlign align) {
+TextManager::StaticMessage::StaticMessage(Font *font, TextAlign align) {
_font = font;
_align = align;
_depth = 0.f;
@@ -235,7 +235,7 @@ void TextManager::StaticMessage::release() {
_objects.clear();
}
-void TextManager::StaticMessage::setText(const char* str) {
+void TextManager::StaticMessage::setText(const char *str) {
assert(_font);
if (!str) {
@@ -304,7 +304,7 @@ void TextManager::StaticMessage::update() {
}
}
-TextManager::Message::Message(Font* font)
+TextManager::Message::Message(Font *font)
: StaticMessage(font) {
_time = 0.f;
}
diff --git a/engines/qdengine/minigames/adv/TextManager.h b/engines/qdengine/minigames/adv/TextManager.h
index 3e28be0b795..7527b2c5e4d 100644
--- a/engines/qdengine/minigames/adv/TextManager.h
+++ b/engines/qdengine/minigames/adv/TextManager.h
@@ -38,9 +38,9 @@ public:
~TextManager();
int createStaticText(const mgVect3f& screen_pos, int fontID, TextAlign align);
- void updateStaticText(int textID, const char* txt);
+ void updateStaticText(int textID, const char *txt);
- void showText(const char* txt, const mgVect2f& pos, int fontID, int escapeID);
+ void showText(const char *txt, const mgVect2f& pos, int fontID, int escapeID);
void showNumber(int num, const mgVect2f& pos, int fontID, int escapeID);
void quant(float dt);
@@ -74,17 +74,17 @@ private:
char format[16];
int textID;
};
- bool getStaticPreset(StaticTextPreset& preset, const char* name) const;
+ bool getStaticPreset(StaticTextPreset& preset, const char *name) const;
struct StaticMessage {
- StaticMessage(Font* font = 0, TextAlign _align = ALIGN_CENTER);
+ StaticMessage(Font *font = 0, TextAlign _align = ALIGN_CENTER);
void release();
bool empty() const {
return _objects.empty();
}
- void setText(const char* str);
+ void setText(const char *str);
int _depth;
mgVect2f _pos;
@@ -104,7 +104,7 @@ private:
typedef Std::vector<StaticMessage> StaticMessages;
struct Message : public StaticMessage {
- Message(Font* font = 0);
+ Message(Font *font = 0);
void release();
void quant(float dt);
More information about the Scummvm-git-logs
mailing list