Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2010, 5:07:02 PM (14 years ago)
Author:
scheusso
Message:

-(hopefully) fixed that nasty bug
-some cleaning up
-readding hackaddbots and renaming it to dedicatedAddBots

Location:
code/branches/network4/src/orxonox
Files:
3 edited

Legend:

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

    r7284 r7753  
    7979        else
    8080            this->scoreboard_ = 0;
     81
     82        /* HACK HACK HACK */
     83        this->dedicatedAddBots_ = createConsoleCommand( "dedicatedAddBots", createExecutor( createFunctor(&Gametype::addBots, this) ) );
     84        this->dedicatedKillBots_ = createConsoleCommand( "dedicatedKillBots", createExecutor( createFunctor(&Gametype::killBots, this) ) );
     85        /* HACK HACK HACK */
    8186    }
    8287
     
    8691        {
    8792            this->gtinfo_->destroy();
     93            if( this->dedicatedAddBots_ )
     94                delete this->dedicatedAddBots_;
     95            if( this->dedicatedKillBots_ )
     96                delete this->dedicatedKillBots_;
    8897        }
    8998    }
  • code/branches/network4/src/orxonox/gametypes/Gametype.h

    r7284 r7753  
    184184            // Config Values
    185185            std::string scoreboardTemplate_;
     186
     187            /* HACK HACK HACK */
     188            ConsoleCommand* dedicatedAddBots_;
     189            ConsoleCommand* dedicatedKillBots_;
     190            /* HACK HACK HACK */
    186191    };
    187192}
  • code/branches/network4/src/orxonox/worldentities/ControllableEntity.cc

    r7495 r7753  
    8787        this->setPriority( Priority::VeryHigh );
    8888        this->registerVariables();
    89         COUT(0) << "CE creator" << endl;
    90         if( GameMode::isMaster() )
    91           callMemberNetworkFunction(ControllableEntity, fire, this->getObjectID(), 1, 0);
    9289    }
    9390
     
    244241    void ControllableEntity::fire(unsigned int firemode)
    245242    {
    246         COUT(0) << "fire........." << endl;
    247243        if(GameMode::isMaster())
    248244        {
Note: See TracChangeset for help on using the changeset viewer.