____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

icons.cpp File Reference

The icons. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stratagus.h"
#include <string>
#include <vector>
#include <map>
#include "video.h"
#include "icons.h"
#include "player.h"
#include "ui.h"
#include "menus.h"

Go to the source code of this file.

Functions

void InitIcons (void)
 Init icons.
void LoadIcons (void)
 Load icons.
void CleanIcons (void)
 Cleanup icons.
void IconCclRegister (void)

Variables

static std::vector< CIcon * > AllIcons
 Vector of all icons.
std::map< std::string, CIcon * > Icons
 Map of ident to icon.


Detailed Description

The icons.

Definition in file icons.cpp.


Function Documentation

void CleanIcons ( void   ) 

Cleanup icons.

Clean up memory used by the icons.

Definition at line 160 of file icons.cpp.

References AllIcons, and Icons.

Referenced by CleanModules().

void IconCclRegister ( void   ) 

Register CCL features for icons.

Definition at line 215 of file icons.cpp.

Referenced by InitCcl().

void InitIcons ( void   ) 

Init icons.

Init the icons.

Add the short name and icon aliases to hash table.

Definition at line 136 of file icons.cpp.

Referenced by CreateGame(), and InitModules().

void LoadIcons ( void   ) 

Load icons.

Load the graphics for the icons.

Definition at line 143 of file icons.cpp.

References _C_, AllIcons, DebugPrint, CGraphic::File, CIcon::Frame, CIcon::G, CIcon::GetIdent(), CGraphic::Load(), CGraphic::NumFrames, and ShowLoadProgress().

Referenced by CreateGame(), and LoadModules().


Variable Documentation

std::vector<CIcon *> AllIcons [static]

Vector of all icons.

Definition at line 56 of file icons.cpp.

Referenced by CleanIcons(), LoadIcons(), and CIcon::New().

std::map<std::string, CIcon *> Icons

Map of ident to icon.

Definition at line 57 of file icons.cpp.

Referenced by CleanIcons(), CIcon::Get(), and CIcon::New().


Generated on Sat Feb 21 00:28:16 2009 for Bos Wars by  doxygen 1.5.6