Attempted to make duplicate

This commit is contained in:
andreja6
2018-10-21 15:36:17 -07:00
parent 2725f6da58
commit e0ba49a03c
7 changed files with 58 additions and 41 deletions

View File

@@ -5,6 +5,7 @@ class Instance
{
public:
Instance(void);
Instance(const Instance&);
virtual ~Instance(void);
std::string name;
virtual void render(RenderDevice*);
@@ -17,6 +18,7 @@ public:
void addChild(Instance*);
void removeChild(Instance*);
Instance* getParent();
Instance* clone() const { return new Instance(*this); }
protected:
std::string className;
Instance* parent; // Another pointer.