Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/shader/src/orxonox/objects/weapon/BulletManager.h @ 2518

Last change on this file since 2518 was 1505, checked in by rgrieder, 16 years ago

f* svn: It doesn't even inform you if you attempt to set a non existing property. It is svn:eol-style and not eol-style when using the command by the way…

  • Property svn:eol-style set to native
File size: 1.8 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 modify
9 *   it under the terms of the GNU General Public License as published by
10 *   the Free Software Foundation, either version 3 of the License, or
11 *   (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, see <http://www.gnu.org/licenses/>.
20 *
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29
30#ifndef _BulletManager_H__
31#define _BulletManager_H__
32
33#include "OrxonoxPrereqs.h"
34
35#include <string>
36
37#include <OgrePrerequisites.h>
38
39#include "network/Synchronisable.h"
40#include "tinyxml/tinyxml.h"
41#include "core/BaseObject.h"
42#include "core/Tickable.h"
43
44namespace orxonox {
45  class _OrxonoxExport BulletManager : public BaseObject, public network::Synchronisable, public Tickable
46  {
47  public:
48    BulletManager();
49          virtual ~BulletManager();
50
51    void addBullet(Bullet*);
52
53    int getAmmunitionID(const std::string&);
54
55    int getNumberOfAmmos();
56
57    virtual void tick(float dt);
58
59    inline virtual void loadParams(TiXmlElement* xmlElem) { BaseObject::loadParams(xmlElem); };
60
61  protected:
62    inline bool create() { return Synchronisable::create(); }
63    void registerAllVariables();
64
65    // Bullet array
66          Bullet **bullets_;
67          int bulletsSize_;
68          int bulletsIndex_;
69  };
70}
71
72#endif /* _BulletManager_H__ */
Note: See TracBrowser for help on using the repository browser.