Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2008, 2:16:49 AM (16 years ago)
Author:
landauf
Message:
  • Added Bot (the artifical counterpart to HumanPlayer)
  • Added ArtificialController, the baseclass of all non-human-controllers
  • Added AIController, a simple reimplementation of the old AISpaceShip (but of course without the SpaceShip, just the AI)
  • Added currently empty class ScriptController
  • Some tweaks in PlayerInfo, ControllableEntity and Controller
  • Made Spacetator speed configurable

I don't know where, but there's still an issue in the new code, maybe even caused by the previous commit. The Server seems to crash when a Client disconnects, but only if the Server runs within the debugger.

Location:
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc

    r2254 r2362  
    3131
    3232#include "core/CoreIncludes.h"
     33#include "core/ConfigValueIncludes.h"
    3334#include "core/Core.h"
    3435#include "objects/worldentities/Model.h"
     
    4950        RegisterObject(Spectator);
    5051
    51         this->speed_ = 100;
     52        this->speed_ = 200;
    5253        this->rotationSpeed_ = 3;
    5354
     
    6869        this->bGreeting_ = false;
    6970
     71        this->setConfigValues();
    7072        this->registerVariables();
    7173    }
     
    8486    }
    8587
     88    void Spectator::setConfigValues()
     89    {
     90        SetConfigValue(speed_, 200.0f);
     91        SetConfigValue(rotationSpeed_, 3.0f);
     92    }
     93
    8694    void Spectator::registerVariables()
    8795    {
     
    137145    {
    138146        ControllableEntity::startLocalHumanControl();
    139 //        if (this->hasLocalController())
    140 //            this->testmesh_->setVisible(false);
    141147    }
    142148
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.h

    r2254 r2362  
    4242            virtual ~Spectator();
    4343
     44            void setConfigValues();
    4445            void registerVariables();
    4546            virtual void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.