Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/towerdefenseFabien/src/modules/towerdefense/TDCoordinate.h @ 10587

Last change on this file since 10587 was 10586, checked in by fvultier, 9 years ago

Removed unuses classes and templates. The enemies move now along a path defined in the XML level file and no more along a static hard coded path.

  • Property svn:eol-style set to native
File size: 841 bytes
Line 
1#ifndef _TDCoordinate_H__
2#define _TDCoordinate_H__
3
4#include "core/CoreIncludes.h"
5#include "TDCoordinate.h"
6//#include "towerdefense/TowerDefense.h"
7#include "gametypes/Deathmatch.h"
8#include "towerdefense/TowerDefensePrereqs.h"
9#include "worldentities/pawns/SpaceShip.h"
10namespace orxonox
11{
12
13//Class to save the Coordinates in a class instead of struct
14//Convert 2d coordinates to 3d in order to set waypoints
15    class _TowerDefenseExport TDCoordinate
16    {
17        public:
18            TDCoordinate();
19            TDCoordinate(int x, int y);
20            virtual ~TDCoordinate() {};
21            virtual void Set(int x, int y);
22            virtual int GetX();
23            virtual int GetY();
24            virtual Vector3 get3dcoordinate();
25
26        private:
27            int _x;
28            int _y;
29    };
30
31}
32
33#endif /* _TDCoordinate_H__ */
Note: See TracBrowser for help on using the repository browser.