Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/objects/weapon/WeaponStation.h @ 1209

Last change on this file since 1209 was 1062, checked in by rgrieder, 17 years ago
  • changed header file inclusion order
File size: 1.5 KB
RevLine 
[668]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
[1056]3 *                    > www.orxonox.net <
[668]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
[673]30#ifndef _WeaponStation_H__
31#define _WeaponStation_H__
[668]32
[1062]33#include "OrxonoxPrereqs.h"
34
[668]35#include <OgrePrerequisites.h>
36
37
38namespace orxonox {
[729]39  class _OrxonoxExport WeaponStation
[668]40  {
41  public:
42    WeaponStation(int slotSize);
43          ~WeaponStation();
44
45    bool addWeapon(BaseWeapon*);
46
47    //bool removeCurrentWeapon();
48
49    // TODO: access every weapon by name
50    BaseWeapon* selectWeapon(int slotNumber);
51
52  protected:
53
54  public:
55
56  protected:
57    // slot management
58    BaseWeapon **slots_;
59    BaseWeapon **selectedSlot_;
60    int lastActiveSlotIndex_;
61    int stationSize_;
62
63  };
64}
65
[673]66#endif /* _WeaponStation_H__ */
Note: See TracBrowser for help on using the repository browser.