Orxonox  0.0.5 Codename: Arcturus
DronePickup.h
Go to the documentation of this file.
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  * Lukas Gasser
24  * Co-authors:
25  * ...
26  *
27  */
28 
35 #ifndef _DronePickup_H__
36 #define _DronePickup_H__
37 
38 #include "pickup/PickupPrereqs.h"
39 
40 #include <string>
41 
42 #include "pickup/Pickup.h"
44 
45 namespace orxonox
46 {
47 
63  class _PickupExport DronePickup : public Pickup, public Tickable
64  {
65  public:
66 
67  DronePickup(Context* context);
68  virtual ~DronePickup();
69 
70  virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode);
71 
72  virtual void changedUsed(void);
73 
74  const std::string& getDroneTemplate() const;
75 
76  protected:
77  void setDroneTemplate(const std::string& templatename);
78 
79  private:
80  void initialize(void);
82  Pawn* carrierToPawnHelper(void);
83  };
84 }
85 
86 #endif // _DronePickup_H__
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
#define _PickupExport
Definition: PickupPrereqs.h:60
Declaration of the Pickup class.
Declaration of the Tickable interface.
::std::string string
Definition: gtest-port.h:756
xmlelement
Definition: Super.h:519
The DronePickup adds a Drone to the Pawn upon being picked up.
Definition: DronePickup.h:63
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Mode
Definition: CorePrereqs.h:102
Definition: Context.h:45
The Pickup class offers (useful) base functionality for a wide range of pickups.
Definition: Pickup.h:92
std::string droneTemplate_
The name of the template, based upon which the Drone is created.
Definition: DronePickup.h:81
Shared library macros, enums, constants and forward declarations for the questsystem module ...
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52