Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseTower.h @ 10451

Last change on this file since 10451 was 10430, checked in by erbj, 10 years ago

added functionality: Waves with different combinations of spaceships, eggs and ufos ; added different tower templates and progressing pricing for the towers; also 5 tower to upgrade instead of 3

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1//
2//  TowerDefenseTower.h
3//  Orxonox
4//
5//  Created by Fabian Mentzer on 29.04.12.
6//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
7//
8
9/**
10@brief
11See TowerDefenseTowerDefenseReadme.txt for Information.
12
13@ingroup TowerDefenseTowerDefense
14*/
15
16
17#ifndef Orxonox_TowerDefenseTower_h
18#define Orxonox_TowerDefenseTower_h
19
20#include "towerdefense/TowerDefensePrereqs.h"
21#include "worldentities/pawns/SpaceShip.h"
22#include "objects/Turret.h"
23
24
25namespace orxonox
26{
27    class _TowerDefenseExport TowerDefenseTower : public Turret
28    {
29    public:
30        TowerDefenseTower(Context* context);
31        virtual ~TowerDefenseTower() {};
32
33        // Maybe later override these to move TowerDefenseTowers with cursor keys
34        /*
35        virtual void moveFrontBack(const Vector2& value);
36        virtual void moveRightLeft(const Vector2& value);
37        */
38
39        // Overriding these to stop TowerDefenseTowers from spasing out
40        /*
41        void setOrientation(const Quaternion& orientation);
42        virtual void rotateYaw(const Vector2& value);
43        virtual void rotatePitch(const Vector2& value);
44        virtual void rotateRoll(const Vector2& value);
45        */
46        virtual bool upgradeTower();
47
48
49        void setGame(TowerDefense* Towerdefense)
50        { assert(Towerdefense); game_ = Towerdefense; }
51        int upgrade;
52        int upgradeMax;
53    private:
54        TowerDefense* game_;
55
56    };
57}
58
59
60#endif
Note: See TracBrowser for help on using the repository browser.