Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10397 was 10335, checked in by erbj, 10 years ago

tower don't shoot at the centerpoint anymore(because we shifted it by 2000,hack) and the tower and model are two different things now

  • 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    private:
52        TowerDefense* game_;
53        int upgrade;
54    };
55}
56
57
58#endif
Note: See TracBrowser for help on using the repository browser.