summaryrefslogtreecommitdiff
path: root/Level.cpp
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-24 19:57:03 +0000
commit3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch)
tree27be0f78ab8672a7187d517c73b4ee22817369cc /Level.cpp
Initial commit
Diffstat (limited to 'Level.cpp')
-rw-r--r--Level.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/Level.cpp b/Level.cpp
new file mode 100644
index 0000000..a6cab97
--- /dev/null
+++ b/Level.cpp
@@ -0,0 +1,36 @@
+#include "Level.h"
+#include <iostream>
+
+#include "Monster.h"
+#include "Pickup.h"
+#include "Hazard.h"
+#include "Platform.h"
+
+Level::Level() {
+ std::cout << "Level::Level(): Level created.\n";
+}
+
+void Level::changeLevel(int levelNo) {
+ std::cout << "Level::changeLevel(): Loading level " << levelNo << ".\n";
+
+ // Creating some objects for fun/demonstration purposes
+ Monster monster1;
+ Pickup pickup1;
+ Hazard hazard1;
+ Platform platform1;
+
+ // Placing the player for fun/demonstration purposes
+ player.setX(0);
+ player.setY(0);
+
+ // Checking where the player is for fun/demonstration purposes
+ std::cout << "Level::changeLevel(): player is at " << player.getX() << ", " << player.getY() << ".\n";
+}
+
+void Level::move() {
+ //std::cout << "Level::move(): Moving level items.\n";
+}
+
+void Level::draw(SDL_Surface *screen) {
+ //std::cout << "Level::draw(): Drawing into the screen.\n";
+}