pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src/editor editorobj_group.cxx,1.8,1.9 ed


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src/editor editorobj_group.cxx,1.8,1.9 editorobj_group.hxx,1.14,1.15
Date: 5 Mar 2003 22:18:53 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv25364/editor

Modified Files:
        editorobj_group.cxx editorobj_group.hxx 
Log Message:
- some additions to groups in the editor
- water on smallmap now blue


Index: editorobj_group.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editorobj_group.cxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- editorobj_group.cxx 5 Mar 2003 19:13:59 -0000       1.8
+++ editorobj_group.cxx 5 Mar 2003 22:18:51 -0000       1.9
@@ -188,4 +188,70 @@
   return false;
 }
 
+void
+EditorObjGroup::vertical_flip ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->vertical_flip();
+    }
+}
+
+void 
+EditorObjGroup::horizontal_flip ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->horizontal_flip();
+    }
+}
+
+void 
+EditorObjGroup::rotate_90 ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->rotate_90();
+    }
+}
+
+void 
+EditorObjGroup::rotate_270 ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->rotate_270();
+    }
+}
+
+void
+EditorObjGroup::make_larger ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->make_larger();
+    }
+}
+
+void
+EditorObjGroup::make_smaller ()
+{
+  for(std::vector<EditorObj*>::iterator i = objs.begin();
+      i != objs.end();
+      ++i)
+    {
+      (*i)->make_smaller();
+    }
+}
+
 /* EOF */

Index: editorobj_group.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/editorobj_group.hxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- editorobj_group.hxx 5 Mar 2003 19:13:59 -0000       1.14
+++ editorobj_group.hxx 5 Mar 2003 22:18:51 -0000       1.15
@@ -60,6 +60,14 @@
 
   unsigned int size () { return objs.size (); }
   
+  void vertical_flip ();
+  void horizontal_flip ();
+  void rotate_90 ();
+  void rotate_270 ();
+
+  void make_larger ();
+  void make_smaller ();
+
   EditorNS::PropertyFrame* get_gui_dialog(EditorNS::Editor*) { return 0; }
 private:
   EditorObjGroup (const EditorObjGroup&);





reply via email to

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