summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/engine.h b/src/engine.h
index 48015b89..f5b24869 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -81,16 +81,42 @@ char get_y_offset(char, char);
/**
* Game engine that does the main drawing.
*/
-class Engine {
- private:
- Spriteset *emotionset, *npcset, *weaponset, *itemset;
-
+class Engine
+{
public:
+ /**
+ * Constructor.
+ */
Engine();
+
+ /**
+ * Destructor.
+ */
~Engine();
+ /**
+ * Returns the currently active map.
+ */
+ Map *getCurrentMap();
+
+ /**
+ * Sets the currently active map.
+ */
+ void setCurrentMap(Map *newMap);
+
+ /**
+ * Performs engine logic.
+ */
void logic();
+
+ /**
+ * Draws everything on the screen.
+ */
void draw();
+
+ private:
+ Spriteset *emotionset, *npcset, *weaponset, *itemset;
+ Map *mCurrentMap;
};
#endif