[colobot] 135/377: Create new file CBot.h. Included only useful interfaces.
Didier Raboud
odyx at moszumanska.debian.org
Wed Mar 30 13:34:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit ece0666954adae4e7b02bdec4ea8c9b16778740c
Author: Grunaka <dev at romainbreton.fr>
Date: Sun Nov 22 18:29:25 2015 +0100
Create new file CBot.h. Included only useful interfaces.
---
src/CBot/CBot.h | 8 ++++++++
src/common/restext.cpp | 2 +-
src/level/robotmain.cpp | 4 +---
src/object/implementation/programmable_impl.cpp | 2 +-
src/script/script.cpp | 4 +---
src/script/script.h | 3 +--
src/script/scriptfunc.cpp | 4 +---
src/script/scriptfunc.h | 2 +-
8 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/src/CBot/CBot.h b/src/CBot/CBot.h
index 868bf13..bea5ce7 100644
--- a/src/CBot/CBot.h
+++ b/src/CBot/CBot.h
@@ -18,6 +18,14 @@
*/
// Modules inlcude
+#include "CBot/resource.h"
+#include "CBot/CBotFileUtils.h"
+#include "CBot/CBotClass.h"
+#include "CBot/CBotToken.h"
+#include "CBot/CBotProgram.h"
+#include "CBot/CBotTypResult.h"
+
+#include "CBot/CBotVar/CBotVar.h"
// Local include
diff --git a/src/common/restext.cpp b/src/common/restext.cpp
index 67ac215..8b2cb43 100644
--- a/src/common/restext.cpp
+++ b/src/common/restext.cpp
@@ -22,7 +22,7 @@
#include "common/config.h"
-#include "CBot/resource.h"
+#include "CBot/CBot.h"
#include "app/input.h"
diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp
index e2c8290..5110749 100644
--- a/src/level/robotmain.cpp
+++ b/src/level/robotmain.cpp
@@ -19,9 +19,7 @@
#include "level/robotmain.h"
-#include "CBot/CBotFileUtils.h"
-// TODO must be replaced by CBot.h
-#include "CBot/CBotClass.h"
+#include "CBot/CBot.h"
#include "app/app.h"
#include "app/input.h"
diff --git a/src/object/implementation/programmable_impl.cpp b/src/object/implementation/programmable_impl.cpp
index 379929e..cea959c 100644
--- a/src/object/implementation/programmable_impl.cpp
+++ b/src/object/implementation/programmable_impl.cpp
@@ -40,7 +40,7 @@
#include "ui/controls/edit.h"
-#include "CBot/CBotFileUtils.h"
+#include "CBot/CBot.h"
#include <algorithm>
#include <iomanip>
diff --git a/src/script/script.cpp b/src/script/script.cpp
index 92c658f..5908d43 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -42,9 +42,7 @@
#include "ui/controls/interface.h"
#include "ui/controls/list.h"
-#include "CBot/CBotToken.h"
-#include "CBot/CBotVar/CBotVar.h"
-#include "CBot/CBotFileUtils.h"
+#include "CBot/CBot.h"
const int CBOT_IPF = 100; // CBOT: default number of instructions / frame
diff --git a/src/script/script.h b/src/script/script.h
index be3f055..7bf9b62 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -24,8 +24,7 @@
#pragma once
-// TODO replace by CBot.h
-#include "CBot/CBotProgram.h"
+#include "CBot/CBot.h"
#include <memory>
#include <string>
diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index 252f09d..b2fce1c 100644
--- a/src/script/scriptfunc.cpp
+++ b/src/script/scriptfunc.cpp
@@ -19,9 +19,7 @@
#include "script/scriptfunc.h"
-// TODO must be replaced by CBot.h
-#include "CBot/CBotClass.h"
-#include "CBot/CBotVar/CBotVar.h"
+#include "CBot/CBot.h"
#include "app/app.h"
diff --git a/src/script/scriptfunc.h b/src/script/scriptfunc.h
index 13c4889..e739ecd 100644
--- a/src/script/scriptfunc.h
+++ b/src/script/scriptfunc.h
@@ -24,7 +24,7 @@
#pragma once
-#include "CBot/CBotTypResult.h"
+#include "CBot/CBot.h"
#include "common/error.h"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list