Revision: 7730
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7730&view=rev
Author:   asadat
Date:     2009-05-28 00:46:01 +0000 (Thu, 28 May 2009)

Log Message:
-----------
added a getter method in Model class to access model type and SayString

Modified Paths:
--------------
    code/stage/trunk/libstage/stage.hh

Modified: code/stage/trunk/libstage/stage.hh
===================================================================
--- code/stage/trunk/libstage/stage.hh  2009-05-27 19:42:15 UTC (rev 7729)
+++ code/stage/trunk/libstage/stage.hh  2009-05-28 00:46:01 UTC (rev 7730)
@@ -806,7 +806,10 @@
         void Save( Worldfile* wf, int section );
         
   public:
-        
+       
+    /** get the children of the this element */
+    GList* GetChildren(){ return children;}
+     
     /** recursively call func( model, arg ) for each descendant */
     void ForEachDescendant( stg_model_callback_t func, void* arg );
         
@@ -1874,6 +1877,9 @@
         WorldGui* world_gui; //pointer to the GUI world - NULL if running in 
non-gui mode
 
   public:
+       
+         stg_model_type_t GetModelType(){return type;}
+        const char* GetSayString(){return say_string;}
 
         Visibility vis;
 
@@ -2038,7 +2044,7 @@
         void LoadDataBaseEntries( Worldfile* wf, int entity );
         
   public:
-
+               
         virtual void PushColor( stg_color_t col )
         { world->PushColor( col ); }
        


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to