aboutsummaryrefslogtreecommitdiff
path: root/saga/actionmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'saga/actionmap.h')
-rw-r--r--saga/actionmap.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/saga/actionmap.h b/saga/actionmap.h
index 05c768df7f..782f6ffe91 100644
--- a/saga/actionmap.h
+++ b/saga/actionmap.h
@@ -38,16 +38,27 @@ struct R_ACTIONMAP_ENTRY {
R_POINT *pt_tbl;
};
-struct R_ACTIONMAP_INFO {
- int init;
- int exits_loaded;
- int n_exits;
- R_ACTIONMAP_ENTRY *exits_tbl;
- const byte *exmap_res;
- size_t exmap_res_len;
-};
+class ActionMap {
+ public:
+ int reg(void);
+ ActionMap(void);
+
+ int load(const byte *exmap_res, size_t exmap_res_len);
+ int draw(R_SURFACE *ds, int color);
+
+ int freeMap(void);
+ int shutdown(void);
-void CF_action_info(int argc, char *argv[], void *refCon);
+ void actionInfo(int argc, char *argv[]);
+
+private:
+ bool _initialized;
+ int _exits_loaded;
+ int _n_exits;
+ R_ACTIONMAP_ENTRY *_exits_tbl;
+ const byte *_exmap_res;
+ size_t _exmap_res_len;
+};
} // End of namespace Saga