From 3383e8be9001826bf0d09f1fb73ad5013cc8627e Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 24 Nov 2010 19:57:03 +0000 Subject: Initial commit --- Level.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Level.cpp (limited to 'Level.cpp') 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 + +#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"; +} -- cgit v1.2.3