usata-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Usata-commits] Changes to usata2/src/object.hpp


From: David Lau
Subject: [Usata-commits] Changes to usata2/src/object.hpp
Date: Fri, 31 Dec 2004 01:53:03 -0500

Index: usata2/src/object.hpp
diff -u usata2/src/object.hpp:1.2 usata2/src/object.hpp:1.3
--- usata2/src/object.hpp:1.2   Thu Dec 30 20:14:57 2004
+++ usata2/src/object.hpp       Fri Dec 31 06:34:14 2004
@@ -10,7 +10,7 @@
 // included in the software distribution, or visit
 // http://www.fsf.org/licenses/gpl.html.
 //
-// $Id: object.hpp,v 1.2 2004/12/30 20:14:57 skunix Exp $
+// $Id: object.hpp,v 1.3 2004/12/31 06:34:14 skunix Exp $
 
 
 #ifndef USATA_GAME_OBJECT_HPP
@@ -34,23 +34,34 @@
        class Object;
        typedef boost::shared_ptr<Object> Object_sp;
 
-       class Object
+       class GCInterface
        {
                public:
                        virtual void    realize(Usata&, const Object_sp& ) = 0;
-
                        virtual ResourceList 
-                                                       construct(const 
ObjectProperties&)=0;
+                                                       construct(const 
ObjectProperties&) = 0;
+       };
+       
+       class NodeInterface
+       {
+               public:
+                       static  std::string NodePathPop(std::string&);
+                       virtual void add_child(const Object_sp&, std::string& 
path){};
+                       virtual Object_sp get_child(const std::string&)=0;
+       };
+
+       class Object
+       {
+               public:
                        virtual void    update(void) = 0;
                        virtual void    draw (void) = 0;
                        virtual                 ~Object(){};
 
                        virtual std::string name()=0;
-                       static  std::string NodePathPop(std::string&);
-                       virtual void add_child(Object_sp){};
-                       virtual Object_sp get_child(const std::string&){};
-                       
-       };
+               };
+
+
+       
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]