changes to data formats: now using Packaged, implemented more things

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@9 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-07 13:12:15 +00:00
parent cdb4ecf031
commit 177f1a211f
9 changed files with 78 additions and 3 deletions
+5 -2
View File
@@ -12,6 +12,7 @@
#include <util/prec.hpp>
#include <util/reflect.hpp>
#include <util/action_stack.hpp>
#include <util/io/package.hpp>
DECLARE_POINTER_TYPE(Card);
DECLARE_POINTER_TYPE(Set);
@@ -20,7 +21,7 @@ DECLARE_POINTER_TYPE(Game);
// ----------------------------------------------------------------------------- : Set
/// A set of cards
class Set {
class Set : public Packaged {
public:
/// The game this set uses
GameP game;
@@ -52,8 +53,10 @@ class SetView : public ActionListener {
/// The set that is currently being viewed, should not be modified directly!
SetP set;
/// Called when another set is being viewn (using setSet)
/// Called when another set is being viewed (using setSet)
virtual void onChangeSet() {}
/// Called when just before another set is being viewed (using setSet)
virtual void onBeforeChangeSet() {}
};