Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/campaignHS15/src/orxonox/worldentities/ActionPoint.h @ 10844

Last change on this file since 10844 was 10844, checked in by gania, 8 years ago

same as above

File size: 3.3 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 *      Fabian 'x3n' Landau
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30    @file Attacher.h
31    @brief Definition of the Attacher class.
32    @ingroup Objects
33*/
34
35#ifndef _ActionPoint_H__
36#define _ActionPoint_H__
37
38#include "OrxonoxPrereqs.h"
39
40#include <list>
41#include <string>
42#include "core/XMLNameListener.h"
43#include "worldentities/StaticEntity.h"
44namespace orxonox
45{
46 
47    class _OrxonoxExport ActionPoint : public StaticEntity
48    {
49        public:
50            ActionPoint(Context* context);
51            virtual ~ActionPoint() {}
52
53            //----[XML data]----
54                virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
55                //----[Action data]----
56                    void setActionXML( std::string val);
57                    std::string getActionXML();
58                //----[/Action data]----
59                //----[Protect data]----
60                    void setProtectXML( std::string val);
61                    std::string getProtectXML();
62                //----[/Protect data]----
63                //----[Enemy data]----
64                    void setEnemyXML( std::string val);
65                    std::string getEnemyXML();
66                //----[/Enemy data]----
67                //----[ProtectMe data]----
68                    inline void setProtectMeXML(bool c)
69                    {
70                        this->protectMe_ = c;
71                    }
72                    inline bool getProtectMeXML ()
73                    {
74                        return this->protectMe_;
75                    }
76
77                //----[/ProtectMe data]----
78                //----[FightAll data]----
79                    inline void setFightAllXML(bool c)
80                    {
81                        this->fightAll_ = c;
82                    }
83                    inline bool getFightAllXML ()
84                    {
85                        return this->fightAll_;
86                    }
87                //----[/FightAll data]----
88            //----[/XML data]----
89
90            //----["Waypoints" data]----
91                void setTargetPosition(const Vector3& target);
92                Vector3 getTargetPosition ();
93            //----[/"Waypoints" data]----
94
95        private:
96           
97            std::string actionName_;
98            std::string protectName_;
99            std::string enemyName_;
100            bool protectMe_;
101            bool fightAll_;
102            Vector3 targetPosition_;
103    };
104}
105
106#endif /* _ActionPoint_H__ */
Note: See TracBrowser for help on using the repository browser.