Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2009, 3:21:12 AM (15 years ago)
Author:
landauf
Message:

added TeamGametype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/miniprojects/src/orxonox/objects/gametypes/Gametype.cc

    r2710 r2768  
    6666        this->setConfigValues();
    6767
    68         this->addBots(this->numberOfBots_);
    69 
    7068        // load the corresponding score board
    7169        if (Core::showsGraphics() && this->scoreboardTemplate_ != "")
     
    105103    void Gametype::start()
    106104    {
     105        this->addBots(this->numberOfBots_);
     106
    107107        COUT(0) << "game started" << std::endl;
    108108        this->gtinfo_.bStarted_ = true;
     
    166166    void Gametype::pawnPostSpawn(Pawn* pawn)
    167167    {
     168    }
     169
     170    void Gametype::playerPreSpawn(PlayerInfo* player)
     171    {
     172    }
     173
     174    void Gametype::playerPostSpawn(PlayerInfo* player)
     175    {
     176    }
     177
     178    bool Gametype::allowPawnHit(Pawn* victim, Pawn* originator)
     179    {
     180        return true;
     181    }
     182
     183    bool Gametype::allowPawnDamage(Pawn* victim, Pawn* originator)
     184    {
     185        return true;
     186    }
     187
     188    bool Gametype::allowPawnDeath(Pawn* victim, Pawn* originator)
     189    {
     190        return true;
    168191    }
    169192
     
    336359        if (spawnpoint)
    337360        {
     361            this->playerPreSpawn(player);
    338362            player->startControl(spawnpoint->spawn());
    339363            this->players_[player].state_ = PlayerState::Alive;
     364            this->playerPostSpawn(player);
    340365        }
    341366        else
Note: See TracChangeset for help on using the changeset viewer.