some cleanups and added some comment
This commit is contained in:
parent
d167945df2
commit
277820f09b
2 changed files with 10 additions and 6 deletions
|
@ -1437,7 +1437,6 @@ void display::draw_tile(const gamemap::location &loc, const SDL_Rect &clip_rect)
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
int xpos = int(get_location_x(loc));
|
||||
int ypos = int(get_location_y(loc));
|
||||
|
||||
|
@ -1603,7 +1602,7 @@ void display::draw_tile(const gamemap::location &loc, const SDL_Rect &clip_rect)
|
|||
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)
|
||||
|
|
|
@ -233,12 +233,17 @@ private:
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue