Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2013, 3:53:13 PM (11 years ago)
Author:
zifloria
Message:

InvaderShip created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/src/modules/invader/Invader.cc

    r9702 r9709  
    4242#include "chat/ChatManager.h"
    4343
     44#include "InvaderShip.h"
     45// ! HACK
     46#include "infos/PlayerInfo.h"
     47
     48#include "InvaderCenterPoint.h"
     49
    4450namespace orxonox
    4551{
     
    5056        RegisterObject(Invader);
    5157
     58        this->center_ = 0;
     59        //this->context = context;
    5260    }
    5361
     
    5664    }
    5765
     66    // inject custom player controller
     67 /**   void Invader::spawnPlayer(PlayerInfo* player)
     68    {
     69        assert(player);
     70
     71        //player->startControl(new InvaderShip(this->center_->getContext() ) );
     72    }*/
     73
    5874    void Invader::start()
    5975    {
     
    6177        this->bForceSpawn_ = true;
    6278
     79        if (this->center_ == NULL)  // abandon mission!
     80        {
     81            orxout(internal_error) << "Invader: No Centerpoint specified." << endl;
     82            GSLevel::startMainMenu();
     83            return;
     84        }
    6385        // Call start for the parent class.
    6486        Deathmatch::start();
Note: See TracChangeset for help on using the changeset viewer.