Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2008, 2:16:49 AM (15 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/ControllableEntity.h

    r2254 r2362  
    6464            virtual void rotatePitch(const Vector2& value) {}
    6565            virtual void rotateRoll(const Vector2& value) {}
     66
     67            inline void moveFrontBack(float value)
     68                { this->moveFrontBack(Vector2(value, 0)); }
     69            inline void moveRightLeft(float value)
     70                { this->moveRightLeft(Vector2(value, 0)); }
     71            inline void moveUpDown(float value)
     72                { this->moveUpDown(Vector2(value, 0)); }
     73
     74            inline void rotateYaw(float value)
     75                { this->rotateYaw(Vector2(value, 0)); }
     76            inline void rotatePitch(float value)
     77                { this->rotatePitch(Vector2(value, 0)); }
     78            inline void rotateRoll(float value)
     79                { this->rotateRoll(Vector2(value, 0)); }
    6680
    6781            virtual void fire() {}
Note: See TracChangeset for help on using the changeset viewer.