Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2010, 10:16:10 AM (15 years ago)
Author:
dafrick
Message:

Merged pickup4 branch back to trunk.

Location:
code/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r6540 r6711  
    7878        else
    7979            this->weaponSystem_ = 0;
     80       
     81        this->setCarrierName("Pawn");
    8082
    8183        this->setRadarObjectColour(ColourValue::Red);
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.h

    r6540 r6711  
    3737#include "worldentities/ControllableEntity.h"
    3838
    39 namespace orxonox
    40 {
    41     class _OrxonoxExport Pawn : public ControllableEntity, public RadarViewable, public PickupCarrier
    42     {
     39namespace orxonox // tolua_export
     40{ // tolua_export
     41    class _OrxonoxExport Pawn // tolua_export
     42        : public ControllableEntity, public RadarViewable, public PickupCarrier
     43    { // tolua_export
    4344        friend class WeaponSystem;
    4445
     
    132133            bool bAlive_;
    133134
    134             virtual std::list<PickupCarrier*>* getCarrierChildren(void)
    135                 { return new std::list<PickupCarrier*>(); }
     135            virtual std::vector<PickupCarrier*>* getCarrierChildren(void)
     136                { return new std::vector<PickupCarrier*>(); }
    136137            virtual PickupCarrier* getCarrierParent(void)
    137138                { return NULL; }
     
    155156
    156157            Vector3 aimPosition_;
    157     };
    158 }
     158    }; // tolua_export
     159} // tolua_export
    159160
    160161#endif /* _Pawn_H__ */
  • code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc

    r6709 r6711  
    221221    }
    222222
    223     std::list<PickupCarrier*>* SpaceShip::getCarrierChildren(void)
    224     {
    225         std::list<PickupCarrier*>* list = new std::list<PickupCarrier*>();
    226         list->push_front(this->engine_);
     223    std::vector<PickupCarrier*>* SpaceShip::getCarrierChildren(void)
     224    {
     225        std::vector<PickupCarrier*>* list = new std::vector<PickupCarrier*>();
     226        list->push_back(this->engine_);
    227227        return list;
    228228    }
  • code/trunk/src/orxonox/worldentities/pawns/SpaceShip.h

    r6709 r6711  
    8686
    8787        protected:
    88             virtual std::list<PickupCarrier*>* getCarrierChildren(void);
     88            virtual std::vector<PickupCarrier*>* getCarrierChildren(void);
    8989            bool bInvertYAxis_;
    9090
Note: See TracChangeset for help on using the changeset viewer.