Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 25, 2009, 3:26:06 AM (15 years ago)
Author:
landauf
Message:

added AI for the Pong gametype
improved Pong gameplay

File:
1 edited

Legend:

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

    r2826 r2839  
    200200                // Reward killer
    201201                if (killer)
    202                     this->playerScored(killer->getPlayer());
     202                {
     203                    std::map<PlayerInfo*, Player>::iterator it = this->players_.find(killer->getPlayer());
     204                    if (it != this->players_.end())
     205                        it->second.frags_++;
     206                }
    203207
    204208                ControllableEntity* entity = this->defaultControllableEntity_.fabricate(victim->getCreator());
     
    348352    {
    349353        for (unsigned int i = 0; i < amount; ++i)
    350             new Bot(this);
     354            this->botclass_.fabricate(this);
    351355    }
    352356
Note: See TracChangeset for help on using the changeset viewer.