Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/orxokart/ShroomHUD.h @ 12219

Last change on this file since 12219 was 12144, checked in by ottka, 6 years ago

New HUDs and Start

File size: 1.6 KB
Line 
1/*
2 *
3 *
4 *   ORXONOX - the hottest 3D action shooter ever to exist
5 *                    > www.orxonox.net <
6 *
7 *
8 *   License notice:
9 *
10 *   This program is free software; you can redistribute it and/or
11 *   modify it under the terms of the GNU General Public License
12 *   as published by the Free Software Foundation; either version 2
13 *   of the License, or (at your option) any later version.
14 *
15 *   This program is distributed in the hope that it will be useful,
16 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *   GNU General Public License for more details.
19 *
20 *   You should have received a copy of the GNU General Public License
21 *   along with this program; if not, write to the Free Software
22 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23 *
24 *   Author:
25 *      Cyrill Burgener
26 *
27 */
28
29 /**
30    @file ShroomHUD.h
31    @brief Declaration of the ShroomHUD class.
32*/
33
34#ifndef _ShroomHUD_H__
35#define _ShroomHUD_H__
36
37#include "OrxoKartPrereqs.h"
38
39#include "util/OgreForwardRefs.h"
40#include "overlays/OrxonoxOverlay.h"
41#include "tools/interfaces/Tickable.h"
42
43namespace orxonox
44{
45    class _OrxoKartExport ShroomHUD : public OrxonoxOverlay , public Tickable
46    {
47    public:
48        ShroomHUD(Context* context);
49        virtual ~ShroomHUD();
50
51        virtual void tick(float dt) override;
52        virtual void changedOwner() override;
53
54        void setShroomCount(int shroomCount);
55
56    private:
57        OrxoKart* orxoKartGame_;
58        Ogre::PanelOverlayElement* panel_;
59        int shroomCount_;
60    };
61}
62#endif /* _ShroomHUD_H__ */
Note: See TracBrowser for help on using the repository browser.