Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/newlevel2012/src/modules/towerdefense/Tower.h @ 9137

Last change on this file since 9137 was 9137, checked in by mentzerf, 13 years ago

+ 'addTower' now adds a "tower" (actually a green cube) at 0,0

File size: 801 bytes
Line 
1//
2//  Tower.h
3//  Orxonox
4//
5//  Created by Fabian Mentzer on 29.04.12.
6//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
7//
8
9#ifndef Orxonox_Tower_h
10#define Orxonox_Tower_h
11
12#include "towerdefense/TowerDefensePrereqs.h"
13#include "worldentities/ControllableEntity.h"
14
15namespace orxonox
16{
17    class _OrxonoxExport Tower : public ControllableEntity
18    {
19        public:
20                Tower(BaseObject* creator);
21                virtual ~Tower() {};
22               
23                virtual void moveFrontBack(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
24                virtual void moveRightLeft(const Vector2& value); //!< Overloaded the function to steer the bat up and down.
25               
26                void setGame(TowerDefense* towerdefense)
27                { assert(towerdefense); game_ = towerdefense; }
28        private:
29                TowerDefense* game_;
30    };
31}
32
33
34#endif
Note: See TracBrowser for help on using the repository browser.