[Top][All Lists]
[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, 07 Jan 2005 01:25:08 -0500 |
Index: usata2/src/object.hpp
diff -u usata2/src/object.hpp:1.7 usata2/src/object.hpp:1.8
--- usata2/src/object.hpp:1.7 Mon Jan 3 07:43:49 2005
+++ usata2/src/object.hpp Fri Jan 7 06:13:11 2005
@@ -10,7 +10,7 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: object.hpp,v 1.7 2005/01/03 07:43:49 skunix Exp $
+// $Id: object.hpp,v 1.8 2005/01/07 06:13:11 skunix Exp $
#ifndef USATA_GAME_OBJECT_HPP
@@ -20,6 +20,12 @@
#include <string>
#include "usata.hpp"
+
+// these need to go somewhere else
+#define USATA_DRAW_ORDER_LAST 255
+#define USATA_DRAW_ORDER_DEFAULT 100
+#define USATA_DRAW_ORDER_FIRST 0
+
namespace usata
{
@@ -41,6 +47,12 @@
virtual ResourceList
construct(const
ObjectProperties&) = 0;
};
+
+ struct Node
+ {
+ enum ChildOp{ CHILD_SHOW, CHILD_HIDE };
+ enum Query { QUERY_DRAW_ORDER };
+ };
class NodeInterface
{
@@ -49,7 +61,8 @@
virtual void add_child(const Object_sp&, std::string&
path){};
virtual void add_child(const Object_sp&){};
virtual Object_sp get_child(const std::string&)=0;
-
+ virtual bool child_op(Node::ChildOp,Object*){return
false;}
+ virtual bool query(Node::Query, int& i){return false;}
};
class Object
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/01
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/02
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/03
- [Usata-commits] Changes to usata2/src/object.hpp,
David Lau <=
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/09
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/10
- [Usata-commits] Changes to usata2/src/object.hpp, David Lau, 2005/01/10