[2072] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | * > www.orxonox.net < |
---|
| 4 | * |
---|
| 5 | * |
---|
| 6 | * License notice: |
---|
| 7 | * |
---|
| 8 | * This program is free software; you can redistribute it and/or |
---|
| 9 | * modify it under the terms of the GNU General Public License |
---|
| 10 | * as published by the Free Software Foundation; either version 2 |
---|
| 11 | * of the License, or (at your option) any later version. |
---|
| 12 | * |
---|
| 13 | * This program is distributed in the hope that it will be useful, |
---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 16 | * GNU General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with this program; if not, write to the Free Software |
---|
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 21 | * |
---|
| 22 | * Author: |
---|
| 23 | * Fabian 'x3n' Landau |
---|
| 24 | * Co-authors: |
---|
| 25 | * ... |
---|
| 26 | * |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | #include "Gametype.h" |
---|
| 30 | |
---|
[3196] | 31 | #include "util/Math.h" |
---|
[2072] | 32 | #include "core/CoreIncludes.h" |
---|
[2662] | 33 | #include "core/ConfigValueIncludes.h" |
---|
[2896] | 34 | #include "core/GameMode.h" |
---|
[5929] | 35 | #include "core/ConsoleCommand.h" |
---|
[3196] | 36 | |
---|
[5735] | 37 | #include "infos/PlayerInfo.h" |
---|
| 38 | #include "infos/Bot.h" |
---|
[5737] | 39 | #include "graphics/Camera.h" |
---|
[5735] | 40 | #include "worldentities/ControllableEntity.h" |
---|
| 41 | #include "worldentities/SpawnPoint.h" |
---|
| 42 | #include "worldentities/pawns/Spectator.h" |
---|
| 43 | #include "worldentities/pawns/Pawn.h" |
---|
[3196] | 44 | #include "overlays/OverlayGroup.h" |
---|
[2072] | 45 | |
---|
| 46 | namespace orxonox |
---|
| 47 | { |
---|
| 48 | CreateUnloadableFactory(Gametype); |
---|
| 49 | |
---|
[5929] | 50 | Gametype::Gametype(BaseObject* creator) : BaseObject(creator) |
---|
[2072] | 51 | { |
---|
| 52 | RegisterObject(Gametype); |
---|
[6417] | 53 | |
---|
[5929] | 54 | this->gtinfo_ = new GametypeInfo(creator); |
---|
[2072] | 55 | |
---|
[5929] | 56 | this->setGametype(SmartPtr<Gametype>(this, false)); |
---|
[2662] | 57 | |
---|
[2072] | 58 | this->defaultControllableEntity_ = Class(Spectator); |
---|
| 59 | |
---|
| 60 | this->bAutoStart_ = false; |
---|
| 61 | this->bForceSpawn_ = false; |
---|
[2662] | 62 | this->numberOfBots_ = 0; |
---|
[2072] | 63 | |
---|
[3033] | 64 | this->timeLimit_ = 0; |
---|
| 65 | this->time_ = 0; |
---|
| 66 | this->timerIsActive_ = false; |
---|
| 67 | |
---|
[2072] | 68 | this->initialStartCountdown_ = 3; |
---|
[2662] | 69 | |
---|
| 70 | this->setConfigValues(); |
---|
| 71 | |
---|
| 72 | // load the corresponding score board |
---|
[6417] | 73 | if (GameMode::showsGraphics() && !this->scoreboardTemplate_.empty()) |
---|
[2662] | 74 | { |
---|
| 75 | this->scoreboard_ = new OverlayGroup(this); |
---|
| 76 | this->scoreboard_->addTemplate(this->scoreboardTemplate_); |
---|
| 77 | this->scoreboard_->setGametype(this); |
---|
| 78 | } |
---|
| 79 | else |
---|
| 80 | this->scoreboard_ = 0; |
---|
[6417] | 81 | |
---|
[5929] | 82 | /* HACK HACK HACK */ |
---|
| 83 | this->hackAddBots_ = createConsoleCommand( createFunctor(&Gametype::addBots, this), "hackAddBots"); |
---|
| 84 | this->hackKillBots_ = createConsoleCommand( createFunctor(&Gametype::killBots, this), "hackKillBots"); |
---|
| 85 | CommandExecutor::addConsoleCommandShortcut( this->hackAddBots_ ); |
---|
| 86 | CommandExecutor::addConsoleCommandShortcut( this->hackKillBots_ ); |
---|
| 87 | /* HACK HACK HACK */ |
---|
[2072] | 88 | } |
---|
[6417] | 89 | |
---|
[5929] | 90 | Gametype::~Gametype() |
---|
| 91 | { |
---|
| 92 | if (this->isInitialized()) |
---|
| 93 | { |
---|
| 94 | this->gtinfo_->destroy(); |
---|
| 95 | if( this->hackAddBots_ ) |
---|
| 96 | delete this->hackAddBots_; |
---|
| 97 | if( this->hackKillBots_ ) |
---|
| 98 | delete this->hackKillBots_; |
---|
| 99 | } |
---|
| 100 | } |
---|
[2072] | 101 | |
---|
[2662] | 102 | void Gametype::setConfigValues() |
---|
| 103 | { |
---|
| 104 | SetConfigValue(initialStartCountdown_, 3.0f); |
---|
| 105 | SetConfigValue(bAutoStart_, false); |
---|
| 106 | SetConfigValue(bForceSpawn_, false); |
---|
| 107 | SetConfigValue(numberOfBots_, 0); |
---|
| 108 | SetConfigValue(scoreboardTemplate_, "defaultScoreboard"); |
---|
| 109 | } |
---|
| 110 | |
---|
[2072] | 111 | void Gametype::tick(float dt) |
---|
| 112 | { |
---|
[2662] | 113 | SUPER(Gametype, tick, dt); |
---|
[2072] | 114 | |
---|
[3033] | 115 | //count timer |
---|
| 116 | if (timerIsActive_) |
---|
| 117 | { |
---|
| 118 | if (this->timeLimit_ == 0) |
---|
| 119 | this->time_ += dt; |
---|
| 120 | else |
---|
| 121 | this->time_ -= dt; |
---|
| 122 | } |
---|
| 123 | |
---|
[5929] | 124 | if (this->gtinfo_->bStartCountdownRunning_ && !this->gtinfo_->bStarted_) |
---|
| 125 | this->gtinfo_->startCountdown_ -= dt; |
---|
[2662] | 126 | |
---|
[5929] | 127 | if (!this->gtinfo_->bStarted_) |
---|
[2072] | 128 | this->checkStart(); |
---|
[5929] | 129 | else if (!this->gtinfo_->bEnded_) |
---|
[2171] | 130 | this->spawnDeadPlayersIfRequested(); |
---|
[2072] | 131 | |
---|
| 132 | this->assignDefaultPawnsIfNeeded(); |
---|
| 133 | } |
---|
| 134 | |
---|
| 135 | void Gametype::start() |
---|
| 136 | { |
---|
[2826] | 137 | this->addBots(this->numberOfBots_); |
---|
| 138 | |
---|
[5929] | 139 | this->gtinfo_->bStarted_ = true; |
---|
[2072] | 140 | |
---|
| 141 | this->spawnPlayersIfRequested(); |
---|
| 142 | } |
---|
| 143 | |
---|
| 144 | void Gametype::end() |
---|
| 145 | { |
---|
[5929] | 146 | this->gtinfo_->bEnded_ = true; |
---|
[3033] | 147 | |
---|
| 148 | for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) |
---|
| 149 | { |
---|
| 150 | if (it->first->getControllableEntity()) |
---|
| 151 | { |
---|
| 152 | ControllableEntity* oldentity = it->first->getControllableEntity(); |
---|
[3038] | 153 | |
---|
[5929] | 154 | ControllableEntity* entity = this->defaultControllableEntity_.fabricate(oldentity); |
---|
[3033] | 155 | if (oldentity->getCamera()) |
---|
| 156 | { |
---|
| 157 | entity->setPosition(oldentity->getCamera()->getWorldPosition()); |
---|
| 158 | entity->setOrientation(oldentity->getCamera()->getWorldOrientation()); |
---|
| 159 | } |
---|
| 160 | else |
---|
| 161 | { |
---|
| 162 | entity->setPosition(oldentity->getWorldPosition()); |
---|
| 163 | entity->setOrientation(oldentity->getWorldOrientation()); |
---|
| 164 | } |
---|
| 165 | |
---|
| 166 | it->first->startControl(entity); |
---|
| 167 | } |
---|
| 168 | else |
---|
| 169 | this->spawnPlayerAsDefaultPawn(it->first); |
---|
| 170 | } |
---|
[2072] | 171 | } |
---|
| 172 | |
---|
| 173 | void Gametype::playerEntered(PlayerInfo* player) |
---|
| 174 | { |
---|
[2662] | 175 | this->players_[player].state_ = PlayerState::Joined; |
---|
[2072] | 176 | } |
---|
| 177 | |
---|
[2826] | 178 | bool Gametype::playerLeft(PlayerInfo* player) |
---|
[2072] | 179 | { |
---|
[2662] | 180 | std::map<PlayerInfo*, Player>::iterator it = this->players_.find(player); |
---|
[2072] | 181 | if (it != this->players_.end()) |
---|
| 182 | { |
---|
| 183 | this->players_.erase(it); |
---|
[2826] | 184 | return true; |
---|
[2072] | 185 | } |
---|
[2826] | 186 | return false; |
---|
[2072] | 187 | } |
---|
| 188 | |
---|
| 189 | void Gametype::playerSwitched(PlayerInfo* player, Gametype* newgametype) |
---|
| 190 | { |
---|
| 191 | } |
---|
| 192 | |
---|
| 193 | void Gametype::playerSwitchedBack(PlayerInfo* player, Gametype* oldgametype) |
---|
| 194 | { |
---|
| 195 | } |
---|
| 196 | |
---|
[2826] | 197 | bool Gametype::playerChangedName(PlayerInfo* player) |
---|
[2072] | 198 | { |
---|
| 199 | if (this->players_.find(player) != this->players_.end()) |
---|
| 200 | { |
---|
| 201 | if (player->getName() != player->getOldName()) |
---|
| 202 | { |
---|
[2826] | 203 | return true; |
---|
[2072] | 204 | } |
---|
| 205 | } |
---|
[2826] | 206 | return false; |
---|
[2072] | 207 | } |
---|
| 208 | |
---|
| 209 | void Gametype::pawnPreSpawn(Pawn* pawn) |
---|
| 210 | { |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | void Gametype::pawnPostSpawn(Pawn* pawn) |
---|
| 214 | { |
---|
| 215 | } |
---|
| 216 | |
---|
[2826] | 217 | void Gametype::playerPreSpawn(PlayerInfo* player) |
---|
[2072] | 218 | { |
---|
[2826] | 219 | } |
---|
[2662] | 220 | |
---|
[2826] | 221 | void Gametype::playerPostSpawn(PlayerInfo* player) |
---|
| 222 | { |
---|
| 223 | } |
---|
[2662] | 224 | |
---|
[2826] | 225 | void Gametype::playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) |
---|
| 226 | { |
---|
| 227 | } |
---|
| 228 | |
---|
| 229 | void Gametype::playerStopsControllingPawn(PlayerInfo* player, Pawn* pawn) |
---|
| 230 | { |
---|
| 231 | } |
---|
| 232 | |
---|
| 233 | bool Gametype::allowPawnHit(Pawn* victim, Pawn* originator) |
---|
| 234 | { |
---|
| 235 | return true; |
---|
| 236 | } |
---|
| 237 | |
---|
| 238 | bool Gametype::allowPawnDamage(Pawn* victim, Pawn* originator) |
---|
| 239 | { |
---|
| 240 | return true; |
---|
| 241 | } |
---|
| 242 | |
---|
| 243 | bool Gametype::allowPawnDeath(Pawn* victim, Pawn* originator) |
---|
| 244 | { |
---|
| 245 | return true; |
---|
| 246 | } |
---|
| 247 | |
---|
| 248 | void Gametype::pawnKilled(Pawn* victim, Pawn* killer) |
---|
| 249 | { |
---|
[2662] | 250 | if (victim && victim->getPlayer()) |
---|
| 251 | { |
---|
| 252 | std::map<PlayerInfo*, Player>::iterator it = this->players_.find(victim->getPlayer()); |
---|
| 253 | if (it != this->players_.end()) |
---|
| 254 | { |
---|
| 255 | it->second.state_ = PlayerState::Dead; |
---|
| 256 | it->second.killed_++; |
---|
| 257 | |
---|
| 258 | // Reward killer |
---|
[3099] | 259 | if (killer && killer->getPlayer()) |
---|
[2839] | 260 | { |
---|
| 261 | std::map<PlayerInfo*, Player>::iterator it = this->players_.find(killer->getPlayer()); |
---|
| 262 | if (it != this->players_.end()) |
---|
[3099] | 263 | { |
---|
[2839] | 264 | it->second.frags_++; |
---|
[3099] | 265 | |
---|
| 266 | if (killer->getPlayer()->getClientID() != CLIENTID_UNKNOWN) |
---|
[5929] | 267 | this->gtinfo_->sendKillMessage("You killed " + victim->getPlayer()->getName(), killer->getPlayer()->getClientID()); |
---|
[3099] | 268 | if (victim->getPlayer()->getClientID() != CLIENTID_UNKNOWN) |
---|
[5929] | 269 | this->gtinfo_->sendDeathMessage("You were killed by " + killer->getPlayer()->getName(), victim->getPlayer()->getClientID()); |
---|
[3099] | 270 | } |
---|
[2839] | 271 | } |
---|
[2662] | 272 | |
---|
| 273 | ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getCreator()); |
---|
| 274 | if (victim->getCamera()) |
---|
| 275 | { |
---|
| 276 | entity->setPosition(victim->getCamera()->getWorldPosition()); |
---|
| 277 | entity->setOrientation(victim->getCamera()->getWorldOrientation()); |
---|
| 278 | } |
---|
| 279 | else |
---|
| 280 | { |
---|
| 281 | entity->setPosition(victim->getWorldPosition()); |
---|
| 282 | entity->setOrientation(victim->getWorldOrientation()); |
---|
| 283 | } |
---|
| 284 | it->first->startControl(entity); |
---|
| 285 | } |
---|
| 286 | else |
---|
| 287 | COUT(2) << "Warning: Killed Pawn was not in the playerlist" << std::endl; |
---|
| 288 | } |
---|
[2072] | 289 | } |
---|
| 290 | |
---|
[2826] | 291 | void Gametype::playerScored(PlayerInfo* player) |
---|
[2072] | 292 | { |
---|
[2826] | 293 | std::map<PlayerInfo*, Player>::iterator it = this->players_.find(player); |
---|
| 294 | if (it != this->players_.end()) |
---|
| 295 | it->second.frags_++; |
---|
[2072] | 296 | } |
---|
| 297 | |
---|
[2890] | 298 | int Gametype::getScore(PlayerInfo* player) const |
---|
| 299 | { |
---|
| 300 | std::map<PlayerInfo*, Player>::const_iterator it = this->players_.find(player); |
---|
| 301 | if (it != this->players_.end()) |
---|
| 302 | return it->second.frags_; |
---|
| 303 | else |
---|
| 304 | return 0; |
---|
| 305 | } |
---|
| 306 | |
---|
[2072] | 307 | SpawnPoint* Gametype::getBestSpawnPoint(PlayerInfo* player) const |
---|
| 308 | { |
---|
| 309 | if (this->spawnpoints_.size() > 0) |
---|
| 310 | { |
---|
[3196] | 311 | unsigned int randomspawn = static_cast<unsigned int>(rnd(static_cast<float>(this->spawnpoints_.size()))); |
---|
[2072] | 312 | unsigned int index = 0; |
---|
| 313 | for (std::set<SpawnPoint*>::const_iterator it = this->spawnpoints_.begin(); it != this->spawnpoints_.end(); ++it) |
---|
| 314 | { |
---|
| 315 | if (index == randomspawn) |
---|
| 316 | return (*it); |
---|
| 317 | |
---|
| 318 | ++index; |
---|
| 319 | } |
---|
| 320 | } |
---|
| 321 | return 0; |
---|
| 322 | } |
---|
| 323 | |
---|
[2171] | 324 | void Gametype::assignDefaultPawnsIfNeeded() |
---|
[2072] | 325 | { |
---|
[2662] | 326 | for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) |
---|
[2072] | 327 | { |
---|
[2662] | 328 | if (!it->first->getControllableEntity()) |
---|
[2072] | 329 | { |
---|
[2662] | 330 | it->second.state_ = PlayerState::Dead; |
---|
| 331 | |
---|
[5929] | 332 | if (!it->first->isReadyToSpawn() || !this->gtinfo_->bStarted_) |
---|
[2072] | 333 | { |
---|
[3033] | 334 | this->spawnPlayerAsDefaultPawn(it->first); |
---|
| 335 | it->second.state_ = PlayerState::Dead; |
---|
[2072] | 336 | } |
---|
| 337 | } |
---|
| 338 | } |
---|
| 339 | } |
---|
| 340 | |
---|
| 341 | void Gametype::checkStart() |
---|
| 342 | { |
---|
[5929] | 343 | if (!this->gtinfo_->bStarted_) |
---|
[2072] | 344 | { |
---|
[5929] | 345 | if (this->gtinfo_->bStartCountdownRunning_) |
---|
[2072] | 346 | { |
---|
[5929] | 347 | if (this->gtinfo_->startCountdown_ <= 0) |
---|
[2072] | 348 | { |
---|
[5929] | 349 | this->gtinfo_->bStartCountdownRunning_ = false; |
---|
| 350 | this->gtinfo_->startCountdown_ = 0; |
---|
[2072] | 351 | this->start(); |
---|
| 352 | } |
---|
| 353 | } |
---|
| 354 | else if (this->players_.size() > 0) |
---|
| 355 | { |
---|
| 356 | if (this->bAutoStart_) |
---|
| 357 | { |
---|
| 358 | this->start(); |
---|
| 359 | } |
---|
| 360 | else |
---|
| 361 | { |
---|
| 362 | bool allplayersready = true; |
---|
[2662] | 363 | bool hashumanplayers = false; |
---|
| 364 | for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) |
---|
[2072] | 365 | { |
---|
[2171] | 366 | if (!it->first->isReadyToSpawn()) |
---|
[2072] | 367 | allplayersready = false; |
---|
[2662] | 368 | if (it->first->isHumanPlayer()) |
---|
| 369 | hashumanplayers = true; |
---|
[2072] | 370 | } |
---|
[2662] | 371 | if (allplayersready && hashumanplayers) |
---|
[2072] | 372 | { |
---|
[5929] | 373 | this->gtinfo_->startCountdown_ = this->initialStartCountdown_; |
---|
| 374 | this->gtinfo_->bStartCountdownRunning_ = true; |
---|
[2072] | 375 | } |
---|
| 376 | } |
---|
| 377 | } |
---|
| 378 | } |
---|
| 379 | } |
---|
| 380 | |
---|
| 381 | void Gametype::spawnPlayersIfRequested() |
---|
| 382 | { |
---|
[2662] | 383 | for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) |
---|
[2171] | 384 | if (it->first->isReadyToSpawn() || this->bForceSpawn_) |
---|
| 385 | this->spawnPlayer(it->first); |
---|
[2072] | 386 | } |
---|
| 387 | |
---|
| 388 | void Gametype::spawnDeadPlayersIfRequested() |
---|
| 389 | { |
---|
[2662] | 390 | for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) |
---|
| 391 | if (it->second.state_ == PlayerState::Dead) |
---|
[2171] | 392 | if (it->first->isReadyToSpawn() || this->bForceSpawn_) |
---|
| 393 | this->spawnPlayer(it->first); |
---|
[2072] | 394 | } |
---|
| 395 | |
---|
| 396 | void Gametype::spawnPlayer(PlayerInfo* player) |
---|
| 397 | { |
---|
| 398 | SpawnPoint* spawnpoint = this->getBestSpawnPoint(player); |
---|
| 399 | if (spawnpoint) |
---|
| 400 | { |
---|
[2826] | 401 | this->playerPreSpawn(player); |
---|
[2072] | 402 | player->startControl(spawnpoint->spawn()); |
---|
[2662] | 403 | this->players_[player].state_ = PlayerState::Alive; |
---|
[2826] | 404 | this->playerPostSpawn(player); |
---|
[2072] | 405 | } |
---|
| 406 | else |
---|
| 407 | { |
---|
| 408 | COUT(1) << "Error: No SpawnPoints in current Gametype" << std::endl; |
---|
| 409 | abort(); |
---|
| 410 | } |
---|
| 411 | } |
---|
[2662] | 412 | |
---|
[3033] | 413 | void Gametype::spawnPlayerAsDefaultPawn(PlayerInfo* player) |
---|
| 414 | { |
---|
| 415 | SpawnPoint* spawn = this->getBestSpawnPoint(player); |
---|
| 416 | if (spawn) |
---|
| 417 | { |
---|
| 418 | // force spawn at spawnpoint with default pawn |
---|
| 419 | ControllableEntity* entity = this->defaultControllableEntity_.fabricate(spawn); |
---|
| 420 | spawn->spawn(entity); |
---|
| 421 | player->startControl(entity); |
---|
| 422 | } |
---|
| 423 | else |
---|
| 424 | { |
---|
| 425 | COUT(1) << "Error: No SpawnPoints in current Gametype" << std::endl; |
---|
| 426 | abort(); |
---|
| 427 | } |
---|
| 428 | } |
---|
| 429 | |
---|
[2662] | 430 | void Gametype::addBots(unsigned int amount) |
---|
| 431 | { |
---|
| 432 | for (unsigned int i = 0; i < amount; ++i) |
---|
[2839] | 433 | this->botclass_.fabricate(this); |
---|
[2662] | 434 | } |
---|
| 435 | |
---|
| 436 | void Gametype::killBots(unsigned int amount) |
---|
| 437 | { |
---|
| 438 | unsigned int i = 0; |
---|
| 439 | for (ObjectList<Bot>::iterator it = ObjectList<Bot>::begin(); (it != ObjectList<Bot>::end()) && ((amount == 0) || (i < amount)); ) |
---|
| 440 | { |
---|
| 441 | if (it->getGametype() == this) |
---|
| 442 | { |
---|
[5929] | 443 | (it++)->destroy(); |
---|
[2662] | 444 | ++i; |
---|
| 445 | } |
---|
[5929] | 446 | else |
---|
| 447 | ++it; |
---|
[2662] | 448 | } |
---|
| 449 | } |
---|
[3033] | 450 | |
---|
| 451 | void Gametype::addTime(float t) |
---|
[3038] | 452 | { |
---|
[3033] | 453 | if (this->timeLimit_ == 0) |
---|
| 454 | this->time_ -= t; |
---|
| 455 | else |
---|
| 456 | this->time_ += t; |
---|
| 457 | } |
---|
| 458 | |
---|
| 459 | void Gametype::removeTime(float t) |
---|
[3038] | 460 | { |
---|
[3033] | 461 | if (this->timeLimit_ == 0) |
---|
| 462 | this->time_ += t; |
---|
| 463 | else |
---|
| 464 | this->time_ -= t; |
---|
| 465 | } |
---|
| 466 | |
---|
| 467 | void Gametype::resetTimer() |
---|
[3038] | 468 | { |
---|
[3033] | 469 | this->resetTimer(timeLimit_); |
---|
| 470 | } |
---|
| 471 | |
---|
| 472 | void Gametype::resetTimer(float t) |
---|
[3038] | 473 | { |
---|
[3033] | 474 | this->timeLimit_ = t; |
---|
| 475 | this->time_ = t; |
---|
| 476 | } |
---|
[2072] | 477 | } |
---|