Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/towerdefense/TowerDefenseField.h @ 11309

Last change on this file since 11309 was 11099, checked in by muemart, 9 years ago

Fix loads of doxygen warnings and other documentation issues

  • Property svn:eol-style set to native
File size: 3.0 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 *      ...
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29
30
31#ifndef _TowerDefenseField_H__
32#define _TowerDefenseField_H__
33
34#include "towerdefense/TowerDefensePrereqs.h"
35#include "TowerDefenseTower.h"
36 #include "TowerDefenseCenterpoint.h"
37#include <string>
38#include "graphics/Model.h"
39#include "worldentities/MovableEntity.h"
40
41namespace orxonox
42{
43    enum class TowerDefenseFieldType
44    { 
45        FREE,
46        STREET, 
47        START, 
48        END,
49        OBSTACLE,
50        TOWER
51    };
52
53    /**
54    @brief
55    See TowerDefenseReadme.txt for Information.
56    @ingroup TowerDefense
57    */
58    class _TowerDefenseExport TowerDefenseField : public MovableEntity
59    {
60        public:
61            TowerDefenseField(Context* context);
62            virtual ~TowerDefenseField() {}
63            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override;
64            const bool isFree() const
65                { return type_==TowerDefenseFieldType::FREE; }
66            virtual void create(char object, char param);
67            virtual void setCenterpoint(TowerDefenseCenterpoint* center);
68            virtual void upgrade();
69            virtual int getUpgrade();
70            virtual TowerDefenseFieldType getType();
71            virtual void setUpgrade(int upgrade);
72            virtual bool canUpgrade();
73            virtual void createFree(int orientation);
74            virtual void createStart(int orientation);
75            virtual void createEnd(int orientation);
76            virtual void createStraight(int orientation);
77            virtual void createLCurve(int orientation);
78            virtual void createRCurve(int orientation);
79            virtual void createObstacle(int orientation);
80            virtual void createTower(int upgrade);
81            virtual int getAngle();           
82        private:
83            virtual void setAngle(int newAngle);           
84            virtual void destroyTower();
85            int angle_;
86            TowerDefenseFieldType type_;
87            Model* modelGround_;
88            Model* modelObject_;
89            TowerDefenseTower* tower_;
90            TowerDefenseCenterpoint* center_;
91            int upgrade_;
92
93    };   
94}
95
96#endif /* _TowerDefenseField_H__ */
Note: See TracBrowser for help on using the repository browser.