[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor selection.cxx,1.5,1.6
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor selection.cxx,1.5,1.6 |
Date: |
2 Jul 2002 08:58:25 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv29909/editor
Modified Files:
selection.cxx
Log Message:
unified method formatting
Index: selection.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/selection.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- selection.cxx 1 Jul 2002 18:36:40 -0000 1.5
+++ selection.cxx 2 Jul 2002 08:58:22 -0000 1.6
@@ -26,52 +26,61 @@
using namespace Pingus;
using namespace std;
-void EditorSelection::move(float x, float y) {
+void
+EditorSelection::move(float x, float y) {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
(*it)->set_position_offset(CL_Vector(x, y));
}
-void EditorSelection::move(const CL_Vector& pos) {
+void
+EditorSelection::move(const CL_Vector& pos) {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
(*it)->set_position_offset(pos);
}
-void EditorSelection::drag() {
+void
+EditorSelection::drag() {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
(*it)->drag();
}
-void EditorSelection::drop() {
+void
+EditorSelection::drop() {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
(*it)->drop();
}
-void EditorSelection::add(EditorObj* obj) {
+void
+EditorSelection::add(EditorObj* obj) {
obj_list.push_back(obj);
}
-void EditorSelection::add(vector<EditorObj*> objs) {
+void
+EditorSelection::add(vector<EditorObj*> objs) {
obj_list.insert(obj_list.end(), objs.begin(), objs.end());
}
-void EditorSelection::remove(EditorObj* obj) {
+void
+EditorSelection::remove(EditorObj* obj) {
obj_list.erase(std::find(obj_list.begin(), obj_list.end(), obj));
}
-void EditorSelection::raise() {
+void
+EditorSelection::raise() {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
object_manager->raise_obj(*it);
}
-void EditorSelection::lower() {
+void
+EditorSelection::lower() {
for (vector<EditorObj*>::iterator it = obj_list.begin(); it !=
obj_list.end(); it++)
object_manager->lower_obj(*it);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor selection.cxx,1.5,1.6,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.19,1.20 editor_groundpiece_obj.cxx,1.7,1.8 editor_groundpiece_obj.hxx,1.6,1.7 editorobj.hxx,1.8,1.9 editorobj_group.cxx,1.3,1.4 editorobj_group.hxx,1.6,1.7 object_manager.cxx,1.16,1.17 object_manager.hxx,1.9,1.10 plfobj.cxx,1.4,1.5 plfobj.hxx,1.5,1.6 selection.cxx,1.4,1.5 selection.hxx,1.4,1.5 start_pos.cxx,1.3,1.4 start_pos.hxx,1.3,1.4 weather_obj.cxx,1.3,1.4 weather_obj.hxx,1.3,1.4
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.16,1.17 editor.hxx,1.7,1.8 editor_event.cxx,1.20,1.21 object_manager.cxx,1.17,1.18 object_manager.hxx,1.10,1.11 selection.cxx,1.6,1.7 selection.hxx,1.5,1.6
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor_event.cxx,1.19,1.20 editor_groundpiece_obj.cxx,1.7,1.8 editor_groundpiece_obj.hxx,1.6,1.7 editorobj.hxx,1.8,1.9 editorobj_group.cxx,1.3,1.4 editorobj_group.hxx,1.6,1.7 object_manager.cxx,1.16,1.17 object_manager.hxx,1.9,1.10 plfobj.cxx,1.4,1.5 plfobj.hxx,1.5,1.6 selection.cxx,1.4,1.5 selection.hxx,1.4,1.5 start_pos.cxx,1.3,1.4 start_pos.hxx,1.3,1.4 weather_obj.cxx,1.3,1.4 weather_obj.hxx,1.3,1.4
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.16,1.17 editor.hxx,1.7,1.8 editor_event.cxx,1.20,1.21 object_manager.cxx,1.17,1.18 object_manager.hxx,1.10,1.11 selection.cxx,1.6,1.7 selection.hxx,1.5,1.6
- Index(es):