Author: mordante
Date: Sun May 27 10:23:22 2007
New Revision: 17893
URL: http://svn.gna.org/viewcvs/wesnoth?rev=17893&view=rev
Log:
some cleanups and added some comment
Modified:
trunk/src/display.cpp
trunk/src/display.hpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=17893&r1=17892&r2=17893&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Sun May 27 10:23:22 2007
@@ -1437,7 +1437,6 @@
return;
}
-
int xpos = int(get_location_x(loc));
int ypos = int(get_location_y(loc));
@@ -1603,7 +1602,7 @@
update_rect(xpos,ypos,zoom_,zoom_);
}
-void display::draw_enemies_reach(unsigned int num, int xloc, int yloc)
+void display::draw_enemies_reach(const unsigned int num, const int xloc, const
int yloc)
{
// only one can reach, don't number it
if (num == 1)
Modified: trunk/src/display.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.hpp?rev=17893&r1=17892&r2=17893&view=diff
==============================================================================
--- trunk/src/display.hpp (original)
+++ trunk/src/display.hpp Sun May 27 10:23:22 2007
@@ -233,12 +233,17 @@
void draw_terrain_on_tile(const gamemap::location& loc, image::TYPE
image_type, ADJACENT_TERRAIN_TYPE type);
-
gui::button::TYPE string_to_button_type(std::string type);
- // void draw_tile_adjacent(int x, int y, image::TYPE image_type,
ADJACENT_TERRAIN_TYPE type);
-
- void draw_enemies_reach(unsigned int num, int xloc, int yloc);
+ /**
+ * Used to draw the number of enemies which can reach a location.
+ *
+ * @param num number of enemies which can reach the location
+ * If num == 1 nothing is drawn
+ * @paream xloc the on screen x position in pixels
+ * @param yloc the on screen y position in pixels
+ */
+ void draw_enemies_reach(const unsigned int num, const int xloc, const
int yloc);
// event raised when the map is being scrolled
mutable events::generic_event _scroll_event;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits