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
Files:
22 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/CMakeLists.txt

    r1844 r1916  
    4242  tools/WindowEventListener.cc
    4343
    44   objects/Ambient.cc
    45   objects/Backlight.cc
     44#  objects/Backlight.cc
    4645  objects/Camera.cc
    4746  objects/CameraHandler.cc
    48   objects/Model.cc
    49   objects/NPC.cc
    50   objects/ParticleSpawner.cc
     47#  objects/ParticleSpawner.cc
    5148  objects/Radar.cc
    5249  objects/RadarListener.cc
    5350  objects/RadarViewable.cc
    54   objects/Skybox.cc
    55   objects/SpaceShip.cc
    56   objects/SpaceShipAI.cc
    5751  objects/Tickable.cc
    58   objects/WorldEntity.cc
    59 
    60   objects/Projectile.cc
    61   objects/BillboardProjectile.cc
    62   objects/RotatingProjectile.cc
    63   objects/ParticleProjectile.cc
    6452
    6553  tolua/tolua_bind.cc
     
    8371  SET( ORXONOXS_SRC_FILES
    8472    GraphicsEngine.cc
    85     objects/Ambient.cc
    8673    objects/Camera.cc
    8774    objects/CameraHandler.cc
    88     objects/Explosion.cc
    89     objects/Model.cc
    90     objects/NPC.cc
    91     objects/Projectile.cc
    92     objects/Skybox.cc
    93     objects/SpaceShip.cc
    94     objects/WorldEntity.cc
    9575  )
    9676
  • code/branches/objecthierarchy/src/orxonox/OrxonoxPrereqs.h

    r1755 r1916  
    8181
    8282    // objects
    83     class Ambient;
    8483    class Backlight;
    8584    class Camera;
    86     class Model;
    87     class NPC;
    8885    class ParticleSpawner;
    89     class Skybox;
    90     class SpaceShip;
    91     class SpaceShipAI;
    92     class WorldEntity;
    93 
    94     class Projectile;
    95     class BillboardProjectile;
    96     class RotatingProjectile;
    97     class ParticleProjectile;
    9886
    9987    // tools
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSLevel.cc

    r1887 r1916  
    4040#include "core/ConfigValueIncludes.h"
    4141#include "core/CoreIncludes.h"
    42 #include "objects/Backlight.h"
     42//#include "objects/Backlight.h"
    4343#include "objects/Tickable.h"
    4444#include "objects/Radar.h"
    45 #include "tools/ParticleInterface.h"
     45//#include "tools/ParticleInterface.h"
    4646#include "Settings.h"
    4747#include "GraphicsEngine.h"
     
    146146        float change = factor / this->timeFactor_;
    147147        this->timeFactor_ = factor;
     148/*
    148149        for (ObjectList<ParticleInterface>::iterator it = ObjectList<ParticleInterface>::begin(); it; ++it)
    149150            it->setSpeedFactor(it->getSpeedFactor() * change);
     
    151152        for (ObjectList<Backlight>::iterator it = ObjectList<Backlight>::begin(); it; ++it)
    152153            it->setTimeFactor(timeFactor_);
     154*/
    153155    }
    154156
  • code/branches/objecthierarchy/src/orxonox/objects/Radar.cc

    r1818 r1916  
    3636#include <cfloat>
    3737#include <cassert>
    38 #include "objects/WorldEntity.h"
    39 #include "objects/SpaceShip.h"
    4038#include "core/CoreIncludes.h"
    4139#include "core/ConsoleCommand.h"
     
    114112            for (ObjectList<RadarViewable>::iterator itElement = ObjectList<RadarViewable>::begin(); itElement; ++itElement)
    115113            {
     114/*
    116115                if ((*itElement) != SpaceShip::getLocalShip() && (*itListener)->getRadarSensitivity() > (*itElement)->getRadarObjectCamouflage())
    117116                    (*itListener)->displayObject(*itElement, *itElement == this->focus_);
     117*/
    118118            }
    119119        }
     
    130130        else
    131131        {
    132             Vector3 localPosition = SpaceShip::getLocalShip()->getPosition();
     132            Vector3 localPosition;// = SpaceShip::getLocalShip()->getPosition();
    133133            Vector3 targetPosition = localPosition;
    134134            if (*(this->itFocus_))
     
    143143            for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it)
    144144            {
     145/*
    145146                if (*it == SpaceShip::getLocalShip())
    146147                    continue;
    147 
     148*/
    148149                float targetDistance = localPosition.squaredDistance((*it)->getWorldPosition());
    149150                if (targetDistance > currentDistance && targetDistance < nextDistance)
  • code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.cc

    r1818 r1916  
    3131#include "util/Debug.h"
    3232#include "core/CoreIncludes.h"
    33 #include "objects/WorldEntity.h"
     33//#include "objects/WorldEntity.h"
    3434#include "Radar.h"
    3535
     
    6363    {
    6464        validate();
    65         return this->radarObject_->getWorldPosition();
     65        return Vector3::ZERO;//this->radarObject_->getWorldPosition();
    6666    }
    6767
     
    6969    {
    7070        validate();
    71         return this->radarObject_->getOrientation() * this->radarObject_->getVelocity();
     71        return Vector3::ZERO;//this->radarObject_->getOrientation() * this->radarObject_->getVelocity();
    7272    }
    7373}
  • code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.h

    r1818 r1916  
    4444    class _OrxonoxExport RadarViewable : virtual public OrxonoxClass
    4545    {
     46    class WorldEntity;
     47
    4648    public:
    4749        enum Shape
  • 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.