return;
}
-#ifdef WARNINGS
- cerr << "ENTITY TYPE NOT SUPPORTED BY applyCollisionAt()!!" << endl;
-#endif
+ DPF(0, "ENTITY TYPE NOT SUPPORTED BY applyCollisionAt()!!");
}
void applyCollisionAt(Ball* b1, Ball* b2)
#include "../debug.h"
#include <iostream>
+using std::cerr;
+using std::cout;
+using std::endl;
+
#include <fstream>
#include <string>
#include "debug.h"
-/// ***** Private Method Headers *****
-/// ***** Private Variables *****
+#include <iostream>
+using std::cerr;
+using std::cout;
+using std::endl;
/// ***** Public Methods *****
void DPF(int level, const char* pstr)
{
- cout << pstr << endl;
+ //cout << pstr << endl;
}
/// ***** Private Methods *****
#ifndef DEBUG_H
#define DEBUG_H
-#include <iostream>
-using std::cerr;
-using std::cout;
-using std::endl;
-
+void DPF(int level, const char* pstr);
// comment out when not debugging
#define DEBUGGING
#define WARNINGS
// comment out to prevent FPS and UPS printing
-#define FPSUPS
-
-
-void DPF(int level, const char* pstr);
+//#define FPSUPS
#endif // DEBUG_H
}
}
-#ifdef WARNINGS
- cerr << "ENTITY TYPE NOT SUPPORTED BY addEntity()!!" << endl;
-#endif
+ DPF(0, "ENTITY TYPE NOT SUPPORTED BY addEntity()!!");
}
void manager::remove(Entity* e)
{
}
}
-#ifdef WARNINGS
- cerr << "ENTITY TYPE NOT SUPPORTED BY deleteEntity()!!" << endl;
-#endif
+ DPF(0, "ENTITY TYPE NOT SUPPORTED BY deleteEntity()!!");
}
void manager::handleInput()
effect::init();
-#ifdef DEBUGGING
- cout << "World Created" << endl;
-#endif
+ DPF(0, "World Created");
}
void game::clean()
#include "../mathw.h"
+#include <iostream>
+using std::cerr;
+using std::cout;
+using std::endl;
+
/// ***** Private Method Headers *****
void clean()
{
-#ifdef DEBUGGING
- cout << "Cleaning up" << endl;
-#endif
+ DPF(0, "Cleaning up");
cfg::clean();