24 #ifndef DRAWABLE_UNIT_H_INCLUDED
25 #define DRAWABLE_UNIT_H_INCLUDED
34 namespace halo {
class manager; }
42 # include <SDL_types.h>
54 const std::vector<team> &
teams;
unit_drawer(display &thedisp, std::map< surface, SDL_Rect > &bar_rects)
const team & playing_team_ref
This class stores all the data for a single 'side' (in game nomenclature).
Encapsulates the map of the game.
const SDL_Rect & calculate_energy_bar(surface surf) const
Finds the start and end rows on the energy bar image.
GLclampf GLclampf GLclampf alpha
const std::vector< team > & teams
Encapsulates the map of the game.
const team & viewing_team_ref
const display_context & dc
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
void draw_bar(const std::string &image, int xpos, int ypos, const map_location &loc, size_t height, double filled, const SDL_Color &col, fixed_t alpha) const
draw a health/xp bar of a unit
this module manages the cache of images.
std::map< surface, SDL_Rect > & energy_bar_rects_
void redraw_unit(const unit &u) const
draw a unit.
GLsizei const GLcharARB ** string