Changeset 10397
- Timestamp:
- Apr 26, 2015, 12:29:30 PM (10 years ago)
- Location:
- code/branches/towerdefenseFS15/src/modules/towerdefense
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/towerdefenseFS15/src/modules/towerdefense/CMakeLists.txt
r10368 r10397 7 7 TDCoordinate.cc 8 8 TowerDefenseEnemy.cc 9 # TowerDefenseSelecter.cc 10 9 TowerDefenseSelecter.cc 11 10 ) 12 11 -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefense.cc
r10388 r10397 109 109 }*/ 110 110 111 this->Selecter = new TowerDefenseSelecter(context);111 selecter = NULL; 112 112 113 113 … … 149 149 150 150 // Waypoints: [1,3] [10,3] [10,11] [13,11] -> add the points to a matrix so the player cant place towers on the path 151 for (int i=0; i < 16 ; i++){ 152 for (int j = 0; j< 16 ; j++){ 151 for (int i=0; i < 16 ; i++) 152 { 153 for (int j = 0; j< 16 ; j++) 154 { 153 155 towerModelMatrix[i][j] = NULL; 154 156 towerTurretMatrix[i][j] = NULL; 155 157 } 156 158 } 159 160 selecter = new TowerDefenseSelecter(this->center_->getContext()); 157 161 158 162 Model* dummyModel = new Model(this->center_->getContext()); -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefense.h
r10388 r10397 38 38 #define _TowerDefense_H__ 39 39 #include "TDCoordinate.h" 40 #include "TowerDefenseSelecter.h" 40 41 #include "towerdefense/TowerDefensePrereqs.h" 41 42 #include "gametypes/TeamDeathmatch.h" … … 75 76 int reduceLifes(int NumberofLifes){ return lifes_-=NumberofLifes; } 76 77 TDCoordinate* selectedPos; 77 TowerDefenseSelecter* Selecter;78 TowerDefenseSelecter* selecter; 78 79 79 80 //virtual void pawnKilled(Pawn* victim, Pawn* killer = 0); -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseSelecter.cc
r10394 r10397 54 54 55 55 Model* selecterModel = new Model(context); 56 selecterModel->setMeshSource(" Cube.mesh");56 selecterModel->setMeshSource("cube.mesh"); 57 57 selecterModel->setScale(45); 58 58 -
code/branches/towerdefenseFS15/src/modules/towerdefense/TowerDefenseSelecter.h
r10394 r10397 32 32 #include "towerdefense/TowerDefensePrereqs.h" 33 33 #include "worldentities/ControllableEntity.h" 34 #include "TDCoordinate.h" 34 35 35 36 namespace orxonox … … 39 40 public: 40 41 TowerDefenseSelecter(Context* context); //!< Constructor. Registers and initializes the object. 41 virtual ~TowerDefenseSelecter() {}42 virtual ~TowerDefenseSelecter(); 42 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 43 44 virtual void tick(float dt);
Note: See TracChangeset
for help on using the changeset viewer.