--- /dev/null
+/*
+ * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "debug.h"
+
+/// ***** Private Method Headers *****
+/// ***** Private Variables *****
+
+/// ***** Public Methods *****
+
+void DPF(int level, const char* pstr)
+{
+ cout << pstr << endl;
+}
+
+/// ***** Private Methods *****
FILES += collisionManager.cpp
FILES += CollisionInfo.cpp
+FILES += debug.cpp
+
FILES := $(addprefix ${CURDIR},${FILES})
SRCS += ${FILES}
installSignal();
graphics::init();
-
-#ifdef DEBUGGING
- cout << "Graphics initialized" << endl;
- cout << "Graphics initialized2" << endl;
-#endif
+ DPF(0, "Graphics initialized");
game::init();
-
-#ifdef DEBUGGING
- cout << "Game initialized" << endl;
-#endif
+ DPF(0, "Game initialized");
input::init();
-
-#ifdef DEBUGGING
- cout << "Input initialized" << endl;
-#endif
+ DPF(0, "Input initialized");
cfg::init();
+ DPF(0, "Configs initialized");
-#ifdef DEBUGGING
- cout << "Configs initialized" << endl;
-#endif
-
-#ifdef DEBUGGING
- cout << "Initialization Complete" << endl;
-#endif
+ DPF(0, "Initialization Complete");
}
void clean()