Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.h @ 11293

Last change on this file since 11293 was 11293, checked in by patricwi, 8 years ago

improvements on pickup system

File size: 2.1 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Patrick Wintermeyer
24 *   Co-authors:
25 *      ...
26 *
27 */
28#include "overlays/OverlaysPrereqs.h"
29
30#include <map>
31#include <vector>
32#include <string>
33
34
35#include <OgreOverlayManager.h>
36#include <OgrePanelOverlayElement.h> 
37
38#include "overlays/OrxonoxOverlay.h"
39#include "worldentities/pawns/Pawn.h"
40#include "overlays/OverlayGroup.h"
41#include "pickup/Pickup.h"
42#include "pickup/PickupRepresentation.h"
43#include "HUDPickupItem.h"
44
45namespace orxonox
46{
47    class _OverlaysExport HUDPickupSystem : public OrxonoxOverlay
48    {
49    public:
50        HUDPickupSystem(Context* context);
51        virtual ~HUDPickupSystem();
52
53        // virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
54        // virtual void changedOwner() override;
55        // virtual void changedOverlayGroup() override;
56        // virtual void changedVisibility() override;
57        // virtual void changedName() override;
58        // virtual void positionChanged() override;
59        // virtual void sizeChanged() override;
60    private:
61        void updatePickupList(std::vector<WeakPtr<Pickup>> picks);
62        void createPickupList();
63        void destroyAll();
64
65        Ogre::PanelOverlayElement* overlayElement_;
66        WeakPtr<Pawn> owner_;
67
68        std::vector<PickupRepresentation> pickupRepresentations_;
69    };
70}
Note: See TracBrowser for help on using the repository browser.