1 | #pragma once
|
---|
2 | #include <vector> // Standard-Vektor einschließen
|
---|
3 | #include <boost/shared_ptr.hpp>
|
---|
4 | #include "./GameManager.h"
|
---|
5 | #include "Node.h"
|
---|
6 |
|
---|
7 | using namespace std;
|
---|
8 |
|
---|
9 | #define SPTR boost::shared_ptr
|
---|
10 |
|
---|
11 | class HUD : public Node
|
---|
12 | {
|
---|
13 | public:
|
---|
14 |
|
---|
15 | struct Letter
|
---|
16 | {
|
---|
17 | IDirect3DTexture9* texture;
|
---|
18 | float x, y;
|
---|
19 | float centerX, centerY;
|
---|
20 | float scale;
|
---|
21 | float rotation;
|
---|
22 | };
|
---|
23 |
|
---|
24 | HUD(void);
|
---|
25 | ~HUD(void);
|
---|
26 | void generateHUD();
|
---|
27 | void setCrosshair(std::string crosshair, float scaleX, float scaleY);
|
---|
28 | void setRadar(std::string radar, float scaleX, float scaleY, float RadarOffsetX, float RadarOffsetY);
|
---|
29 | void setTextures(std::string texture0, std::string texture1, std::string texture2, std::string texture3, std::string texture4, float scaleUserPlayer, float scaleAIPlayer);
|
---|
30 | float getScaleCrosshairX();
|
---|
31 | float getScaleCrosshairY();
|
---|
32 | float getScaleRadarX();
|
---|
33 | float getScaleRadarY();
|
---|
34 | float getRadarOffsetX();
|
---|
35 | float getRadarOffsetY();
|
---|
36 | float getScaleUserPlayer();
|
---|
37 | float getScaleAIPlayer();
|
---|
38 | void message(std::string _message, float _seconds, float _dt, bool _bHelp = false);
|
---|
39 | void displayWin(float _seconds, float _dt);
|
---|
40 | void displayLose(float _seconds, float _dt);
|
---|
41 | void displayToasted(float _seconds, float _dt);
|
---|
42 | void setTime(int minutes, int seconds);
|
---|
43 | void setAmmo(int amount);
|
---|
44 |
|
---|
45 | std::vector<IDirect3DTexture9*> Textures;
|
---|
46 | std::vector<Letter> YouWin;
|
---|
47 | std::vector<Letter> YouLose;
|
---|
48 | std::vector<Letter> Toasted;
|
---|
49 |
|
---|
50 | float messagetimer;
|
---|
51 | float messagethreshold;
|
---|
52 | float messagedt;
|
---|
53 | std::wstring messagestring;
|
---|
54 |
|
---|
55 | float youwintimer;
|
---|
56 | float youwinthreshold;
|
---|
57 | float youwindt;
|
---|
58 |
|
---|
59 | float youlosetimer;
|
---|
60 | float youlosethreshold;
|
---|
61 | float youlosedt;
|
---|
62 |
|
---|
63 | float toastedtimer;
|
---|
64 | float toastedthreshold;
|
---|
65 | float toasteddt;
|
---|
66 |
|
---|
67 | int minutes;
|
---|
68 | int seconds;
|
---|
69 |
|
---|
70 | int ammoAmount;
|
---|
71 |
|
---|
72 | bool bHelp;
|
---|
73 | private:
|
---|
74 |
|
---|
75 | std::string crosshair;
|
---|
76 | float scaleCrosshairX;
|
---|
77 | float scaleCrosshairY;
|
---|
78 |
|
---|
79 | std::string radar;
|
---|
80 | float scaleRadarX;
|
---|
81 | float scaleRadarY;
|
---|
82 | float RadarOffsetX;
|
---|
83 | float RadarOffsetY;
|
---|
84 | float scaleUserPlayer;
|
---|
85 | float scaleAIPlayer;
|
---|
86 |
|
---|
87 | std::string texture0;
|
---|
88 | std::string texture1;
|
---|
89 | std::string texture2;
|
---|
90 | std::string texture3;
|
---|
91 | std::string texture4;
|
---|
92 |
|
---|
93 |
|
---|
94 | };
|
---|