Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2016, 4:00:25 PM (7 years ago)
Author:
bberabi
Message:

bots are finally added; controller has to be implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SpaceRace_HS16/src/modules/gametypes/OldSpaceRace.cc

    r11260 r11272  
    3636#include "items/Engine.h"
    3737#include "controllers/HumanController.h"
    38 #include "SpaceRaceBot.h"
    3938
    4039#include "core/CoreIncludes.h"
     
    4342#include "worldentities/pawns/Pawn.h"
    4443#include "core/config/ConfigValueIncludes.h"
     44#include "infos/Bot.h"
     45#include "SpaceRaceBot.h"
    4546
    4647
     
    5657       
    5758        //this->botclass_ = Class();
     59        this->botclass_ = Class(SpaceRaceBot);//ClassByString("")
    5860
    5961        this->checkpointsReached_ = 0;
     
    168170    }
    169171
     172        /*void playerEntered(PlayerInfo* player) {
     173
     174
     175                  Gametype::playerEntered(player);
     176
     177        const std::string& message = player->getName() + " entered the game";
     178        ChatManager::message(message);
     179           
     180        }*/
     181
     182
     183
     184
     185 void OldSpaceRace::addBots(unsigned int amount)
     186    {
     187        for (unsigned int i = 0; i < amount; ++i)
     188            this->botclass_.fabricate(this->getContext());
     189    }
     190
     191
     192
     193
    170194
    171195}
Note: See TracChangeset for help on using the changeset viewer.