Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2008, 12:20:14 AM (16 years ago)
Author:
landauf
Message:

removed WorldEntity, SpaceShip and several other objects
removed SpaceShip-related hacks in network and other places

Location:
code/branches/objecthierarchy/src/orxonox/overlays/hud
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDNavigation.cc

    r1819 r1916  
    4141#include "core/XMLPort.h"
    4242#include "objects/Radar.h"
    43 #include "objects/SpaceShip.h"
    44 #include "objects/Projectile.h"
    4543#include "objects/CameraHandler.h"
    4644
     
    149147        float textLength = convertToString(dist).size() * navText_->getCharHeight() * 0.3;
    150148
     149/*
    151150        Ogre::Camera* navCam = SpaceShip::getLocalShip()->getCamera()->cam_;
    152151        Matrix4 transformationMatrix = navCam->getProjectionMatrix() * navCam->getViewMatrix();
     152*/
    153153        // transform to screen coordinates
    154         Vector3 pos = transformationMatrix * Radar::getInstance().getFocus()->getWorldPosition();
     154        Vector3 pos = /*transformationMatrix * */Radar::getInstance().getFocus()->getWorldPosition();
    155155
    156156        bool outOfView;
     
    224224        {
    225225            // object is in view
    226 
     226/*
    227227            Vector3 aimpos = transformationMatrix * getPredictedPosition(SpaceShip::getLocalShip()->getPosition(),
    228228                    Projectile::getSpeed(), Radar::getInstance().getFocus()->getWorldPosition(), Radar::getInstance().getFocus()->getOrientedVelocity());
    229 
     229*/
    230230            if (wasOutOfView_)
    231231            {
     
    240240
    241241            aimMarker_->show();
     242/*
    242243            aimMarker_->setLeft((aimpos.x + 1.0 - aimMarker_->getWidth()) * 0.5);
    243244            aimMarker_->setTop((-aimpos.y + 1.0 - aimMarker_->getHeight()) * 0.5);
    244 
     245*/
    245246            navText_->setLeft((pos.x + 1.0 + navMarker_->getWidth()) * 0.5);
    246247            navText_->setTop((-pos.y + 1.0 + navMarker_->getHeight()) * 0.5);
     
    250251    float HUDNavigation::getDist2Focus() const
    251252    {
     253/*
    252254        if (Radar::getInstance().getFocus())
    253255            return (Radar::getInstance().getFocus()->getWorldPosition() - SpaceShip::getLocalShip()->getPosition()).length();
    254256        else
     257*/
    255258            return 0;
    256259    }
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDRadar.cc

    r1819 r1916  
    3838#include "core/CoreIncludes.h"
    3939#include "core/XMLPort.h"
    40 #include "objects/SpaceShip.h"
    41 #include "objects/WorldEntity.h"
    4240#include "objects/Radar.h"
    4341#include "tools/TextureGenerator.h"
     
    9189    void HUDRadar::displayObject(RadarViewable* object, bool bIsMarked)
    9290    {
     91/*
    9392        const WorldEntity* wePointer = object->getWorldEntity();
    9493
     
    10099            return;
    101100        }
    102 
     101*/
    103102        // try to find a panel already created
    104103        Ogre::PanelOverlayElement* panel;
     
    126125        }
    127126        panel->show();
    128 
     127/*
    129128        // set size to fit distance...
    130129        float distance = (wePointer->getWorldPosition() - SpaceShip::getLocalShip()->getPosition()).length();
     
    144143            this->marker_->setPosition((1.0 + coord.x - size * 1.5) * 0.5, (1.0 - coord.y - size * 1.5) * 0.5);
    145144        }
     145*/
    146146    }
    147147
  • code/branches/objecthierarchy/src/orxonox/overlays/hud/HUDSpeedBar.cc

    r1755 r1916  
    3131#include "HUDSpeedBar.h"
    3232#include "core/CoreIncludes.h"
    33 #include "objects/SpaceShip.h"
    3433
    3534namespace orxonox
     
    4948    void HUDSpeedBar::tick(float dt)
    5049    {
     50/*
    5151        SpaceShip* ship = SpaceShip::getLocalShip();
    5252        if (ship)
     
    5757                this->setValue(value);
    5858        }
     59*/
    5960    }
    6061}
Note: See TracChangeset for help on using the changeset viewer.