00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef HUDMANAGER_H
00019 #define HUDMANAGER_H
00020
00021 #include <string>
00022 #include <list>
00023
00024 #include <SFML/Graphics.hpp>
00025
00026 #include "HUD-Element.hpp"
00027 #include "Enemy_Help.hpp"
00028 #include "Bitmapfont.hpp"
00029
00030 #include "Player.hpp"
00031 #include "Ship.hpp"
00032
00033
00037 class CHUDManager
00038 {
00039 std::list<AHUDElement*> m_Elemente;
00040 global_data_pointers m_data;
00041 sf::Sprite* m_Background;
00042 public:
00043 CHUDManager(){m_Background = new sf::Sprite;}
00044 void init(global_data_pointers pointers, CBitmapFont* bmFont);
00045 AHUDElement* registerHUD(int maxValue, const int* ActualValue, HUDType Type, int posX, int posY, int width, int height, int size = 15);
00046 AHUDElement* registerHUD(float maxValue, const float* ActualValue, HUDType Type, int posX, int posY, int width, int height, int size = 15);
00047 AHUDElement* registerHUD(const std::string* data, HUDType Type, int posX, int posY, CBitmapFont* bmFont, int fontsize = 15, int size = 138);
00048 std::string* registerHUD(int posX, int posY, CBitmapFont* bmFont, HUDType Type = SET_TEXT, int size = 15);
00049 AHUDElement* registerHUD(bool* play_Info, std::list<SInfo*>* Infos, CBitmapFont* bmFont);
00050 void draw();
00051 ~CHUDManager();
00052 };
00053
00054 #endif