pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src entrance.cxx,1.5,1.6 pingu.cxx,1.22,1


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src entrance.cxx,1.5,1.6 pingu.cxx,1.22,1.23 pingu.hxx,1.13,1.14
Date: 4 Sep 2002 22:10:49 -0000

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

Modified Files:
        entrance.cxx pingu.cxx pingu.hxx 
Log Message:
sprites are now animated again

Index: entrance.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/entrance.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- entrance.cxx        4 Sep 2002 19:40:19 -0000       1.5
+++ entrance.cxx        4 Sep 2002 22:10:47 -0000       1.6
@@ -108,7 +108,8 @@
 {
   if (!surface) 
     {
-      std::cout << "Entrance::draw (GraphicContext& gc): entrance without a 
surface?!" << std::endl;
+      // Entrances have only a surface for historical reasons
+      //std::cout << "Entrance::draw (GraphicContext& gc): entrance without a 
surface?!" << std::endl;
       return;
     }
 

Index: pingu.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu.cxx,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- pingu.cxx   4 Sep 2002 20:30:28 -0000       1.22
+++ pingu.cxx   4 Sep 2002 22:10:47 -0000       1.23
@@ -77,10 +77,31 @@
 }
 
 void
+Pingu::set_x (float x)
+{
+  //std::cout << "Pingu::set_x (" << x << ")" << std::endl;
+  pos_x = x; 
+}
+  
+void
+Pingu::set_y (float y)
+{ 
+  //std::cout << "Pingu::set_y (" << y << ")" << std::endl;
+  pos_y = y; 
+}
+
+void
+Pingu::set_pos (float x, float y)
+{
+  set_x (x);
+  set_y (y);
+}
+
+void
 Pingu::set_pos (const CL_Vector& arg_pos)
 {
-  pos_x = arg_pos.x;
-  pos_y = arg_pos.y;
+  set_x (arg_pos.x);
+  set_y (arg_pos.y);
 }
 
 void

Index: pingu.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/pingu.hxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- pingu.hxx   4 Sep 2002 20:30:28 -0000       1.13
+++ pingu.hxx   4 Sep 2002 22:10:47 -0000       1.14
@@ -124,11 +124,11 @@
   int  set_id (int);
   
   /// Set the pingu to the given coordinates
-  void set_pos (float x, float y) { pos_x = x; pos_y = y; }
+  void set_pos (float x, float y);
 
-  void set_x (float x) { pos_y = x; }
+  void set_x (float x);
   
-  void set_y (float y) { pos_y = y; }
+  void set_y (float y);
 
   /// Set the pingu to the given coordinates
   void set_pos (const CL_Vector& arg_pos);





reply via email to

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