Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

visualization of pickup system initiated. next steps: add pickup icons when picked up

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
44namespace orxonox
45{
46    class _OverlaysExport HUDPickupSystem : public OrxonoxOverlay
47    {
48    public:
49        HUDPickupSystem(Context* context);
50        virtual ~HUDPickupSystem();
51
52        // virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
53        // virtual void changedOwner() override;
54        // virtual void changedOverlayGroup() override;
55        // virtual void changedVisibility() override;
56        // virtual void changedName() override;
57        // virtual void positionChanged() override;
58        // virtual void sizeChanged() override;
59    private:
60        void updatePickupList(std::vector<Pickup> picks);
61        void createPickupList();
62        void destroyAll();
63
64        Ogre::PanelOverlayElement* overlayElement_;
65        WeakPtr<Pawn> owner_;
66
67        std::vector<PickupRepresentation> pickupRepresentations_;
68    };
69}
Note: See TracBrowser for help on using the repository browser.