#pragma once #include // Standard-Vektor einschließen #include #include "./GameManager.h" #include "Node.h" using namespace std; #define SPTR boost::shared_ptr class HUD : public Node { public: struct Letter { IDirect3DTexture9* texture; float x, y; float centerX, centerY; float scale; float rotation; }; HUD(void); ~HUD(void); void generateHUD(); void setCrosshair(std::string crosshair, float scaleX, float scaleY); void setRadar(std::string radar, float scaleX, float scaleY, float RadarOffsetX, float RadarOffsetY); void setTextures(std::string texture0, std::string texture1, std::string texture2, std::string texture3, std::string texture4, float scaleUserPlayer, float scaleAIPlayer); float getScaleCrosshairX(); float getScaleCrosshairY(); float getScaleRadarX(); float getScaleRadarY(); float getRadarOffsetX(); float getRadarOffsetY(); float getScaleUserPlayer(); float getScaleAIPlayer(); void message(std::string _message, float _seconds, float _dt, bool _bHelp = false); void displayWin(float _seconds, float _dt); void displayLose(float _seconds, float _dt); void displayToasted(float _seconds, float _dt); void setTime(int minutes, int seconds); void setAmmo(int amount); std::vector Textures; std::vector YouWin; std::vector YouLose; std::vector Toasted; float messagetimer; float messagethreshold; float messagedt; std::wstring messagestring; float youwintimer; float youwinthreshold; float youwindt; float youlosetimer; float youlosethreshold; float youlosedt; float toastedtimer; float toastedthreshold; float toasteddt; int minutes; int seconds; int ammoAmount; bool bHelp; private: std::string crosshair; float scaleCrosshairX; float scaleCrosshairY; std::string radar; float scaleRadarX; float scaleRadarY; float RadarOffsetX; float RadarOffsetY; float scaleUserPlayer; float scaleAIPlayer; std::string texture0; std::string texture1; std::string texture2; std::string texture3; std::string texture4; };