pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src smallmap.cxx,1.20,1.21 smallmap.hxx,1


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src smallmap.cxx,1.20,1.21 smallmap.hxx,1.11,1.12
Date: 6 Oct 2002 23:14:21 -0000

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

Modified Files:
        smallmap.cxx smallmap.hxx 
Log Message:
- added pingus to the smallmap

Index: smallmap.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/smallmap.cxx,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- smallmap.cxx        6 Oct 2002 09:01:32 -0000       1.20
+++ smallmap.cxx        6 Oct 2002 23:14:19 -0000       1.21
@@ -225,11 +225,13 @@
 
   for(PinguIter i = pingus->begin(); i != pingus->end(); ++i)
     {
-      //FIXME: Replace this with put pixel
       x = static_cast<int>(x_pos + ((*i)->get_x() * width  / 
world->get_colmap()->get_width()));
       y = static_cast<int>(y_pos + ((*i)->get_y() * height / 
world->get_colmap()->get_height()));
 
-      CL_Display::draw_line(x, y, x, y-1, 1.0, 1.0, 0.0, 1.0);
+      //FIXME: Replace this with draw_pixel (only availabe in 0.7)
+      CL_Display::draw_line(x,   y, x,   y, 1.0, 1.0, 0.0, 1.0);
+      CL_Display::draw_line(x, y-1, x, y-1, 1.0, 1.0, 0.0, 1.0);
+      CL_Display::draw_line(x, y-2, x, y-2, 1.0, 1.0, 0.0, 1.0);
     }
 }
 

Index: smallmap.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/smallmap.hxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- smallmap.hxx        6 Oct 2002 09:01:32 -0000       1.11
+++ smallmap.hxx        6 Oct 2002 23:14:19 -0000       1.12
@@ -26,48 +26,47 @@
 class CL_Key;
 class Client;
 
-// Small Map
 /** This is the map that appears in the corner of the screen */
 class SmallMap : public GUI::Component
 {
 private:
   Client* client;
 
-  /// Graphic surface of the exit
+  /** Graphic surface of the exit */
   CL_Surface exit_sur;
 
-  /// Graphic surface of the entrance
+  /** Graphic surface of the entrance */
   CL_Surface entrance_sur;
 
-  /// Graphic surface for the generated rectanglar background of the small map
+  /** Graphic surface for the generated rectanglar background of the small map 
*/
   CL_Surface sur;
 
-  /// Horizontal position of the small map
+  /** Horizontal position of the small map */
   int x_pos;
 
-  /// Vertical position of the small map
+  /** Vertical position of the small map */
   int y_pos;
 
-  /// Width of the small map
+  /** Width of the small map */
   int width;
 
-  /// Height of the small map
+  /** Height of the small map */
   int height;
 
-  /// Max width of the small map
+  /** Max width of the small map */
   int max_width;
 
-  /// Max height of the small map
+  /** Max height of the small map */
   int max_height;
 
   /** Indicates whether the playfield should can be scrolled around depending 
       on the position of the cursor in the small map */
   bool scroll_mode;
 
-  /// Width of the rectangle displayed inside the small map
+  /** Width of the rectangle displayed inside the small map */
   int rwidth;
 
-  /// Height of the rectangle displayed inside the small map
+  /** Height of the rectangle displayed inside the small map */
   int rheight;
 
   bool has_focus;





reply via email to

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