____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
#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. | |
Definition in file icons.cpp.
| 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 | ) |
| 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().
Vector of all icons.
Definition at line 56 of file icons.cpp.
Referenced by CleanIcons(), LoadIcons(), and CIcon::New().
Map of ident to icon.
Definition at line 57 of file icons.cpp.
Referenced by CleanIcons(), CIcon::Get(), and CIcon::New().
1.5.6