/* * ORXONOX - the hottest 3D action shooter ever to exist * > www.orxonox.net < * * * License notice: * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Author: * Fabian 'x3n' Landau * Co-authors: * ... * */ /** @file Attacher.h @brief Definition of the Attacher class. @ingroup Objects */ #ifndef _ActionPoint_H__ #define _ActionPoint_H__ #include "OrxonoxPrereqs.h" #include #include #include "core/XMLNameListener.h" #include "worldentities/StaticEntity.h" namespace orxonox { class _OrxonoxExport ActionPoint : public StaticEntity { public: ActionPoint(Context* context); virtual ~ActionPoint() {} //----[XML data]---- virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //----[Action data]---- void setActionXML( std::string val); std::string getActionXML(); //----[/Action data]---- //----[Protect data]---- void setProtectXML( std::string val); std::string getProtectXML(); //----[/Protect data]---- //----[Enemy data]---- void setEnemyXML( std::string val); std::string getEnemyXML(); //----[/Enemy data]---- //----[ProtectMe data]---- inline void setProtectMeXML(bool c) { this->protectMe_ = c; } inline bool getProtectMeXML () { return this->protectMe_; } //----[/ProtectMe data]---- //----[FightAll data]---- inline void setFightAllXML(bool c) { this->fightAll_ = c; } inline bool getFightAllXML () { return this->fightAll_; } //----[/FightAll data]---- //----[/XML data]---- //----["Waypoints" data]---- void setTargetPosition(const Vector3& target); Vector3 getTargetPosition (); //----[/"Waypoints" data]---- private: std::string actionName_; std::string protectName_; std::string enemyName_; bool protectMe_; bool fightAll_; Vector3 targetPosition_; }; } #endif /* _ActionPoint_H__ */