_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

icons.cpp File Reference
#include "stratagus.h"
#include "icons.h"
#include "menus.h"
#include "player.h"
#include "translate.h"
#include "ui.h"
#include "unit.h"
#include "video.h"
#include <map>

icons.cpp - The icons.

typedef std::map< std::string, CIcon * > IconMap
 
static IconMap Icons
 
static void ApplyPaletteSwaps (const std::vector< PaletteSwap > &swaps, const CUnit &unit, CGraphic *graphic, bool def=false)
 
static void DrawByHealthIcon (const CIcon *icon, const std::vector< CPlayerColorGraphic * > &graphics, const ButtonStyle &style, unsigned flags, const PixelPos &pos, const std::string &text, const CUnit &unit, const std::vector< PaletteSwap > &swaps)
 
void LoadIcons ()
 
void CleanIcons ()
 Load icons. More...
 

Typedef Documentation

◆ IconMap

typedef std::map<std::string, CIcon *> IconMap

Function Documentation

◆ ApplyPaletteSwaps()

static void ApplyPaletteSwaps ( const std::vector< PaletteSwap > &  swaps,
const CUnit unit,
CGraphic graphic,
bool  def = false 
)
static

◆ CleanIcons()

void CleanIcons ( )

Load icons.

Clean up memory used by the icons.

◆ DrawByHealthIcon()

static void DrawByHealthIcon ( const CIcon icon,
const std::vector< CPlayerColorGraphic * > &  graphics,
const ButtonStyle style,
unsigned  flags,
const PixelPos pos,
const std::string &  text,
const CUnit unit,
const std::vector< PaletteSwap > &  swaps 
)
static

◆ LoadIcons()

void LoadIcons ( )

Load the graphics for the icons.

Variable Documentation

◆ Icons

IconMap Icons
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.