Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/modules/towerdefense/TowerDefenseEnemy.h @ 10417

Last change on this file since 10417 was 10258, checked in by landauf, 10 years ago

merged presentationHS14merge back to trunk

  • Property svn:eol-style set to native
File size: 1.2 KB
RevLine 
[10109]1//
2//  TowerDefenseEnemy.h
3//  Orxonox
4//
5//  Created by Jonas Erb on 22.10.14.
6
7/**
8@brief
9See TowerDefenseReadme.txt for Information.
10
11@ingroup TowerDefense
12*/
13
14
15
16#ifndef Orxonox_Tower_h
17#define Orxonox_Tower_h
18
19#include "TDCoordinate.h"
20#include "gametypes/Deathmatch.h"
21#include "towerdefense/TowerDefensePrereqs.h"
22#include "worldentities/pawns/SpaceShip.h"
23#include "util/Output.h"
[10132]24#include "controllers/ArtificialController.h"
[10159]25#include "TowerDefense.h"
[10109]26
27namespace orxonox
28{
29/* Class to give the TowerDefenseEnemy spaceships waypoints and
30 *
31 */
[10246]32    class _TowerDefenseExport TowerDefenseEnemy : public SpaceShip
33    {
34    public:
35        TowerDefenseEnemy(Context* context);
[10159]36        virtual ~TowerDefenseEnemy();
[10109]37
38        //health gibt es unter: health_
39
[10132]40        virtual void tick(float dt);
[10123]41        void addWaypoint(TDCoordinate* coord);
[10109]42        void popWaypoint();
43        TDCoordinate peekWaypoint();
[10126]44
[10256]45        virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator);
[10126]46
[10256]47
[10246]48    private:
[10256]49        WeakPtr<TowerDefense> getGame();
50        WeakPtr<TowerDefense> game;
[10159]51        TowerDefense* td;
52        bool once_;
[10123]53        std::vector<TDCoordinate*> Waypointsvector_;
[10109]54
[10246]55    };
[10109]56
57
58
59}
60
61#endif /* _TowerDefense_H__ */
Note: See TracBrowser for help on using the repository browser.