- Timestamp:
- May 16, 2019, 11:00:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12366 r12367 129 129 */ 130 130 void OrxoBlox::start() 131 131 132 { 132 133 if (this->center_ != nullptr) // There needs to be a OrxoBloxCenterpoint, i.e. the area the game takes place. … … 169 170 // Set variable to temporarily force the player to spawn. 170 171 // Set variable to temporarily force the player to spawn. 171 bool temp = this->bForceSpawn_;172 //bool temp = this->bForceSpawn_; 172 173 this->bForceSpawn_ = true; 173 174 … … 176 177 177 178 // Reset the variable. 178 this->bForceSpawn_ = temp;179 //this->bForceSpawn_ = temp; 179 180 180 181 } … … 206 207 } 207 208 208 void OrxoBlox::spawnPlayer(PlayerInfo* player)209 {210 assert(player);211 212 if(this->player_ == nullptr)213 {214 this->player_ = player;215 this->players_[player].state_ = PlayerState::Alive;216 }217 218 }209 // void OrxoBlox::spawnPlayer(PlayerInfo* player) 210 // { 211 // assert(player); 212 213 // if(this->player_ == nullptr) 214 // { 215 // this->player_ = player; 216 // this->players_[player].state_ = PlayerState::Alive; 217 // } 218 219 // } 219 220 220 221 void OrxoBlox::LevelUp(){ … … 287 288 OrxoBloxStones* OrxoBlox::CheckForCollision(OrxoBloxBall* Ball) { 288 289 289 orxout() << "Checking for Collision" << endl;290 //orxout() << "Checking for Collision" << endl; 290 291 Vector3 BallPosition = Ball->getPosition(); 291 292 for(OrxoBloxStones* someStone : this->stones_) … … 295 296 continue; 296 297 } 297 orxout() << "Checking a stone" << endl;298 //orxout() << "Checking a stone" << endl; 298 299 const Vector3& StonePosition = someStone->getPosition(); //!< Saves the position of the currentStone 299 300 int size = someStone->getSize()/2; … … 307 308 return nullptr; 308 309 } 310 311 void OrxoBlox::playerPreSpawn(PlayerInfo* player) 312 { 313 this->player_ = player; 314 } 309 315 310 316 }
Note: See TracChangeset
for help on using the changeset viewer.