Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.h @ 11325

Last change on this file since 11325 was 11325, checked in by patricwi, 7 years ago

visualization finished, bug when ending or reloading the level

File size: 1.5 KB
Line 
1
2#ifndef _HUDPickupItem_H__
3#define _HUDPickupItem_H__
4
5#include "overlays/OverlaysPrereqs.h"
6
7#include <map>
8#include <vector>
9#include <string>
10
11#include <OgreOverlayManager.h>
12#include <OgrePanelOverlayElement.h> 
13
14#include "overlays/OrxonoxOverlay.h"
15#include "tools/interfaces/Tickable.h"
16#include "worldentities/pawns/Pawn.h"
17#include "overlays/OverlayGroup.h"
18#include "pickup/Pickup.h"
19
20namespace orxonox
21{
22    class _OverlaysExport HUDPickupItem : public OrxonoxOverlay, public Tickable
23    {
24    public:
25        HUDPickupItem(Context* context);
26        Ogre::PanelOverlayElement* overlayElement_;
27        virtual ~HUDPickupItem();
28
29        // virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
30        // virtual void tick(float dt) override;
31        // virtual void changedOwner() override;
32        // virtual void changedOverlayGroup() override;
33        // virtual void changedVisibility() override;
34        // virtual void changedName() override;
35        // virtual void positionChanged() override;
36        // virtual void sizeChanged() override;
37
38        // void setPickup(Pickup* pickup); 
39        void initializeMaterial(const std::string& s, float x, float y); 
40        void hideMe(Pickupable* p, bool repaint); 
41
42    private:
43        // void createHUDChilds();
44        // void positionHUDChilds();
45        // void destroyHUDChilds();
46        // void updateWeaponModeList();
47        // void updateSize();
48        // void updatePosition();
49
50       
51        WeakPtr<Pawn> owner_;
52        WeakPtr<Pickup> pickup_;
53
54    };
55}
56
57#endif
Note: See TracBrowser for help on using the repository browser.