Changeset 10106 for code/branches/towerdefenseHS14/src/modules/towerdefense
- Timestamp:
- Nov 4, 2014, 8:04:19 AM (10 years ago)
- Location:
- code/branches/towerdefenseHS14/src/modules/towerdefense
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseHS14/src/modules/towerdefense/CMakeLists.txt
r10105 r10106 2 2 TowerDefense.cc 3 3 Tower.cc 4 TowerTurret.cc 4 5 TowerDefenseCenterpoint.cc 5 6 TowerDefenseHUDController.cc -
code/branches/towerdefenseHS14/src/modules/towerdefense/Enemy.cc
r10105 r10106 46 46 { 47 47 if(Waypointsvector_.size()<=0){ 48 TDCoordinate coord = {-1,-1};48 TDCoordinate coord = TDCoordinate(-1,-1); 49 49 return coord; 50 50 }else{ -
code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.cc
r10105 r10106 8 8 namespace orxonox 9 9 { 10 RegisterClass(TDCoordinate);10 //RegisterClass(TDCoordinate); 11 11 12 12 /** … … 16 16 TDCoordinate::TDCoordinate() 17 17 { 18 RegisterObject(TDCoordinate);18 //RegisterObject(TDCoordinate); 19 19 x=0; 20 20 y=0; … … 33 33 int tileScale = 100; 34 34 35 Vector3 coord = new Vector3();36 coord .x= (x-8) * tileScale;37 coord .y= (y-8) * tileScale;38 coord .z=0;35 Vector3 *coord = new Vector3(); 36 coord->x= (x-8) * tileScale; 37 coord->y= (y-8) * tileScale; 38 coord->z=0; 39 39 40 return coord;40 return *coord; 41 41 } 42 42 } -
code/branches/towerdefenseHS14/src/modules/towerdefense/TDCoordinate.h
r10105 r10106 4 4 #include "core/CoreIncludes.h" 5 5 #include "TDCoordinate.h" 6 #include "towerdefense/TowerDefense.h"6 //#include "towerdefense/TowerDefense.h" 7 7 #include "gametypes/Deathmatch.h" 8 8 #include "towerdefense/TowerDefensePrereqs.h" … … 13 13 //Class to save the Coordinates in a class instead of struct 14 14 //Convert 2d coordinates to 3d in order to set waypoints 15 class _TowerDefenseExport TDCoordinate: public Pawn{15 class _TowerDefenseExport TDCoordinate: public OrxonoxClass { 16 16 public: 17 17 int x;
Note: See TracChangeset
for help on using the changeset viewer.