[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/swf/PlaceObject2Tag.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/swf/PlaceObject2Tag.h |
Date: |
Mon, 21 May 2007 11:05:12 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/05/21 11:05:12
Modified files:
. : ChangeLog
server/swf : PlaceObject2Tag.h
Log message:
* server/swf/PlaceObject2Tag.h: add getDepth() method, more dox
and 3 new inspectors to know wheter it's a place, replace or
move
tag.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3292&r2=1.3293
http://cvs.savannah.gnu.org/viewcvs/gnash/server/swf/PlaceObject2Tag.h?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3292
retrieving revision 1.3293
diff -u -b -r1.3292 -r1.3293
--- ChangeLog 21 May 2007 08:42:04 -0000 1.3292
+++ ChangeLog 21 May 2007 11:05:11 -0000 1.3293
@@ -1,5 +1,11 @@
2007-05-21 Sandro Santilli <address@hidden>
+ * server/swf/PlaceObject2Tag.h: add getDepth() method, more dox
+ and 3 new inspectors to know wheter it's a place, replace or move
+ tag.
+
+2007-05-21 Sandro Santilli <address@hidden>
+
* libbase/log.h: removed useless 'while (0) {};' snippet from
IF_VERBOSE_ASCODING_ERRORS and IF_VERBOSE_MALFORMED_SWF
Index: server/swf/PlaceObject2Tag.h
===================================================================
RCS file: /sources/gnash/gnash/server/swf/PlaceObject2Tag.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/swf/PlaceObject2Tag.h 12 May 2007 06:50:37 -0000 1.4
+++ server/swf/PlaceObject2Tag.h 21 May 2007 11:05:12 -0000 1.5
@@ -18,7 +18,7 @@
//
//
-/* $Id: PlaceObject2Tag.h,v 1.4 2007/05/12 06:50:37 strk Exp $ */
+/* $Id: PlaceObject2Tag.h,v 1.5 2007/05/21 11:05:12 strk Exp $ */
#ifndef GNASH_SWF_PLACEOBJECT2TAG_H
#define GNASH_SWF_PLACEOBJECT2TAG_H
@@ -50,7 +50,14 @@
/// SWF Tag PlaceObject (4) or PlaceObject2 (9)
//
+/// The PlaceObject tags can be used to:
+/// - Place a character to a depth. See isPlace().
+/// - Transform the character placed at a depth. See isMove().
+/// - Replace a character at a depth. See isReplace().
///
+/// In any case a single Timeline depth is affected.
+/// Postcondition of this tag execution is presence of an instance
+/// at the affected depth. See getDepth().
///
class PlaceObject2Tag : public execute_tag
{
@@ -87,6 +94,25 @@
execute(m);
}
+ /// Return true if this tag places a character
+ bool isPlace() const { return m_place_type == PLACE; }
+
+ /// Return true if this tag replaces a character
+ bool isReplace() const { return m_place_type == REPLACE; }
+
+ /// Return true if this tag transforms a character
+ bool isMove() const { return m_place_type == MOVE; }
+
+ /// Return the depth affected by this tag
+ //
+ /// NOTE: the returned depth is always in the
+ /// static depth zone (character::staticDepthOffset .. -1)
+ ///
+ int getDepth() const
+ {
+ return m_depth;
+ }
+
private:
int m_tag_type;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog server/swf/PlaceObject2Tag.h,
Sandro Santilli <=