source:
code/trunk/src/modules/towerdefense/TDCoordinate.h
@
12073
Last change on this file since 12073 was 10629, checked in by fvultier, 9 years ago | |
---|---|
|
|
File size: 841 bytes |
Rev | Line | |
---|---|---|
[10105] | 1 | #ifndef _TDCoordinate_H__ |
2 | #define _TDCoordinate_H__ | |
3 | ||
[10629] | 4 | #include "core/CoreIncludes.h" |
[10105] | 5 | #include "TDCoordinate.h" |
[10106] | 6 | //#include "towerdefense/TowerDefense.h" |
[10105] | 7 | #include "gametypes/Deathmatch.h" |
8 | #include "towerdefense/TowerDefensePrereqs.h" | |
9 | #include "worldentities/pawns/SpaceShip.h" | |
[10246] | 10 | namespace orxonox |
11 | { | |
[10105] | 12 | |
13 | //Class to save the Coordinates in a class instead of struct | |
14 | //Convert 2d coordinates to 3d in order to set waypoints | |
[10624] | 15 | class _TowerDefenseExport TDCoordinate |
[10246] | 16 | { |
17 | public: | |
[10105] | 18 | TDCoordinate(); |
[10622] | 19 | TDCoordinate(int x, int y); |
[10105] | 20 | virtual ~TDCoordinate() {}; |
[10622] | 21 | virtual void Set(int x, int y); |
22 | virtual int GetX(); | |
23 | virtual int GetY(); | |
[10629] | 24 | virtual Vector3 get3dcoordinate(); |
[10105] | 25 | |
[10622] | 26 | private: |
27 | int _x; | |
28 | int _y; | |
[10246] | 29 | }; |
[10105] | 30 | |
31 | } | |
32 | ||
33 | #endif /* _TDCoordinate_H__ */ |
Note: See TracBrowser
for help on using the repository browser.