Last change
on this file since 11510 was
11336,
checked in by patricwi, 8 years ago
|
finished version of HUD and PickupSystem. crash bug remaining
|
File size:
878 bytes
|
Rev | Line | |
---|
[11264] | 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" |
---|
[11277] | 18 | #include "pickup/Pickup.h" |
---|
[11264] | 19 | |
---|
| 20 | namespace orxonox |
---|
| 21 | { |
---|
| 22 | class _OverlaysExport HUDPickupItem : public OrxonoxOverlay, public Tickable |
---|
| 23 | { |
---|
| 24 | public: |
---|
| 25 | HUDPickupItem(Context* context); |
---|
[11323] | 26 | Ogre::PanelOverlayElement* overlayElement_; |
---|
[11264] | 27 | virtual ~HUDPickupItem(); |
---|
[11336] | 28 | |
---|
[11314] | 29 | void initializeMaterial(const std::string& s, float x, float y); |
---|
[11325] | 30 | void hideMe(Pickupable* p, bool repaint); |
---|
[11264] | 31 | |
---|
[11336] | 32 | private: |
---|
[11264] | 33 | WeakPtr<Pawn> owner_; |
---|
| 34 | WeakPtr<Pickup> pickup_; |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | } |
---|
| 38 | |
---|
[11305] | 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.